:root {
    color-scheme: light;
    --ink: #14261f;
    --muted: #64756e;
    --forest: #103b2d;
    --forest-light: #1c654c;
    --gold: #e6b84f;
    --paper: #f5f7f2;
    --line: #d8e1dc;
    --danger: #9b2c2c;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(230, 184, 79, .16), transparent 28rem),
        linear-gradient(135deg, #0c2b21, #174b3a);
}

button,
input {
    font: inherit;
}

.auth-page {
    min-height: 100vh;
    min-height: 100svh;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(20rem, 1fr) minmax(26rem, .9fr);
    min-height: 100vh;
    min-height: 100svh;
}

.auth-brand,
.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 6vw, 7rem);
}

.auth-brand {
    max-width: 52rem;
    color: #fff;
}

.auth-brand-lockup {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 3rem;
}

.auth-brand-mark {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    border: 1px solid rgba(230, 184, 79, .72);
    border-radius: 1rem;
    color: #f4d982;
    place-items: center;
    font-family: Georgia, serif;
    font-size: 1.2rem;
}

.auth-product-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.auth-brand h1 {
    max-width: 12ch;
    margin: .5rem 0 1.5rem;
    font-family: Georgia, serif;
    font-size: clamp(3rem, 6vw, 6.2rem);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.045em;
}

.auth-brand > p:last-child {
    max-width: 36rem;
    color: rgba(255, 255, 255, .74);
    font-size: 1.05rem;
    line-height: 1.7;
}

.auth-eyebrow {
    margin: 0 0 .65rem;
    color: var(--forest-light);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-brand .auth-eyebrow {
    color: #f4d982;
}

.auth-panel {
    align-items: center;
    background: var(--paper);
}

.auth-card {
    width: min(100%, 31rem);
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2rem 6rem rgba(9, 39, 29, .14);
}

.auth-card h2 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 2.35rem;
    font-weight: 500;
    letter-spacing: -.025em;
}

.auth-intro {
    margin: .75rem 0 1.75rem;
    color: var(--muted);
    line-height: 1.55;
}

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-form label {
    display: grid;
    gap: .45rem;
    color: #40554d;
    font-size: .82rem;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    min-height: 3.2rem;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: .8rem;
    outline: 0;
    background: #fff;
    color: var(--ink);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.auth-form input:focus {
    border-color: var(--forest-light);
    box-shadow: 0 0 0 .22rem rgba(28, 101, 76, .12);
}

.auth-form button {
    min-height: 3.25rem;
    margin-top: .4rem;
    border: 0;
    border-radius: .85rem;
    background: var(--forest);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    transition: background .16s ease, transform .16s ease;
}

.auth-form button:hover {
    background: var(--forest-light);
    transform: translateY(-1px);
}

.auth-check {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.auth-check input {
    width: 1.1rem;
    min-height: 1.1rem;
}

.auth-link {
    display: inline-block;
    margin-top: 1.3rem;
    color: var(--forest-light);
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-notice,
.auth-errors {
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    border-radius: .8rem;
    font-size: .84rem;
    line-height: 1.45;
}

.auth-notice {
    background: #e7f5ed;
    color: #15563f;
}

.auth-errors {
    background: #fff0f0;
    color: var(--danger);
}

.auth-errors ul {
    margin: .45rem 0 0;
    padding-left: 1.15rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--muted);
    font-size: .75rem;
}

.auth-divider::before,
.auth-divider::after {
    height: 1px;
    background: var(--line);
    content: "";
    flex: 1;
}

.auth-security-note {
    color: var(--muted);
    font-size: .75rem;
}

@media (max-width: 800px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        min-height: 16rem;
        padding: 2rem;
    }

    .auth-brand-lockup {
        margin-bottom: 1.5rem;
    }

    .auth-brand-mark {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: .75rem;
    }

    .auth-brand h1 {
        max-width: 15ch;
        font-size: clamp(2.2rem, 11vw, 3.6rem);
    }

    .auth-brand > p:last-child {
        display: none;
    }

    .auth-panel {
        justify-content: flex-start;
        padding: 1rem;
    }

    .auth-card {
        margin-top: -2.5rem;
        border-radius: 1.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
