:root {
    --auth-bg: #071013;
    --auth-surface: #0b171b;
    --auth-border: rgba(126, 168, 177, 0.22);
    --auth-text: #edf7f8;
    --auth-muted: #93aeb4;
    --auth-cyan: #22d3ee;
    --auth-danger: #fb8f8f;
}

body[data-auth-state="checking"] .portal-shell { visibility: hidden; }

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    background: radial-gradient(circle at 50% -12%, rgba(19, 74, 83, 0.42), transparent 44%), var(--auth-bg);
    color: var(--auth-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.auth-card { width: min(100%, 430px); padding: clamp(24px, 5vw, 38px); border: 1px solid var(--auth-border); border-radius: 20px; background: rgba(11, 23, 27, 0.9); box-shadow: 0 26px 80px rgba(0, 0, 0, 0.3); }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px; color: var(--auth-text); text-decoration: none; }
.auth-brand img { width: 50px; height: 38px; object-fit: contain; padding: 4px; border: 1px solid rgba(34, 211, 238, 0.27); border-radius: 10px; background: #0a181c; }
.auth-brand-copy { display: grid; gap: 1px; }
.auth-brand-copy strong { font-size: 0.92rem; }
.auth-brand-copy span { color: var(--auth-muted); font-size: 0.75rem; }
.auth-eyebrow { margin: 0 0 8px; color: var(--auth-cyan); font-size: 0.69rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.auth-eyebrow::before { display: inline-block; width: 21px; height: 2px; margin: 0 8px 3px 0; border-radius: 2px; background: currentColor; content: ""; vertical-align: middle; }
.auth-card h1 { margin: 0 0 9px; font-size: clamp(1.75rem, 5vw, 2.35rem); letter-spacing: -0.045em; line-height: 1.08; }
.auth-intro { margin: 0 0 24px; color: var(--auth-muted); font-size: 0.88rem; }
.auth-form { display: grid; gap: 10px; }
.auth-form label { color: var(--auth-muted); font-size: 0.76rem; font-weight: 700; }
.auth-form input { width: 100%; min-height: 45px; padding: 0 12px; border: 1px solid var(--auth-border); border-radius: 9px; outline: 0; color: var(--auth-text); background: #0a181c; font: inherit; }
.auth-form input:focus { border-color: var(--auth-cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.13); }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; margin-top: 8px; padding: 0 16px; border: 0; border-radius: 9px; color: #03252b; background: linear-gradient(135deg, #a4f2f6, #22d3ee); font-weight: 800; }
.auth-submit:hover { filter: brightness(1.05); }
.auth-submit:disabled { cursor: wait; opacity: 0.62; }
.auth-link { display: inline-flex; margin-top: 17px; color: var(--auth-cyan); font-size: 0.78rem; font-weight: 750; text-decoration: none; }
.auth-link:hover { color: #a4f2f6; }
.auth-message { min-height: 20px; margin: 0 0 10px; font-size: 0.78rem; }
.auth-message[data-state="error"] { color: var(--auth-danger); }
.auth-message[data-state="success"] { color: #71e2b0; }
.auth-access-note { display: grid; gap: 5px; margin-top: 27px; padding: 14px 15px; border: 1px solid rgba(34, 211, 238, 0.34); border-left: 3px solid var(--auth-cyan); border-radius: 10px; background: rgba(19, 74, 83, 0.27); }
.auth-access-note strong { color: var(--auth-text); font-size: 0.82rem; }
.auth-access-note p { margin: 0; color: #a8c3c8; font-size: 0.75rem; line-height: 1.5; }
.auth-legal { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; color: #6e8b92; font-size: 0.7rem; }
.auth-legal a { color: var(--auth-muted); text-decoration: none; }
.auth-legal a:hover { color: var(--auth-text); }
