:root {
    --navy: #0a0a0a;
    --navy-ink: #ffffff;
    --navy-soft: #b5b5b5;
    --navy-faint: #808080;
    --page: #f5f6fa;
    --field: #ffffff;
    --ink: #111827;
    --ink-2: #5b6474;
    --muted: #8a93a3;
    --line: #dfe3ea;
    --brand: #111111;
    --brand-dark: #2b2b2b;
    --error: #b42318;
    --error-wash: #fdecea;
    --panel: max(380px, 34.5%);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    /* Painted on the page canvas so the dark column reaches the bottom of any window. */
    background: linear-gradient(90deg, var(--navy) var(--panel), var(--page) 0);
}

body {
    min-height: 100vh;
    margin: 0;
    padding-left: var(--panel);
    color: var(--ink);
    font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
p,
ul {
    margin: 0;
}

/* Brand panel */

.panel {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--panel);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 58px;
    overflow: hidden auto;
    background:
        radial-gradient(60% 34% at 86% 3%, rgba(255, 255, 255, 0.13), transparent 70%),
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(180deg, #171717 0%, var(--navy) 62%);
    color: var(--navy-ink);
}

.panel-company {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.01em;
}

.panel-product {
    margin-top: 4px;
    color: var(--navy-faint);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.panel-pitch h1 {
    font-size: clamp(28px, 2.3vw, 34px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.22;
}

.panel-pitch > p {
    max-width: 370px;
    margin-top: 18px;
    color: var(--navy-soft);
    font-size: 15.5px;
    line-height: 1.6;
}

.panel-pitch ul {
    display: grid;
    gap: 13px;
    margin-top: 30px;
    padding: 0;
    list-style: none;
}

.panel-pitch li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #e6e6e6;
    font-size: 14.5px;
}

.panel-pitch li span {
    display: grid;
    flex: none;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #f2f2f2;
}

.panel-legal {
    color: var(--navy-faint);
    font-size: 12.5px;
}

/* Sign-in form */

main {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 40px 24px;
}

.login {
    width: 100%;
    max-width: 400px;
}

.login-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-weight: 650;
}

.login h2 {
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.login-lead {
    margin: 6px 0 26px;
    color: var(--ink-2);
}

.login label {
    display: block;
    margin: 20px 0 8px;
    font-size: 13px;
    font-weight: 600;
}

.input {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--field);
    color: var(--muted);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.14);
    color: var(--brand);
}

.input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
}

.input input::placeholder {
    color: #a3abb9;
}

.reveal {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right: -6px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.reveal:hover,
.reveal[aria-pressed="true"] {
    color: var(--brand);
}

.login .remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 26px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.remember input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--brand);
}

.submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--brand);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.submit:hover {
    background: var(--brand-dark);
}

:is(.submit, .reveal, .remember input):focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.login-error,
.field-error {
    color: var(--error);
    font-size: 13.5px;
}

.login-error {
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--error-wash);
}

.field-error {
    margin-top: 6px;
}

.login-help {
    margin-top: 22px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 860px) {
    html {
        background: var(--page);
    }

    body {
        padding-left: 0;
    }

    .panel {
        display: none;
    }

    .login-brand {
        display: flex;
    }
}
