:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #07100d;
  color: #f5f5ef;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 12% 12%, rgba(76,186,147,.2), transparent 32rem), radial-gradient(circle at 88% 85%, rgba(255,165,82,.13), transparent 30rem), linear-gradient(145deg,#07100d,#111713 55%,#090c0b);
}
button, input { font: inherit; }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 88px 20px 56px; position: relative; }
.brand { position: absolute; top: 28px; left: 34px; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 900; }
.brand img { width: 44px; height: 44px; display: block; border-radius: 50%; transition: transform .34s ease-out, box-shadow .34s ease-out; }
.brand:hover img, .brand:focus-visible img { transform: rotate(16deg); box-shadow: 0 7px 20px rgba(215,236,47,.18); }
.brand span { font-size: 17px; }
.auth-card { width: min(100%,440px); padding: 34px; border: 1px solid rgba(255,255,255,.11); border-radius: 28px; background: rgba(12,18,15,.9); backdrop-filter: blur(24px); box-shadow: 0 36px 110px rgba(0,0,0,.46); }
.eyebrow { margin: 0 0 10px; color: #d7ff72; font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(30px,7vw,40px); line-height: 1.08; letter-spacing: -.045em; }
.intro { margin: 11px 0 24px; color: #aeb7b1; line-height: 1.6; font-size: 15px; }
.google-auth { display: grid; gap: 10px; margin-bottom: 18px; }
.google-button { min-height: 44px; display: flex; justify-content: center; overflow: hidden; border-radius: 10px; }
.google-auth .status { min-height: 0; text-align: center; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #77817b; font-size: 11px; font-weight: 800; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; background: rgba(0,0,0,.24); }
.mode-tabs button { min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: #8f9993; font-weight: 800; cursor: pointer; }
.mode-tabs button.active { color: #102016; background: #d7ff72; }
form { display: grid; gap: 16px; }
label { display: grid; gap: 7px; color: #dfe5e1; font-size: 13px; font-weight: 750; }
input { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid #39423e; border-radius: 12px; outline: none; color: #f7faf8; caret-color: #d7ff72; background: #202623; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); transition: border-color .18s, background .18s, box-shadow .18s; }
input:hover { border-color: #53605a; background: #252c28; }
input:focus { border-color: #a9d95c; background: #252d29; box-shadow: 0 0 0 3px rgba(215,255,114,.12), inset 0 1px 0 rgba(255,255,255,.04); }
input:-webkit-autofill { -webkit-text-fill-color: #f7faf8; box-shadow: 0 0 0 1000px #202623 inset; transition: background-color 9999s; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 68px; }
.password-wrap button { position: absolute; right: 7px; top: 7px; min-height: 36px; padding: 0 9px; border: 0; border-radius: 8px; color: #d7ff72; background: transparent; cursor: pointer; }
.password-wrap button:hover { background: rgba(215,255,114,.08); }
.hint, .status { min-height: 18px; margin: 0; color: #8f9993; font-size: 12px; line-height: 1.5; }
.status.error { color: #ff9c94; }
.status.success { color: #d7ff72; }
.verification-sent { display: grid; gap: 14px; text-align: center; }
.mail-mark { width: 68px; height: 68px; margin: 0 auto 2px; display: grid; place-items: center; border: 1px solid rgba(215,255,114,.28); border-radius: 22px; color: #d7ff72; background: rgba(215,255,114,.08); font-size: 30px; box-shadow: 0 14px 36px rgba(0,0,0,.2); }
.verification-copy, .verification-note { margin: 0; color: #aeb7b1; font-size: 14px; line-height: 1.65; }
.verification-email { margin: 0; padding: 11px 14px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; color: #f5f5ef; background: rgba(255,255,255,.04); font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.verification-sent .submit { width: 100%; margin-top: 4px; }
.verification-sent .status { min-height: 18px; }
.turnstile-wrap { min-height: 65px; display: flex; justify-content: center; overflow: hidden; }
.submit { min-height: 50px; border: 0; border-radius: 12px; color: #102016; background: linear-gradient(135deg,#d7ff72,#58dab0); font-weight: 900; font-size: 15px; cursor: pointer; box-shadow: 0 10px 30px rgba(87,218,176,.12); }
.submit:disabled { opacity: .52; cursor: wait; }
.mode-link { justify-self: center; border: 0; color: #b8c0bb; background: transparent; cursor: pointer; }
.mode-link:hover, .back:hover { color: #d7ff72; }
.back { display: block; margin-top: 22px; text-align: center; color: #929c96; text-decoration: none; font-size: 13px; }
.auth-legal { display: flex; justify-content: center; gap: 16px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11px; }
.auth-legal a { color: #77817b; text-decoration: none; }
.auth-legal a:hover { color: #b9c2bc; }
@media (max-width: 520px) { .auth-shell { padding: 82px 14px 36px; } .brand { top: 22px; left: 20px; } .auth-card { padding: 27px 21px; border-radius: 22px; } }
@media (prefers-reduced-motion: reduce) { .brand img { transition: none; } .brand:hover img, .brand:focus-visible img { transform: none; } }
