:root { color-scheme: dark; font-family: Inter, system-ui, sans-serif; }
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body { min-height: 100vh; margin: 0; color: #f4f3f0; background: #0f1115; }
.login-shell { width: min(100% - 40px, 520px); min-height: 100vh; margin: 0 auto; padding: 56px 0 40px; display: flex; flex-direction: column; align-items: flex-start; }
.brand { color: #f4f3f0; font-family: Fraunces, Georgia, serif; font-size: 1.8rem; text-decoration: none; }
.brand strong { color: #e0a92e; }
.login-panel { width: 100%; margin: auto 0; padding: 34px; background: #191c22; border: 1px solid rgba(244,243,240,.14); border-radius: 8px; }
.eyebrow { margin: 0 0 8px; color: #e0a92e; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0; font: 700 clamp(2.2rem, 7vw, 3.4rem)/1.05 Fraunces, Georgia, serif; }
.lede { margin: 16px 0 28px; color: rgba(244,243,240,.76); line-height: 1.6; }
label { display: block; margin: 16px 0 8px; font-size: .92rem; font-weight: 700; }
label:first-child { margin-top: 0; }
input { width: 100%; min-height: 50px; padding: 12px 14px; color: #16181d; background: #f4f3f0; border: 2px solid transparent; border-radius: 6px; font: inherit; }
input:focus { outline: none; border-color: #e0a92e; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-toggle { position: absolute; top: 50%; right: 8px; width: 38px; min-height: 38px; margin: 0; padding: 8px; color: #34383f; background: transparent; border-radius: 5px; transform: translateY(-50%); }
.password-toggle:hover:not(:disabled), .password-toggle:focus-visible:not(:disabled) { color: #16181d; background: #e8e5de; }
.eye-icon { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.eye-icon-hide { display: none; }
.password-toggle[data-visible="true"] .eye-icon-show { display: none; }
.password-toggle[data-visible="true"] .eye-icon-hide { display: block; }
.password-requirements { margin: 12px 0 2px; padding: 14px; color: rgba(244,243,240,.68); background: #121419; border: 1px solid rgba(244,243,240,.1); border-radius: 8px; font-size: .78rem; line-height: 1.4; }
.password-requirements p { margin: 0 0 8px; color: rgba(244,243,240,.82); font-weight: 700; }
.password-requirements ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px 12px; margin: 0; padding: 0; list-style: none; }
.password-requirements li { display: flex; gap: 6px; align-items: flex-start; transition: color .16s ease; }
.password-requirements li span { flex: none; width: 1em; color: rgba(244,243,240,.46); font-weight: 800; }
.password-requirements li[data-met="true"] { color: #b8d99c; }
.password-requirements li[data-met="true"] span { color: #8fc76b; }
.consent { display: flex; gap: 9px; align-items: flex-start; margin: 20px 0 0; color: rgba(244,243,240,.76); font-size: .82rem; font-weight: 500; line-height: 1.45; }
.consent input { width: 17px; min-height: 17px; margin: 2px 0 0; padding: 0; accent-color: #e0a92e; flex: 0 0 auto; }
.consent a { color: #f4c85a; font-weight: 700; }
button { width: 100%; min-height: 50px; margin-top: 14px; color: #16181d; background: #e0a92e; border: 0; border-radius: 6px; font: inherit; font-weight: 700; }
button:hover:not(:disabled), button:focus-visible:not(:disabled) { background: #f4c85a; }
button:focus-visible { outline: 3px solid #f4f3f0; outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .62; }
.register-submit { transition: color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease; }
.register-submit:disabled { color: rgba(244,243,240,.56); background: #454951; box-shadow: none; opacity: 1; }
.register-submit:not(:disabled) { background: #e0a92e; box-shadow: 0 0 0 3px rgba(224,169,46,.14), 0 8px 22px rgba(224,169,46,.18); }
.text-button { width: auto; min-height: auto; margin: 16px 0 0; padding: 0; color: #f4f3f0; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; font-size: .9rem; }
.text-button:hover, .text-button:focus-visible { color: #f4c85a; background: transparent; }
.form-switch { margin: 20px 0 0; color: rgba(244,243,240,.76); font-size: .9rem; line-height: 1.5; }
.form-switch a { color: #f4c85a; font-weight: 700; }
.message, .access-message { min-height: 1.5em; margin: 18px 0 0; font-size: .92rem; line-height: 1.5; }
.message[data-state="error"] { color: #ffb4aa; }
.message[data-state="success"], .access-message { color: #d8e5c6; }
.fine-print { margin: 0; color: rgba(244,243,240,.58); font-size: .8rem; line-height: 1.5; }
@media (max-width: 520px) { .login-shell { padding-top: 32px; } .login-panel { padding: 26px 22px; } .password-requirements ul { grid-template-columns: 1fr; } }
