/* Sign in, sign up, educator sign up, forgot / reset password and verify (layouts/auth), in the site's new design:
   the cream / sage / deep-green palette, Lato headings and Inter text. Scoped under #authPage.
   The auth views still carry a few inline colours from the old dark panel, so those are overridden here. */
#authPage {
    --au-green: #004238;
    --au-deep: #173f33;
    --au-accent: #DDE48A;
    --au-accent-2: #D5D52B;
    --au-cream: #F6F5EE;
    --au-sage: #E9ECE3;
    --au-ink: #0c1f1a;
    --au-muted: #5B6760;
    --au-line: #E4E3DA;
    --au-line-2: #D7D8CD;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    background: var(--au-cream);
    color: var(--au-ink);
    font-family: "Inter", system-ui, sans-serif;
}
body:has(#authPage) { background: var(--au-cream, #F6F5EE); }
#authPage .disp, #authPage h1, #authPage h2, #authPage h3 { font-family: "Lato", "Inter", sans-serif; }

/* left: the welcome panel */
#authPage .auth-aside { background: var(--au-sage); padding: 36px 56px 40px; display: flex; flex-direction: column; gap: 40px; border-radius: 0 140px 0 0; position: relative; overflow: hidden; }
#authPage .auth-logo img { height: 42px; width: auto; max-width: 220px; object-fit: contain; display: block; }
#authPage .auth-aside-body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 660px; }
#authPage .auth-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--au-green); margin: 0 0 18px; }
#authPage .auth-eyebrow::before { content: ""; width: 7px; height: 7px; background: currentColor; }
#authPage .auth-aside h1 { font-size: 60.72px !important; font-weight: 500 !important; line-height: 1.06 !important; letter-spacing: -0.025em; color: var(--au-green) !important; margin: 0; }
#authPage .auth-aside p { color: var(--au-muted) !important; font-size: 16px !important; line-height: 1.65; padding: 0 !important; max-width: 44ch !important; }
#authPage .auth-aside p b, #authPage .auth-aside b { color: var(--au-ink); }
#authPage .auth-aside-center { text-align: left !important; }
#authPage .auth-aside-img { display: block; width: 100%; max-width: 380px; margin: 34px 0 0; background: #fff; border-radius: 16px 90px 16px 16px; padding: 22px; box-shadow: 0 24px 48px -32px rgba(12, 31, 26, .35); }
#authPage .auth-aside-foot { font-size: 12px; color: var(--au-muted); margin: 0; }
#authPage .auth-aside .chip { background: #fff !important; color: var(--au-green) !important; }

/* a few views pushed the old panel's copy down with inline margins; the panel lays itself out now */
#authPage .auth-aside > div { margin-top: 0 !important; }

/* right: the form */
#authPage .auth-main { padding: 48px 56px; display: flex; align-items: center; overflow: auto; }
#authPage .auth-card { width: 100%; max-width: 460px; margin: 0 auto; }
#authPage .auth-card > h2, #authPage .auth-card h2.disp { font-size: 32px !important; font-weight: 500 !important; line-height: 1.15; letter-spacing: -0.02em; color: var(--au-green); }
#authPage .auth-card > p, #authPage .auth-card p { color: var(--au-muted); }
#authPage .auth-card a { color: var(--au-green) !important; }
#authPage .auth-card a:hover { text-decoration: underline; }

#authPage .field { margin-bottom: 16px; }
#authPage .field label { font-size: 13px; font-weight: 600; color: var(--au-ink); margin-bottom: 7px; }
#authPage .field label span[style] { color: var(--au-green) !important; }
#authPage .field input, #authPage .field select, #authPage .field textarea {
    border: 1px solid var(--au-line-2); border-radius: 6px; background: #fff; padding: 12px 14px; font-size: 14.5px; color: var(--au-ink);
}
#authPage .field input[type="checkbox"], #authPage .field input[type="radio"] { width: auto; padding: 0; }
#authPage .field input:focus, #authPage .field select:focus, #authPage .field textarea:focus { border-color: var(--au-green); box-shadow: 0 0 0 3px rgba(0, 66, 56, .1); }
#authPage input[type="checkbox"] { accent-color: var(--au-green); }

/* every old gold button becomes the site's dark button */
#authPage .btn-gold, #authPage .btn-green, #authPage .btn-primary {
    background: var(--au-deep); color: #fff !important; border-radius: 6px; padding: 14px 20px; font-family: "Inter", sans-serif;
    font-size: 14.5px; font-weight: 600; box-shadow: none; justify-content: center; transition: background-color .15s, transform .1s ease-out;
}
#authPage .btn-gold:hover, #authPage .btn-green:hover, #authPage .btn-primary:hover { background: var(--au-green); text-decoration: none; }
#authPage .btn-gold:active, #authPage .btn-green:active { transform: scale(.98); }
#authPage .btn-ghost, #authPage .btn-line { background: #fff; color: var(--au-green) !important; border: 1px solid var(--au-line-2); border-radius: 6px; }

/* other sign-in options */
#authPage .social-divider span { color: var(--au-muted); }
#authPage .social-divider::before, #authPage .social-divider::after { background: var(--au-line-2); }
#authPage .social-btn { background: #fff; border: 1px solid var(--au-line-2); border-radius: 8px; transition: border-color .15s, transform .1s ease-out; }
#authPage .social-btn:hover { border-color: var(--au-green); }
#authPage .social-btn:active { transform: scale(.96); }

#authPage .alert { border-radius: 8px; }

@media (max-width: 1024px) {
    #authPage .auth-aside { padding: 30px 32px 36px; border-radius: 0 90px 0 0; }
    #authPage .auth-main { padding: 36px 32px; }
    #authPage .auth-aside-img { max-width: 300px; }
}
@media (max-width: 760px) {
    #authPage { grid-template-columns: 1fr; align-content: start; }
    #authPage .auth-aside-body { flex: none; }
    #authPage .auth-main { align-items: flex-start; }
    #authPage .auth-aside { border-radius: 0 60px 0 0; gap: 22px; padding: 22px 20px 30px; }
    #authPage .auth-aside-img, #authPage .auth-aside-foot { display: none; }
    #authPage .auth-aside h1 { font-size: 34px !important; }
    #authPage .auth-main { padding: 30px 16px 44px; }
    #authPage .auth-card > h2, #authPage .auth-card h2.disp { font-size: 26px !important; }
}
@media (prefers-reduced-motion: reduce) {
    #authPage * { transition: none !important; }
}

/* app.css centres the old panel's copy; here it sits on the left like the site's heroes */
#authPage .auth-aside-center { max-width: none; margin: 0; }
#authPage .auth-aside-center .disp { padding: 0; }
#authPage .auth-aside-center p { margin: 18px 0 0 !important; text-wrap: pretty; }
#authPage .auth-aside-img { filter: none; }
#authPage .auth-aside p.auth-eyebrow { font-size: 11.5px !important; color: var(--au-green) !important; margin: 0 0 18px !important; }

/* a heading that should stay on one line (student sign up); it wraps again on phones */
#authPage .auth-aside h1.auth-h-one-line { white-space: nowrap; }
@media (max-width: 760px) {
    #authPage .auth-aside h1.auth-h-one-line { white-space: normal; font-size: 34px !important; }
}
/* the 60.72px heading (the site's hero size) needs the full desktop width; narrower screens scale it down */
@media (max-width: 1279px) {
    #authPage .auth-aside h1 { font-size: clamp(34px, 4.2vw, 52px) !important; }
    #authPage .auth-aside h1.auth-h-one-line { font-size: clamp(28px, 3.4vw, 46px) !important; }
}
@media (max-width: 760px) {
    #authPage .auth-aside h1, #authPage .auth-aside h1.auth-h-one-line { font-size: 34px !important; }
}
