/*
 * Signed-out pages of the app (sign in, create account, forgot/reset password, two-factor, accept
 * invite) in the console style - 2026-11-11.
 *
 * These five pages were a dark indigo card on a dark gradient while everything after sign-in became a
 * light, blue, Roboto console. Signing in looked like entering a different product.
 *
 * They are styled with inline colours written for a dark card (white text at 35-50% opacity, #6366f1
 * buttons), so this file overrides those exact inline values. That is a deliberate exception to "no
 * [style*=] selectors": the scope is five small views, each one was opened and looked at after this
 * was written, and the alternative was rewriting every view's markup. The offer card on the signup
 * page (.offer-invite) keeps its own warm treatment on purpose.
 */
body.auth-page {
    --a-blue: #1a73e8; --a-blue-d: #174ea6; --a-blue-t: #e8f0fe;
    --a-canvas: #f8fafd; --a-surface: #ffffff; --a-line: #dadce0; --a-ink: #202124; --a-ink-2: #3c4043; --a-mut: #5f6368; --a-bad: #c5221f;
    background: var(--a-canvas) !important; color: var(--a-ink-2);
    font-family: Roboto, 'Segoe UI', system-ui, -apple-system, Arial, sans-serif; font-size: 16px;
}
[data-bs-theme="dark"] body.auth-page {
    --a-blue: #8ab4f8; --a-blue-d: #aecbfa; --a-blue-t: rgba(138, 180, 248, .16);
    --a-canvas: #131314; --a-surface: #1e1f20; --a-line: #3c4043; --a-ink: #e8eaed; --a-ink-2: #c4c7c5; --a-mut: #9aa0a6; --a-bad: #f28b82;
}

body.auth-page .text-white, body.auth-page .logo-text { color: var(--a-ink) !important; }
body.auth-page .text-white-50 { color: var(--a-mut) !important; }
body.auth-page #auth-subtitle { font-size: 16px; }

body.auth-page .auth-card {
    background: var(--a-surface); border: 1px solid var(--a-line); border-radius: 8px;
    backdrop-filter: none; box-shadow: none !important; padding: 32px !important;
}
body.auth-page .auth-card .form-label { color: var(--a-ink-2) !important; font-size: 14px !important; font-weight: 500 !important; margin-bottom: 6px !important; }
body.auth-page .auth-card input.form-control {
    background: var(--a-surface); border: 1px solid #80868b; color: var(--a-ink); border-radius: 4px;
    min-height: 48px; font-size: 16px; padding: 10px 14px;
}
body.auth-page .auth-card input.form-control:hover { border-color: var(--a-ink); }
body.auth-page .auth-card input.form-control:focus { background: var(--a-surface); border-color: var(--a-blue); box-shadow: inset 0 0 0 1px var(--a-blue); color: var(--a-ink); }
body.auth-page .auth-card input.form-control::placeholder { color: var(--a-mut); }
body.auth-page .auth-card .form-check-label, body.auth-page .auth-card .form-text, body.auth-page .auth-card small, body.auth-page .auth-card .small { color: var(--a-mut); }
body.auth-page .auth-card .form-check-input { border-color: var(--a-mut); }
body.auth-page .auth-card .form-check-input:checked { background-color: var(--a-blue); border-color: var(--a-blue); }
body.auth-page .auth-pw-toggle { color: var(--a-mut) !important; }
body.auth-page .auth-pw-toggle:hover, body.auth-page .auth-pw-toggle:focus-visible { color: var(--a-ink) !important; }
body.auth-page #login-form .invalid-feedback, body.auth-page #register-form .invalid-feedback, body.auth-page .invalid-feedback { color: var(--a-bad) !important; }

/* The primary button: every one is written inline as an indigo block. */
body.auth-page .btn[style*="#6366f1"] {
    background: var(--a-blue) !important; color: #fff !important; border: 0 !important; border-radius: 4px !important;
    min-height: 48px; font-size: 16px; font-weight: 500 !important; box-shadow: 0 1px 2px rgba(60, 64, 67, .3);
}
[data-bs-theme="dark"] body.auth-page .btn[style*="#6366f1"] { color: #131314 !important; }
body.auth-page .btn[style*="#6366f1"]:hover { filter: brightness(.94); }
/* Social sign-in: an outlined button on the white card (it was a white block on a dark one). */
body.auth-page a[data-oauth-link] {
    background: var(--a-surface) !important; color: var(--a-ink) !important; border: 1px solid var(--a-line) !important;
    border-radius: 4px !important; min-height: 48px; font-size: 16px; font-weight: 500 !important;
}
body.auth-page a[data-oauth-link]:hover { background: #f1f3f4 !important; }
[data-bs-theme="dark"] body.auth-page a[data-oauth-link]:hover { background: #28292a !important; }

/* Links and quiet text that were white-at-40% or indigo. */
body.auth-page a[style*="#6366f1"], body.auth-page .auth-card a:not(.btn), body.auth-page a.text-decoration-none[style*="rgba(255,255,255"] { color: var(--a-blue) !important; }
body.auth-page p[style*="rgba(255,255,255"], body.auth-page span[style*="rgba(255,255,255"] { color: var(--a-mut) !important; }
body.auth-page .border-top[style*="rgba(255,255,255"] { border-color: var(--a-line) !important; }
body.auth-page i[style*="#6366f1"] { color: var(--a-blue) !important; }
body.auth-page .alert[style*="#a5b4fc"] { background: var(--a-blue-t) !important; border: 0 !important; color: var(--a-blue-d) !important; border-radius: 8px !important; font-size: 14px; }
body.auth-page .alert-danger { border-radius: 8px; }
body.auth-page .nav-pills .nav-link, body.auth-page .auth-switch a { color: var(--a-blue); }
body.auth-page :focus-visible { outline: 2px solid var(--a-blue); outline-offset: 2px; }

/* A message about signing in belongs over the form, not in the far corner of the window. */
body.auth-page .toast-container { left: 50% !important; right: auto !important; top: auto !important; bottom: 24px !important; transform: translateX(-50%); width: min(420px, calc(100vw - 32px)); }
body.auth-page .toast-container .toast, body.auth-page .toast-container .toast .toast-body { color: #fff !important; }
body.auth-page .toast-container .toast { width: 100%; font-size: 15px; }
body.auth-page #auth-check-email h2 { color: var(--a-ink, #202124); }
body.auth-page #auth-check-email p { color: var(--a-ink-2, #3c4043); }
/* Any primary button on a signed-out page (the "page not found" screen had the old purple one). */
body.auth-page .btn-primary { background: var(--a-blue) !important; border-color: var(--a-blue) !important; color: #fff !important; border-radius: 4px !important; }
