:root {
    color-scheme: light dark;
    --page: #f2f3f5;
    --surface: #e7e9ed;
    --ink: #171a20;
    --muted: #5c6470;
    --line: #c9cdd4;
    --accent: #244b91;
    --accent-ink: #f7f9ff;
    --error: #a12f32;
    --radius: 14px;
    --max-width: 1380px;
    font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
    font-synthesis: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100dvh;
    background: var(--page);
    color: var(--ink);
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    display: block;
    width: 100%;
}

.brand {
    display: inline-flex;
    align-items: baseline;
    gap: 0.42rem;
    width: max-content;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-decoration: none;
}

.brand span {
    color: var(--accent);
}

.eyebrow {
    margin: 0 0 1.4rem;
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 760;
    letter-spacing: 0.18em;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
    min-height: 100dvh;
}

.login-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.5rem, 4vw, 4.5rem);
}

.login-content {
    width: min(100%, 31rem);
    padding: 4rem 0;
}

.login-content h1,
.hero h1,
.statement h2 {
    margin: 0;
    font-weight: 620;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.login-content h1 {
    max-width: 8ch;
    font-size: clamp(3rem, 6vw, 5.8rem);
}

.intro {
    max-width: 30rem;
    margin: 1.6rem 0 2.6rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.7;
}

.login-form {
    width: min(100%, 27rem);
}

.field {
    display: grid;
    gap: 0.55rem;
}

.field label {
    font-size: 0.82rem;
    font-weight: 680;
}

.field input {
    width: 100%;
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    outline: none;
    background: color-mix(in srgb, var(--page) 70%, transparent);
    color: var(--ink);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

.field-help,
.form-error {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
}

.field-help {
    color: var(--muted);
}

.form-error {
    color: var(--error);
    font-weight: 650;
}

.login-form button,
.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    margin-top: 1.25rem;
    padding: 0.85rem 1.35rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 720;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 180ms ease, background-color 180ms ease;
}

.login-form button:hover,
.primary-link:hover {
    background: color-mix(in srgb, var(--accent) 88%, var(--ink));
}

.login-form button:active,
.primary-link:active,
.logout-button:active {
    transform: translateY(1px);
}

.login-form button:focus-visible,
.primary-link:focus-visible,
.logout-button:focus-visible,
.brand:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
    outline-offset: 3px;
}

.privacy-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.76rem;
}

.login-visual {
    height: 100dvh;
    min-height: 100dvh;
    margin: 0;
    overflow: hidden;
    background: #d2d4d8;
}

.login-visual img {
    height: 100%;
    object-fit: cover;
}

.site-header,
.site-footer,
.hero,
.statement,
.capabilities {
    width: min(calc(100% - 3rem), var(--max-width));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.site-header form {
    margin: 0;
}

.logout-button {
    padding: 0.65rem 0;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 7rem);
    min-height: calc(100dvh - 72px);
    padding-block: 4rem;
}

.hero-copy {
    padding-left: clamp(0rem, 4vw, 4rem);
}

.hero h1 {
    max-width: 100%;
    font-size: clamp(3.5rem, 4.8vw, 5.4rem);
}

.hero-copy > p:not(.eyebrow) {
    max-width: 35rem;
    margin: 1.65rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    line-height: 1.7;
}

.hero-visual {
    height: min(76dvh, 820px);
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 28px 80px rgba(29, 40, 62, 0.15);
}

.hero-visual img {
    height: 100%;
    object-fit: cover;
}

.statement {
    padding-block: clamp(7rem, 13vw, 13rem);
}

.statement h2 {
    max-width: 12ch;
    font-size: clamp(3.2rem, 7vw, 7.6rem);
}

.statement p {
    max-width: 39rem;
    margin: 2.2rem 0 0 auto;
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.7;
}

.capabilities {
    border-top: 1px solid var(--line);
}

.capabilities article {
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    border-bottom: 1px solid var(--line);
}

.capabilities article > div {
    margin-left: clamp(0rem, 12vw, 12rem);
}

.capabilities h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3.2rem);
    font-weight: 610;
    letter-spacing: -0.045em;
}

.capabilities article div p {
    max-width: 37rem;
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    padding-block: 4rem 2rem;
    color: var(--muted);
    font-size: 0.75rem;
}

.site-footer p {
    margin: 0;
}

@media (prefers-color-scheme: dark) {
    :root {
        --page: #17191d;
        --surface: #24272d;
        --ink: #eceef2;
        --muted: #adb3bd;
        --line: #3d424b;
        --accent: #6e91d4;
        --accent-ink: #111823;
        --error: #ff999c;
    }

    .hero-visual {
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
    }
}

@media (max-width: 767px) {
    .login-shell,
    .hero {
        grid-template-columns: 1fr;
    }

    .login-copy {
        min-height: 100dvh;
        padding: 1.35rem;
    }

    .login-content {
        padding: 4.5rem 0 3rem;
    }

    .login-content h1 {
        font-size: clamp(3rem, 16vw, 4.5rem);
    }

    .login-form,
    .login-form button {
        width: 100%;
    }

    .login-visual {
        display: none;
    }

    .site-header,
    .site-footer,
    .hero,
    .statement,
    .capabilities {
        width: min(calc(100% - 2rem), var(--max-width));
    }

    .hero {
        min-height: auto;
        padding-block: 4rem 2rem;
    }

    .hero-copy {
        padding: 0;
    }

    .hero h1 {
        font-size: clamp(2.9rem, 12vw, 4rem);
    }

    .hero-visual {
        height: min(48dvh, 440px);
    }

    .statement {
        padding-block: 7rem;
    }

    .statement p {
        margin-left: 0;
    }

    .capabilities article > div {
        margin-left: 0;
    }

    .site-footer {
        gap: 1rem;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .login-content,
    .hero-copy {
        animation: reveal 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .login-visual,
    .hero-visual {
        animation: reveal-image 760ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    @keyframes reveal {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes reveal-image {
        from {
            opacity: 0;
            transform: scale(0.985);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }
}
