/**
 * Login and sign-up pages (/login, /signup).
 * Same language as the pricing page: white page, faint grid, navy ink, brand blue, Outfit
 * headlines. The pitch sits left, the form card right; on phones the headline comes first,
 * then the form, then the details, so the form is never far down the page.
 */
body.auth-page {
    --ink: #14213a;
    --ink-soft: #4a5568;
    --ink-faint: #6b768a;
    --rule: #e6e8ec;
    --rule-strong: #d5d9e0;
    --brand: #1d5bc4;
    --brand-soft: #e8f0fd;
    --gate: #9a5b00;
    --gate-soft: #fff5e1;
    --gate-rule: #f3dca9;
    --display: 'Outfit', 'Inter', system-ui, sans-serif;

    background: #fff;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
body.auth-page .site-header {
    margin-bottom: 0;
}

.auth {
    position: relative;
    isolation: isolate;
    padding: 72px 24px 96px;
}
/* Faint grid behind the headline that fades out on every side */
.auth::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, #eceff3 1px, transparent 1px),
        linear-gradient(to bottom, #eceff3 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 20%, #000 0%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 70% at 30% 20%, #000 0%, transparent 100%);
}
.auth a:focus-visible,
.auth button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.auth-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    grid-template-areas:
        "head card"
        "details card";
    grid-template-rows: auto 1fr;
    column-gap: 88px;
    max-width: 1080px;
    margin: 0 auto;
}
.auth-head { grid-area: head; }
.auth-card { grid-area: card; align-self: start; }
.auth-details { grid-area: details; }

/* ---------- Why you're here ---------- */
.auth-gate {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    max-width: 520px;
    margin-bottom: 36px;
    padding: 14px 16px;
    background: var(--gate-soft);
    border: 1px solid var(--gate-rule);
    border-radius: 10px;
}
.auth-gate-icon {
    flex: 0 0 32px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--gate);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(154, 91, 0, 0.12);
}
.auth-gate-icon svg {
    width: 18px;
    height: 18px;
}
.auth-gate strong {
    display: block;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.auth-gate > div > span {
    display: block;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* ---------- Headline ---------- */
.auth-eyebrow {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
}
.auth-title {
    margin-bottom: 20px;
    font-family: var(--display);
    font-size: clamp(38px, 4.6vw, 56px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.035em;
    color: var(--ink);
}
.auth-title span {
    color: var(--brand);
}
.auth-lede {
    max-width: 30em;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink-soft);
    text-wrap: pretty;
}

/* ---------- Facts and inclusions ---------- */
.auth-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 540px;
    margin: 40px 0 36px;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}
.auth-facts > div {
    padding: 20px 20px 20px 0;
}
.auth-facts > div + div {
    padding-left: 20px;
    border-left: 1px solid var(--rule);
}
.auth-facts dt {
    margin-bottom: 4px;
    font-family: var(--display);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.auth-facts dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ink-faint);
}

.auth-points {
    display: grid;
    gap: 20px;
    max-width: 520px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.auth-points li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.auth-point-icon {
    flex: 0 0 22px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 50%;
}
.auth-point-icon svg {
    width: 12px;
    height: 12px;
}
.auth-points strong {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}
.auth-points li > div > span {
    display: block;
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-soft);
}
.auth-more {
    display: inline-block;
    margin-top: 28px;
    font-size: 14px;
    font-weight: 500;
    color: var(--brand);
    text-decoration: none;
}
.auth-more span {
    display: inline-block;
    transition: transform 0.15s;
}
.auth-more:hover span {
    transform: translateX(3px);
}

/* ---------- Form card ---------- */
.auth-card {
    padding: 36px;
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 16px;
    box-shadow:
        0 1px 2px rgba(20, 33, 58, 0.04),
        0 16px 40px -12px rgba(20, 33, 58, 0.14);
}
.auth-card h1 {
    margin-bottom: 6px;
    font-family: var(--display);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.auth-card-sub {
    margin-bottom: 28px;
    font-size: 14px;
    color: var(--ink-soft);
}
.auth-card a {
    color: var(--brand);
    font-weight: 500;
    text-decoration: none;
}
.auth-card a:hover {
    text-decoration: underline;
}
.auth-error {
    margin-bottom: 20px;
    padding: 11px 14px;
    font-size: 14px;
    color: #b3261e;
    background: #fdecea;
    border: 1px solid #f6c9c4;
    border-radius: 8px;
}

.auth-field {
    margin-bottom: 18px;
}
.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
}
.auth-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.auth-label-row a {
    font-size: 13px;
}
.auth-field input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--rule-strong);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(20, 33, 58, 0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input:hover {
    border-color: #bfc5cf;
}
.auth-field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(29, 91, 196, 0.15);
}
.auth-hint {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--ink-faint);
}

.auth-submit {
    display: block;
    width: 100%;
    height: 46px;
    margin-top: 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.auth-submit:hover {
    background: #24365c;
    border-color: #24365c;
}
.auth-fine {
    margin-top: 14px;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: center;
    color: var(--ink-faint);
}
.auth-page .auth-switch {
    margin-top: 24px;
    padding-top: 20px;
    font-size: 14px;
    text-align: center;
    color: var(--ink-soft);
    border-top: 1px solid var(--rule);
}

/* ---------- Narrow screens: headline, then form, then details ---------- */
@media (max-width: 900px) {
    .auth {
        padding: 36px 20px 64px;
    }
    .auth-wrap {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "head"
            "card"
            "details";
        grid-template-rows: none;
        max-width: 520px;
    }
    .auth-gate {
        margin-bottom: 24px;
    }
    .auth-title {
        margin-bottom: 14px;
    }
    .auth-lede {
        font-size: 16px;
    }
    .auth-card {
        margin-top: 28px;
        padding: 28px 24px;
    }
    .auth-facts {
        margin-top: 36px;
    }
}
@media (max-width: 480px) {
    .auth-facts dt {
        font-size: 22px;
    }
    .auth-facts > div {
        padding-right: 12px;
    }
    .auth-facts > div + div {
        padding-left: 12px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .auth-more span { transition: none; }
}
