.auth-night {
    --night-ink:#102750;
    --panel-blue:#285b95;
    --panel-edge:#163c70;
    --sky-text:#c6e5ff;
    position:fixed;
    inset:auto;
    left:var(--game-offset-x,0px);
    top:var(--game-offset-y,0px);
    width:1440px;
    height:900px;
    transform:scale(var(--game-scale,1));
    transform-origin:top left;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:clip;
    padding:115px 28px 145px;
    background:radial-gradient(ellipse at 76% 13%,#284b7855,transparent 25%),linear-gradient(#0a1536,#172b58 56%,#294776);
    backdrop-filter:none;
    color:white;
    font-family:"Baloo 2","Arial Rounded MT Bold",system-ui,sans-serif;
}
.auth-scenery { position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.auth-scenery::before { content:""; position:absolute; inset:0; opacity:.65; background-image:radial-gradient(circle,#d9f4ff 1px,transparent 1.7px),radial-gradient(circle,#d9f4ff 1.5px,transparent 2px); background-size:183px 153px,317px 277px; background-position:30px 22px,81px 71px; }
.auth-moon { position:absolute; top:10%; right:17%; width:98px; height:98px; border-radius:50%; background:#e3f6ff; box-shadow:inset 12px -6px #b5d9ed,0 0 60px #c7eaff19; }
.auth-hill { position:absolute; width:140%; height:220px; left:-20%; border-radius:50% 45% 0 0; background:#254578; transform:rotate(-3deg); }
.auth-hill--back { bottom:-95px; opacity:.55; }
.auth-hill--front { bottom:-165px; left:-5%; background:#385787; transform:rotate(4deg); }
.auth-cloud { position:absolute; width:170px; height:28px; border-radius:50%; background:#466190; opacity:.28; }
.auth-cloud::before,.auth-cloud::after { content:""; position:absolute; background:inherit; border-radius:50%; width:65px; height:65px; bottom:5px; left:25px; }
.auth-cloud::after { width:95px; height:85px; left:65px; }
.auth-cloud--one { bottom:7%; left:4%; transform:scale(1.6); }
.auth-cloud--two { right:3%; top:60%; transform:scale(1.2); }
.auth-stage { position:relative; width:min(850px,100%); display:grid; grid-template-columns:1fr 1.06fr; align-items:center; gap:28px; flex-shrink:0; isolation:isolate; }
.auth-welcome { padding:76px 28px 30px; border:10px solid var(--panel-edge); border-radius:30px; background:var(--panel-blue); text-align:center; box-shadow:0 12px 28px #06122e25; }
.auth-create,.auth-home { display:block; color:white; text-decoration:none; border:4px solid #14345e; background:linear-gradient(#5f91c9 0,#32649c 28%,#1d4276 70%); box-shadow:inset 0 2px 2px #a8d7ff60,0 4px 6px #0b204655; font-weight:800; }
.auth-create { max-width:228px; margin:0 auto 26px; padding:8px 12px 14px; border-radius:27px; font-size:46px; line-height:.98; text-shadow:0 3px #163b67; }
.auth-welcome p { font-size:23px; font-weight:800; line-height:1.25; margin:0 0 14px; }
.auth-welcome>strong { color:#7de8ff; font-size:24px; }
.auth-divider { display:flex; align-items:center; gap:12px; margin:24px 0 16px; color:#b9ddff; font-weight:bold; }
.auth-divider::before,.auth-divider::after { content:""; flex:1; height:2px; background:#86b4e166; }
.auth-home { border-radius:18px; padding:8px 14px; font-size:23px; }
.auth-night .auth-account { width:100%; padding:10px 10px 20px; border:0; border-radius:20px; background:#15376a; box-shadow:0 12px 25px #040f3070; overflow:visible; text-align:left; }
.auth-account__inner { border-radius:12px; padding:16px 18px 8px; background:var(--panel-blue); }
.auth-night .auth-header { margin:0; padding:0; display:flex; align-items:center; gap:12px; background:none; }
.auth-night .auth-header h1 { margin:0; color:white; font-size:31px; font-weight:800; line-height:1.1; text-shadow:0 2px #143e6b; }
.auth-switch { margin-left:auto; display:grid; place-items:center; width:34px; height:34px; flex-shrink:0; border-radius:50%; background:#15376a; color:white; text-decoration:none; border:1px solid #92cfff40; box-shadow:inset 0 1px #b4e5ff20,0 2px 4px #071e4533; transition:background .15s,transform .15s; }
.auth-switch svg { width:16px; height:16px; display:block; }
.auth-switch:hover { background:#0a2856; transform:translateY(1px); }
.auth-night .auth-form label { color:var(--sky-text); font-size:20px; line-height:1.2; margin:12px 0 5px; }
.auth-night .auth-form input { height:51px; border:2px solid transparent; border-radius:15px; padding:0 14px; color:white; background:#4a7cb5; caret-color:white; }
.auth-night .auth-form input:focus { border-color:#b4eeff; box-shadow:0 0 0 3px #7cdbff33; }
.auth-password { position:relative; }
.auth-night .auth-password input { padding-right:74px; }
.auth-night .auth-password-toggle { position:absolute; top:0; right:8px; width:auto; height:100%; padding:0 5px; margin:0; background:none; box-shadow:none; border:0; font-size:13px; color:#e4f5ff; }
.auth-account-note { color:#bce7ff; font-size:16px; font-weight:700; margin:15px 0 7px; }
.auth-night .auth-submit { display:block; min-width:175px; margin:15px auto 0; padding:5px 22px 8px; border:4px solid #076294; border-radius:19px; background:linear-gradient(#b0efff,#39b8ec 34%,#078bd0 80%); color:white; box-shadow:inset 0 2px #d5f9ff,0 4px 6px #061c4250; font-size:32px; line-height:1.2; font-weight:800; text-shadow:0 2px #0878aa; cursor:pointer; }
.auth-night .auth-error { margin-top:12px; background:#fff0f0; color:#8a233a; font-size:15px; line-height:1.3; }
.auth-create:hover,.auth-home:hover,.auth-submit:hover { filter:brightness(1.12); }
.auth-night :is(a,button):focus-visible { outline:3px solid #c6f5ff; outline-offset:5px; }
.auth-brand { position:absolute; left:50%; top:calc(100% + 8px); transform:translateX(-50%); width:245px; height:142px; }
.auth-brand img { width:100%; height:100%; object-fit:contain; }
.auth-flyer { position:absolute; z-index:2; width:180px; height:180px; pointer-events:none; animation:auth-float 5s ease-in-out infinite; }
.auth-flyer canvas { width:100%; height:100%; display:block; }
.auth-flyer--boomer { top:-120px; left:25%; width:180px; height:180px; }
.auth-flyer--gata { top:-90px; left:8%; animation-delay:-2s; }
.auth-flyer--rasta { top:-45px; left:-120px; width:180px; height:180px; animation-delay:-1s; }
.auth-flyer--empollon { top:-100px; left:43%; width:180px; height:180px; animation-delay:-3s; }
.auth-flyer--india { top:85px; right:-175px; width:180px; height:180px; animation-delay:-4s; }
@keyframes auth-float { 0%,100% { transform:translateY(0) rotate(-3deg); } 50% { transform:translateY(-12px) rotate(3deg); } }
/* The entire login uses the same responsive scale as the game surface. */
@media(prefers-reduced-motion:reduce) { .auth-flyer { animation:none; } }
.auth-welcome .auth-home { width:100%; cursor:pointer; font:inherit; font-size:23px; font-weight:800; }
.auth-stage--register { width:920px; grid-template-columns:400px 430px; gap:40px; transform:translateX(80px); }
.auth-stage--register .auth-flyer--empollon { position:relative; top:auto; left:auto; grid-column:1; grid-row:1; width:390px; height:390px; justify-self:center; }
.auth-stage--register .auth-account { grid-column:2; grid-row:1; }
.auth-email-label { display:flex!important; align-items:center; flex-wrap:wrap; gap:6px; }
.auth-email-label small { font-size:13px; font-weight:500; }
.auth-email-badge { margin-left:auto; padding:2px 9px; border-radius:12px; background:#ffd94b; color:#563900; font-size:14px; font-weight:800; white-space:nowrap; }
.auth-night .auth-return { display:block; width:max-content; margin:9px auto 0; color:#c9e6fc; font-size:17px; text-decoration:none; }
.auth-night .auth-return:hover { text-decoration:underline; }
