/* Authentication pages have no scripts, external fonts, or third-party assets. */
:root { color-scheme: dark; font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; color: #f4f4f5; background: #111318; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; line-height: 1.65; background: radial-gradient(ellipse at 15% 10%, #20253b 0, transparent 55%), #111318; }
.auth-card { background: #1a1e27; border: 1px solid #343b4b; border-radius: 20px; padding: 32px; box-shadow: 0 18px 60px #0003; }
h1 { font-size: 25px; line-height: 1.35; font-weight: 650; margin: 0 0 18px; letter-spacing: -.03em; }
.primary-button { display: block; width: 100%; padding: 12px 18px; margin-top: 24px; min-height: 48px; border: 0; border-radius: 8px; background: #b8c7ff; color: #152042; text-align: center; text-decoration: none; font: inherit; font-weight: 650; cursor: pointer; }
.primary-button:hover { background: #cbd6ff; }
input:focus-visible, .primary-button:focus-visible, a:focus-visible { outline: 3px solid #b3c1fa; outline-offset: 3px; }
.error-layout { min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.error-card { width: min(100%, 520px); }
.error-card p { color: #c1c8d6; }
.error-card small { display: block; margin-top: 20px; color: #a1abba; overflow-wrap: anywhere; }

/* Login styling is scoped so security/error pages retain their own appearance. */
.login-page { color-scheme: light; color: #1e293b; background: #f5f7fb; }
.login-page body { background: #f5f7fb; }
.login-layout { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.login-card { width: min(100%, 400px); min-width: 0; padding: 36px 32px 28px; background: #fff; border-color: #e3e8f0; border-radius: 20px; box-shadow: 0 8px 32px #20345a08; }
.login-brand { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 24px; color: #2862eb; font-size: 25px; font-weight: 750; letter-spacing: .025em; }
.login-brand img { display: block; border-radius: 12px; }
.login-card h1 { text-align: center; font-size: 24px; margin-bottom: 28px; }
.form-field { margin-bottom: 20px; }
.login-card label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.login-card input:not([type="hidden"]) { display: block; width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #ced7e4; border-radius: 8px; background: #fff; color: #1e293b; font: inherit; font-size: 16px; }
.login-card .primary-button { background: #2862eb; color: #fff; }
.login-card .primary-button:hover { background: #1d50ce; }
.login-card input:focus-visible, .login-card .primary-button:focus-visible { outline-color: #2862eb; }
.contact-note { margin: 24px 0 0; color: #64748b; font-size: 12px; text-align: center; }
.form-error { margin-bottom: 20px; padding: 10px 12px; color: #a82424; background: #fff3f3; border: 1px solid #f2c8c8; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.form-error ul { margin: 0; padding: 0; list-style: none; }
@media (max-width: 400px) {
    .login-card { padding: 28px 24px 24px; border-radius: 16px; }
}
@media (max-height: 560px) {
    .login-layout { align-items: start; }
}
