/* ==========================================================================
   Authentication pages — sign in, and anything else that is one card and a
   single decision.

   Requires css/design-tokens.css.

   Replaces a layout where the form card floated half over a hard-edged photo
   with a stray border, leaving a lot of dead space and no clear reading order.
   This is a two-panel split: the decision on one side, the photography doing
   nothing but setting a mood on the other. On a phone the photo drops out
   entirely rather than pushing the form below the fold.
   ========================================================================== */

body.auth-page {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-ui);
    -webkit-font-smoothing: antialiased;
}

.auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    min-height: 100svh;
}

/* --------------------------------------------------------------------------
   Left: the decision
   -------------------------------------------------------------------------- */

.auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 56px;
}

.auth__inner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.auth__brand {
    display: inline-block;
    margin-bottom: 40px;
}

.auth__brand img {
    height: 56px;
    width: auto;
}

.auth__kicker {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1rem;
    color: var(--turmeric-text);
}

.auth__title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
    line-height: 1.12;
    color: var(--ink);
}

.auth__lead {
    margin: 0 0 32px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--cement-grey);
}

/* Google renders its own button into this slot; the wrapper only positions it
   and gives it a consistent width to sit in. */
.auth__signin {
    display: flex;
    justify-content: flex-start;
    min-height: 44px;
}

.auth__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 28px 0;
    color: var(--arrow-grey);
    font-size: 0.8rem;
}

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

.auth__points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.auth__point {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--dark-grey);
}

.auth__tick {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--cardamom);
}

.auth__foot {
    margin: 36px 0 0;
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--cement-grey);
}

.auth__foot a {
    color: var(--cardamom);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth__alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid rgba(178, 59, 44, 0.35);
    border-left: 4px solid var(--chili);
    border-radius: var(--r-md);
    background: #FCF3F1;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #7A2618;
}

.auth__alert[hidden] {
    display: none;
}

/* --------------------------------------------------------------------------
   Right: the photograph

   Full-bleed with no border and no rounding — it is a wall, not a card. The
   scrim keeps the caption legible over whatever the image happens to be.
   -------------------------------------------------------------------------- */

.auth__art {
    position: relative;
    background-color: var(--tile-green);
    background-size: cover;
    background-position: center center;
}

.auth__art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(7, 50, 38, 0.15) 0%,
        rgba(7, 50, 38, 0.30) 55%,
        rgba(7, 50, 38, 0.72) 100%);
}

.auth__caption {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 1;
    padding: 40px;
    color: #fff;
}

.auth__caption-quote {
    margin: 0 0 8px;
    max-width: 22ch;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.3rem, 1rem + 1.1vw, 1.9rem);
    line-height: 1.2;
    color: #fff;
}

.auth__caption-sub {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
}

/* --------------------------------------------------------------------------
   Responsive — the photo is decoration, so it is the first thing to go.
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
    .auth {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth__art {
        display: none;
    }

    .auth__panel {
        min-height: 100vh;
        min-height: 100svh;
        padding: 40px 24px;
    }
}

@media (max-width: 480px) {
    .auth__panel {
        padding: 32px 20px;
    }

    .auth__brand {
        margin-bottom: 28px;
    }

    .auth__signin {
        justify-content: center;
    }
}
