/* LOGIN / REGISTRATION: deliberately isolated from the authenticated app. */
#auth-root[hidden]{display:none!important}
#auth-root{position:fixed;inset:0;z-index:1000;overflow-y:auto;overscroll-behavior:contain;background:#030307;color:#fff;font-family:var(--font);-webkit-font-smoothing:antialiased}
#auth-root .auth-scene{position:relative;isolation:isolate;min-height:100dvh;overflow:hidden;background:radial-gradient(ellipse 105% 52% at 34% -12%,rgba(6,118,121,.29),transparent 78%),radial-gradient(ellipse 115% 66% at 104% 0%,rgba(19,41,112,.40),transparent 73%),linear-gradient(180deg,#111a2d 0%,#060912 42%,#010102 72%,#000 100%)}
#auth-root .auth-scene.auth-register,#auth-root .auth-scene.auth-register-details{background:radial-gradient(ellipse 88% 57% at -4% -3%,rgba(32,93,104,.52),transparent 80%),radial-gradient(ellipse 110% 63% at 105% -6%,rgba(20,36,127,.83),transparent 76%),linear-gradient(172deg,#1b3564 0%,#121d45 31%,#0a1028 54%,#000 79%)}
#auth-root .auth-scene.auth-welcome{background:radial-gradient(ellipse 80% 42% at 65% 24%,rgba(161,138,107,.21),transparent 77%),radial-gradient(ellipse 76% 48% at 5% 2%,rgba(8,100,102,.39),transparent 76%),radial-gradient(ellipse 115% 67% at 95% 33%,rgba(32,61,116,.57),transparent 77%),linear-gradient(145deg,#26313e,#121b32 52%,#030304 92%)}
#auth-root .auth-light{position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.7;background:radial-gradient(ellipse 35% 21% at 72% 24%,rgba(72,106,172,.10),transparent)}
#auth-root .auth-panel{width:100%;max-width:480px;min-height:100dvh;display:flex;flex-direction:column;position:relative;margin:0 auto;padding:calc(max(22px,env(safe-area-inset-top)) + clamp(68px,10vh,114px)) 22px max(22px,env(safe-area-inset-bottom))}
#auth-root .auth-scene.auth-welcome .auth-panel{padding:0 15px max(24px,env(safe-area-inset-bottom))}
#auth-root .auth-heading{margin: 77px 0px 25px;}
#auth-root .auth-heading h1{font-family:var(--font);font-size:clamp(29px,8.4vw,39px);font-weight:650;line-height:1.12;letter-spacing:-.9px;margin:0;max-width:410px;color:#f7f8fa}
#auth-root .auth-heading p{font-size:clamp(14px,3.9vw,16px);font-weight:400;line-height:1.4;color:#afb3bd;margin:14px 0 0;max-width:405px}
#auth-root .auth-form{display:flex;flex-direction:column;gap:0;width:100%}
#auth-root .auth-input{display:block;width:100%;height:58px;min-height:58px;padding:0 19px;border:1px solid transparent;border-radius:26px;background:linear-gradient(132deg,rgba(255,255,255,.105),rgba(255,255,255,.075));color:#fff;font-size:17px;font-weight:400;outline:none;box-shadow:inset 0 1px 0 rgba(255,255,255,.035)}
#auth-root .auth-input::placeholder{color:#a6a9b2;opacity:1}
#auth-root .auth-input:focus{border-color:rgba(24,196,195,.67);box-shadow:0 0 0 2px rgba(12,173,173,.14)}
#auth-root .auth-form>.auth-input+.auth-input{margin-top:13px}
#auth-root .auth-text-link,#auth-root .auth-provider-alternate{appearance:none;color:#85b6ff;text-align:left;font-size:14px;font-weight:500;border:0;padding:0;background:transparent;line-height:1.4;align-self:flex-start}
#auth-root .auth-form>.auth-text-link{margin:18px 0 0}
#auth-root .auth-text-link:hover,#auth-root .auth-provider-alternate:hover{text-decoration:underline}
#auth-root .auth-primary,#auth-root .auth-secondary{min-height:54px;min-width:100%;border:0;border-radius:31px;display:flex;align-items:center;justify-content:center;padding:0 22px;font-family:var(--font);font-size:16px;font-weight:600;line-height:1;color:#101010;background:#fdfdfd;box-shadow:inset 0 1px 1px #fff6;transition:box-shadow .2s,opacity .2s;cursor:pointer}
#auth-root .auth-primary:not(:disabled):hover{box-shadow:0 0 24px #4B403945}
#auth-root .auth-primary:disabled{opacity:1;color:#161619;background:#515155;box-shadow:none;cursor:not-allowed}
#auth-root .auth-form>.auth-primary{margin:25px 0 0}
#auth-root .auth-secondary{margin-top:11px;background:rgba(24,25,31,.85);color:#fff;box-shadow:inset 0 1px 0 #ffffff22}
#auth-root .auth-divider{display:flex;align-items:center;justify-content:center;gap:15px;color:#a1a1ad;margin:23px 0 18px;font-size:14px;font-weight:400}
#auth-root .auth-divider:before,#auth-root .auth-divider:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,#51535a)}
#auth-root .auth-divider:after{transform:rotate(180deg)}
#auth-root .auth-social{display:flex;flex-direction:column;gap:11px}
#auth-root .auth-social-button{width:100%;min-height:51px;display:flex;align-items:center;justify-content:center;gap:12px;background:linear-gradient(130deg,#1b1c20,#161719);border:1px solid rgba(255,255,255,.045);border-radius:29px;padding:10px 17px;color:#f8f8fa;font-size:16px;font-weight:500;font-family:var(--font);cursor:pointer;transition:background .2s,border-color .2s,box-shadow .2s}
#auth-root .auth-social-button img{width:21px;height:21px;object-fit:contain;display:block;flex:0 0 21px}
#auth-root .auth-social-button:hover{background:linear-gradient(110deg,#282a2f,#22262b);border-color:rgba(12,173,173,.35);box-shadow:0 0 16px rgba(12,173,173,.14)}
#auth-root .auth-social-spaced{margin:10px 0 0}
#auth-root .auth-provider-alternate{align-self:center;margin:23px auto 0;display:block;text-align:center}
#auth-root .auth-error{font-size:13px;line-height:1.43;color:#ffd5d5;background:rgba(128,30,38,.38);border:1px solid rgba(239,113,123,.32);border-radius:14px;padding:11px 14px;margin-top:13px;overflow-wrap:anywhere}
#auth-root .auth-error[hidden]{display:none}
#auth-root .auth-identity{font-size:14px;color:#b3bbc6;margin:-9px 0 22px;overflow-wrap:anywhere}
#auth-root .auth-identity .auth-text-link{margin-left:7px}
#auth-root .auth-hint{color:#a5afbd;font-size:12px;line-height:1.4;margin:9px 3px 12px}
#auth-root .auth-terms{display:flex;gap:11px;align-items:flex-start;color:#bfc4cc;font-size:13px;line-height:1.5;margin:9px 3px 3px}
#auth-root .auth-terms input{margin:3px 0 0;flex-shrink:0;width:18px;height:18px;accent-color:#4B4039}
#auth-root .auth-code-row{display:flex;gap:12px;justify-content:center;margin:8px 0 12px}
#auth-root .auth-code-digit{display:block;min-width:0;flex:1;max-width:75px;height:68px;border:1px solid #ffffff19;border-radius:18px;background:#ffffff18;color:#fff;text-align:center;font-size:28px;font-weight:600}
#auth-root .auth-code-digit:focus{border-color:#4B4039;outline:none}
#auth-root .auth-code-resend{margin-top:20px;text-align:center}
#auth-root .auth-mail-icon{display:inline-flex;width:23px;height:23px;align-items:center;justify-content:center;font-size:23px;line-height:1;color:#fff}
/* Opening screen: original ONINEE gold card file, not a re-drawn logo or card. */
#auth-root .auth-welcome-visual{position:relative;flex:1;min-height:370px;display:flex;align-items:center;justify-content:center;overflow:hidden}
#auth-root .auth-welcome-visual:before{content:"";position:absolute;inset:0;background:linear-gradient(138deg,transparent 12%,rgba(255,255,255,.055) 28%,transparent 39%,rgba(255,255,255,.018) 50%,transparent 64%);transform:skewY(-16deg) scale(1.3);pointer-events:none}
#auth-root .auth-welcome-light{position:absolute;width:90%;aspect-ratio:1;max-width:410px;border-radius:50%;background:radial-gradient(circle,rgba(225,179,92,.26),rgba(6,117,115,.095) 46%,transparent 71%);filter:blur(31px)}
#auth-root .auth-gold-card{position:relative;display:block;object-fit:contain;width:min(94%,410px);max-height:40vh;transform:rotate(-21deg) perspective(900px) rotateY(-9deg);filter:drop-shadow(0 23px 20px rgba(0,0,0,.65))}
#auth-root .auth-welcome-actions{width:100%;display:flex;flex-direction:column;gap:0;padding-bottom:1px;flex:none}
#auth-root .auth-welcome-actions .auth-primary{min-height:50px}
#auth-root .auth-welcome-actions .auth-secondary{min-height:50px}
@media(min-width:700px){#auth-root{background:#030307}#auth-root .auth-scene{max-width:480px;margin:auto;box-shadow:0 0 75px #000c}}
@media(max-width:360px){#auth-root .auth-panel{padding-left:18px;padding-right:18px}#auth-root .auth-heading h1{font-size:29px}#auth-root .auth-input{min-height:54px;height:54px}#auth-root .auth-social-button{min-height:48px;font-size:15px}}
@media(max-height:680px){#auth-root .auth-panel{padding-top:calc(max(12px,env(safe-area-inset-top)) + 30px)}#auth-root .auth-heading{margin-bottom:18px}#auth-root .auth-heading h1{font-size:29px}#auth-root .auth-heading p{margin-top:9px}#auth-root .auth-form>.auth-primary{margin-top:15px}#auth-root .auth-divider{margin:15px 0 12px}#auth-root .auth-social{gap:8px}#auth-root .auth-social-button{min-height:47px}#auth-root .auth-welcome-visual{min-height:265px}#auth-root .auth-gold-card{max-height:35vh}}
@media(prefers-reduced-motion:reduce){#auth-root *{transition:none!important}}

/* Exact user-provided ONINEE login artwork. Scoped to authentication only. */
#auth-root .auth-scene,#auth-root .auth-scene.auth-register,#auth-root .auth-scene.auth-register-details,#auth-root .auth-scene.auth-welcome{background:#050a0b url('assets/oninee-login-background.png') center top / cover no-repeat!important}
#auth-root .auth-scene:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.10),rgba(0,0,0,.28) 45%,rgba(0,0,0,.72) 100%);z-index:-1}
#auth-root .auth-scene.auth-welcome .auth-welcome-visual{opacity:.94}
