.auth-page { min-height: 100svh; background: #04100b; }
.auth-topbar { position: fixed; background: rgba(3,12,8,.72); backdrop-filter: blur(15px); }
.auth-back { color: #9db0a3; font: 850 10px/1 monospace; letter-spacing: .13em; }
.auth-back:hover { color: var(--lime); }
.auth-main { min-height: 100svh; display: grid; grid-template-columns: 1.08fr .92fr; }
.auth-promo { position: relative; min-height: 100svh; padding: 140px max(5vw, calc((100vw - var(--max))/2)) 70px 5vw; display: flex; align-items: center; overflow: hidden; background: linear-gradient(90deg, rgba(2,11,7,.2), rgba(2,11,7,.92)), url('assets/raiens-hero.webp') 61% center / cover no-repeat; }
.auth-promo::after { content: "SPĒLĒ"; position: absolute; left: -18px; bottom: 2%; color: rgba(141,255,31,.055); font-size: 14vw; font-weight: 950; font-style: italic; line-height: .7; }
.auth-grid { position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(141,255,31,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(141,255,31,.3) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, transparent, #000); }
.promo-content { position: relative; z-index: 2; width: min(100%, 650px); }
.promo-content h1 { font-size: clamp(80px, 10vw, 145px); }
.promo-content > p:not(.hero-kicker) { max-width: 550px; color: #b7c6bc; font-size: 18px; line-height: 1.7; }
.promo-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 39px; }
.promo-features > div { min-height: 96px; padding: 18px; border: 1px solid rgba(255,255,255,.15); background: rgba(4,17,11,.55); backdrop-filter: blur(8px); }
.promo-features b { display: block; margin-bottom: 12px; color: var(--lime); font: 900 14px/1 monospace; }
.promo-features span { color: #a7b7ac; font: 800 8px/1.45 monospace; letter-spacing: .1em; }
.auth-panel { min-height: 100svh; padding: 125px clamp(24px, 5vw, 76px) 55px; display: flex; align-items: center; background: radial-gradient(circle at 30% 15%, rgba(141,255,31,.09), transparent 30%), #07140e; }
.auth-box { width: min(100%, 510px); margin: auto; }
.auth-box-head small { color: var(--lime); font: 850 9px/1 monospace; letter-spacing: .16em; }
.auth-box-head h2 { margin: 9px 0 10px; font-size: clamp(37px, 4vw, 54px); }
.auth-box-head p { margin-bottom: 27px; color: #8fa097; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 27px; border: 1px solid rgba(255,255,255,.12); }
.auth-tabs button { min-height: 52px; border: 0; color: #7d8d83; background: transparent; cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.auth-tabs button.active { color: #061008; background: var(--lime); }
.invite-preserved { margin: -9px 0 22px; padding: 14px 15px; display: grid; gap: 5px; border: 1px solid rgba(141,255,31,.28); background: rgba(141,255,31,.08); }
.invite-preserved[hidden] { display: none; }
.invite-preserved b { color: var(--lime); font: 900 10px/1.2 monospace; letter-spacing: .08em; }
.invite-preserved span { color: #c5d2ca; font-size: 13px; line-height: 1.45; }
.auth-form { display: grid; gap: 17px; }
.auth-form[hidden], .account-ready[hidden] { display: none; }
.auth-form label { display: grid; gap: 8px; color: #b9c6be; font: 850 9px/1.2 monospace; letter-spacing: .12em; }
.auth-form input:not([type="checkbox"]) { width: 100%; min-height: 56px; padding: 0 17px; border: 1px solid rgba(255,255,255,.16); border-radius: 0; outline: none; color: #fff; background: rgba(255,255,255,.045); font-size: 15px; transition: .2s ease; }
.auth-form input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(141,255,31,.08); }
.auth-form label small { color: #6f8076; font: 500 11px/1.4 system-ui, sans-serif; letter-spacing: 0; }
.safe-check { grid-template-columns: 20px 1fr !important; align-items: start; gap: 10px !important; color: #91a298 !important; font: 500 12px/1.45 system-ui, sans-serif !important; letter-spacing: 0 !important; cursor: pointer; }
.safe-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--lime); }
.safety-note { padding: 13px; display: grid; grid-template-columns: auto 1fr; gap: 10px; color: #93a399; background: rgba(66,198,255,.07); border-left: 2px solid #42c6ff; font-size: 11px; line-height: 1.5; }
.form-error { min-height: 18px; color: #ff7190; font-size: 12px; font-weight: 700; line-height: 1.4; }
.auth-submit { width: 100%; min-height: 57px; padding: 0 19px; display: flex; align-items: center; justify-content: space-between; border: 0; color: #061008; background: var(--lime); cursor: pointer; font-size: 10px; font-weight: 950; letter-spacing: .11em; box-shadow: 6px 6px 0 rgba(141,255,31,.14); transition: .2s ease; }
.auth-submit:hover { transform: translateY(-3px); filter: brightness(1.08); }
.auth-submit:disabled { opacity: .5; cursor: wait; transform: none; }
.auth-submit b { font-size: 19px; }
.text-button { justify-self: center; border: 0; color: #7f9085; background: transparent; cursor: pointer; font-size: 9px; font-weight: 850; letter-spacing: .13em; }
.text-button:hover { color: var(--lime); }
.reset-back { justify-self: start; margin-bottom: 4px; }
.account-ready { text-align: center; }
.ready-avatar { width: 94px; height: 94px; margin: 0 auto 24px; display: grid; place-items: center; color: #061008; background: var(--lime); font-size: 42px; font-weight: 950; clip-path: polygon(12% 0, 88% 0, 100% 12%, 100% 88%, 88% 100%, 12% 100%, 0 88%, 0 12%); }
.account-ready small { color: var(--lime); font: 850 9px/1 monospace; letter-spacing: .14em; }
.account-ready h2 { margin: 9px 0; font-size: 48px; }
.account-ready p { color: #8b9d91; }
.account-ready p strong { color: #fff; font-size: 25px; }
.account-ready .auth-submit { margin-top: 25px; }
.score-link { display: block; margin: 24px 0; color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.recovery-modal[hidden] { display: none; }
.recovery-modal { position: fixed; z-index: 100; inset: 0; padding: 18px; display: grid; place-items: center; background: rgba(0,5,3,.91); backdrop-filter: blur(14px); }
.recovery-card { width: min(100%, 560px); padding: clamp(28px, 5vw, 55px); border: 1px solid rgba(141,255,31,.35); background: #081a12; text-align: center; box-shadow: 14px 14px 0 rgba(141,255,31,.1); }
.recovery-icon { font-size: 45px; }
.recovery-card > small { display: block; margin-top: 17px; color: var(--lime); font: 850 9px/1 monospace; letter-spacing: .14em; }
.recovery-card h2 { margin: 10px 0 14px; font-size: 43px; }
.recovery-card > p { color: #93a49a; font-size: 14px; line-height: 1.6; }
.recovery-code { width: 100%; min-height: 69px; margin: 17px 0; border: 1px dashed var(--lime); color: var(--lime); background: rgba(141,255,31,.06); cursor: copy; font: 950 clamp(21px, 5vw, 31px)/1 monospace; letter-spacing: .11em; }
.recovery-card .safe-check { margin: 21px 0; text-align: left; }
.continue-button { min-height: 48px; padding: 0 18px; border: 1px solid rgba(255,255,255,.15); color: #fff; background: transparent; cursor: pointer; font-size: 9px; font-weight: 900; letter-spacing: .11em; }
.continue-button:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 900px) {
  .auth-main { grid-template-columns: 1fr; }
  .auth-panel { min-height: auto; order: -1; padding: 115px 5% 70px; }
  .auth-promo { min-height: 430px; padding: 70px 5%; }
}
@media (max-width: 600px) {
  .auth-back { font-size: 8px; }
  .auth-promo { min-height: 360px; padding: 58px 18px; }
  .promo-content h1 { font-size: 18vw; }
  .promo-content > p:not(.hero-kicker) { font-size: 15px; }
  .promo-features > div { min-height: 85px; padding: 13px 9px; }
  .auth-panel { padding: 100px 18px 65px; }
  .auth-box-head h2 { font-size: 39px; }
  .recovery-card { padding: 29px 20px; }
}
