:root { color-scheme: light; --auth-ink: #172b42; --auth-muted: #586a7e; --auth-blue: #236cb8; }
* { box-sizing: border-box; }
body.auth-page { margin: 0; min-height: 100vh; padding: 38px 20px 24px; background: #f4f7fb; color: var(--auth-ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 28px; color: var(--auth-ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.auth-card { width: 100%; max-width: 440px; margin: auto; padding: 34px; background: #fff; border: 1px solid #dfe7f0; border-radius: 18px; box-shadow: 0 12px 35px #18344b08; }
.auth-heading { margin-bottom: 26px; }
.auth-heading h1 { font-size: 28px; letter-spacing: -.6px; line-height: 1.2; margin: 0 0 10px; }
.auth-heading p, .auth-hint { color: var(--auth-muted); }
.auth-heading p { margin: 0; font-size: 15px; }
.auth-page a { color: var(--auth-blue); text-underline-offset: 3px; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid #747775; border-radius: 8px; background: white; color: #1f1f1f !important; text-decoration: none; font: 500 15px/1.4 Arial, sans-serif; }
.auth-google:hover { background: #f8fafd; }
.auth-google svg { flex: 0 0 auto; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--auth-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e4eaf1; }
.auth-field { margin-bottom: 18px; }
.auth-field > label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.auth-input { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #b5c3d1; border-radius: 8px; color: var(--auth-ink); background: #fff; font: inherit; }
.auth-password { position: relative; }
.auth-password .auth-input { padding-right: 72px; }
.auth-password-toggle { position: absolute; right: 4px; top: 4px; min-width: 60px; min-height: 40px; padding: 8px; border: 0; border-radius: 5px; color: var(--auth-blue); background: white; cursor: pointer; font: 600 13px system-ui, sans-serif; }
.auth-input:focus, .auth-page a:focus-visible, .auth-page button:focus-visible, .auth-page summary:focus-visible { outline: 3px solid #9ec5f0; outline-offset: 3px; }
.auth-input[aria-invalid="true"] { border-color: #b33636; }
.auth-field-error { display: block; margin-top: 6px; color: #a32525; font-size: 13px; }
.auth-hint { margin: 7px 0 0; font-size: 13px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 22px; font-size: 14px; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.auth-check input { flex: 0 0 auto; margin: 4px 0 0; width: 17px; height: 17px; accent-color: var(--auth-blue); }
.auth-primary { display: block; width: 100%; min-height: 48px; margin-top: 20px; padding: 12px 18px; border: 1px solid var(--auth-blue); border-radius: 8px; color: white; background: var(--auth-blue); cursor: pointer; font: 600 16px/1.4 system-ui, sans-serif; text-align: center; text-decoration: none; }
.auth-primary:hover { background: #1b5798; }
.auth-primary:disabled { opacity: .7; cursor: wait; }
.auth-switch { text-align: center; font-size: 14px; margin: 23px 0 0; }
.auth-details { margin: 5px 0 20px; border-top: 1px solid #e4eaf1; padding-top: 16px; }
.auth-details summary { color: var(--auth-muted); font-size: 14px; cursor: pointer; margin-bottom: 14px; }
.auth-notice, .auth-errors { padding: 12px 14px; margin-bottom: 20px; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.auth-notice { border: 1px solid #b7d8ef; background: #f0f8ff; color: #214d6c; }
.auth-errors { border: 1px solid #edb9b9; color: #842727; background: #fff6f6; }
.auth-errors p { margin: 0 0 5px; font-weight: 600; }
.auth-errors ul { margin: 0; padding-left: 19px; }
.auth-captcha { margin: 18px 0; }
.auth-footer { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 24px auto 0; font-size: 13px; color: var(--auth-muted); }
.auth-footer a { color: var(--auth-muted); }
.auth-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 480px) { body.auth-page { padding: 24px 16px; } .auth-brand { margin-bottom: 22px; } .auth-card { padding: 24px 18px; border-radius: 12px; } .auth-heading h1 { font-size: 26px; } }
@media (max-width: 359px) { .auth-card { padding: 22px 12px; } .auth-captcha { transform: scale(.86); transform-origin: left top; margin-bottom: 2px; } }
