/* Authentication designs, scoped to login/register. */
body:is([data-page="login"],[data-page="register"]){background:#030e20!important;padding:0!important;color:#eaf0ff!important;min-height:100dvh}
body:is([data-page="login"],[data-page="register"])>.top,body:is([data-page="login"],[data-page="register"])>.svd-topbar,body:is([data-page="login"],[data-page="register"])>header,body:is([data-page="login"],[data-page="register"])>aside,body:is([data-page="login"],[data-page="register"])>.desktop-shell,body:is([data-page="login"],[data-page="register"])>.bottom-nav,body:is([data-page="login"],[data-page="register"])>.mobile-bottom-nav,body:is([data-page="login"],[data-page="register"])>.site-footer{display:none!important}
body:is([data-page="login"],[data-page="register"]) main.wrap{width:100%!important;max-width:none!important;margin:0!important;padding:30px 20px!important;display:block!important;min-height:100dvh}
body:is([data-page="login"],[data-page="register"]) main.wrap>.notice,body:is([data-page="login"],[data-page="register"]) main.wrap>.error{max-width:720px;margin:0 auto 16px;padding:16px 20px;color:#f8fafc;background:#163452;border:1px solid #4682ab;border-radius:12px;position:relative;z-index:2}
body:is([data-page="login"],[data-page="register"]) main.wrap>.error{background:#4c202c;border-color:#f28d9c}
body:has(.auth-tone-warm){background:#f8f4e9!important}body:has(.auth-tone-minimal){background:#edf7f2!important}body:has(.auth-tone-rose){background:#f8eff3!important}
.auth-shell{--au-bg:#041226;--au-fg:#eff3ff;--au-muted:#b1c3e4;--au-line:#334c70;--au-accent:#2ebeff;--au-gold:#f8c652;--au-field:#102036;--au-button:linear-gradient(180deg,#20a9ff,#1260ff 55%,#184bff);--au-button-fg:white;--au-font:Georgia,'Times New Roman',serif;width:min(100%,740px);margin:0 auto;font:16px/1.5 system-ui,-apple-system,'Segoe UI',sans-serif;color:var(--au-fg);text-align:left}
.auth-shell.auth-tone-warm{--au-bg:#fffcf4;--au-fg:#103c2c;--au-muted:#677963;--au-line:#cbd6c4;--au-accent:#176144;--au-field:#fffef9;--au-button:linear-gradient(135deg,#286c48,#154b35);--au-gold:#dbad35}
.auth-shell.auth-tone-minimal{--au-bg:#fff;--au-fg:#103d32;--au-muted:#586b6d;--au-line:#d3e1dc;--au-accent:#087760;--au-field:#f9fcfb;--au-button:linear-gradient(135deg,#1a8971,#0d6e59);--au-font:system-ui,-apple-system,'Segoe UI',sans-serif;--au-gold:#e5b73d}
.auth-shell.auth-tone-rose{--au-bg:#fff9fc;--au-fg:#532d43;--au-muted:#886677;--au-line:#ead2df;--au-accent:#b54578;--au-field:#fff;--au-button:linear-gradient(135deg,#c15b8b,#963c6c);--au-gold:#ce9861}
.auth-shell *{box-sizing:border-box}.auth-shell [hidden]{display:none!important}.auth-shell a{color:var(--au-accent)!important;text-decoration:none!important;box-shadow:none!important;border:0}.auth-shell a:hover{text-decoration:underline!important}.auth-shell svg{width:24px;height:24px;flex:0 0 24px;display:block}.auth-card{overflow:hidden;border:1px solid var(--au-line);border-radius:22px;background:var(--au-bg);box-shadow:0 18px 70px #0002;position:relative}
.auth-header{height:86px;padding:20px 32px;display:flex!important;align-items:center;justify-content:space-between;gap:18px;position:relative;z-index:2;background:var(--au-bg)}
.auth-shell .auth-brand{display:flex;align-items:center;gap:12px;color:var(--au-fg)!important;font:700 28px/1.2 var(--au-font);white-space:nowrap}.auth-mark{font-size:42px;color:var(--au-gold);font-family:Georgia,serif;line-height:1;text-shadow:-3px 0 #28a9ff}.auth-languages{display:flex;gap:14px;flex-shrink:0;font-size:13px}.auth-shell .auth-languages a{color:var(--au-muted)!important;padding:3px 0}.auth-shell .auth-languages .is-current{color:var(--au-gold)!important;border-bottom:2px solid var(--au-gold);font-weight:700}
.auth-hero{height:310px;position:relative;overflow:hidden;background:var(--au-bg)}.auth-hero img{width:100%;height:100%;object-fit:cover;object-position:50% 43%;display:block;border:0;border-radius:0}.auth-hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,var(--au-bg) 100%)}.auth-glow{position:absolute;inset:12% 8%;border-radius:50%;box-shadow:0 -20px 70px #248dff24;pointer-events:none}.auth-variant-warm .auth-hero-shade,.auth-variant-minimal .auth-hero-shade{background:linear-gradient(180deg,transparent 80%,var(--au-bg))}
.auth-content{position:relative;padding:0 54px 36px;margin-top:-18px}.auth-shell h1{font:700 44px/1.12 var(--au-font)!important;text-align:center;color:var(--au-fg)!important;margin:0 0 12px!important;letter-spacing:-.025em}.auth-shell h2{font:700 28px/1.18 var(--au-font)!important;color:var(--au-fg)!important;text-align:center;margin:0 0 12px!important;letter-spacing:-.015em}.auth-shell p{color:var(--au-muted);margin:0 0 20px}.auth-shell .auth-subtitle{text-align:center;font:400 20px/1.4 var(--au-font);margin-bottom:26px}
.auth-form{display:grid!important;gap:17px!important;margin:0!important}.auth-shell .auth-field{display:grid;gap:7px;font-size:13px;margin:0!important;color:var(--au-muted)!important;font-weight:400}.auth-input-wrap{position:relative;display:flex;align-items:center}.auth-input-wrap>svg{position:absolute;left:17px;color:var(--au-muted);pointer-events:none}.auth-shell .auth-field input{width:100%!important;height:58px!important;min-width:0;padding:15px 52px 15px 52px!important;border:1px solid var(--au-line)!important;border-radius:9px!important;background:var(--au-field)!important;color:var(--au-fg)!important;font:16px/1.2 system-ui!important;box-shadow:none!important;outline-offset:3px}.auth-shell input::placeholder{color:var(--au-muted)!important;opacity:1}.auth-shell input:focus-visible{outline:2px solid var(--au-accent)!important;outline-offset:2px}.auth-shell a:focus-visible,.auth-shell button:focus-visible{outline:3px solid var(--au-gold)!important;outline-offset:3px}
.auth-shell .auth-eye{position:absolute!important;right:5px;top:6px;width:46px!important;min-width:0!important;height:46px!important;min-height:0!important;padding:11px!important;margin:0!important;background:transparent!important;border:0!important;border-radius:6px!important;color:var(--au-muted)!important;box-shadow:none!important;display:flex!important;align-items:center;justify-content:center;cursor:pointer}.auth-shell .auth-eye:hover{color:var(--au-accent)!important}.auth-shell .auth-check{display:flex;gap:10px;align-items:center;margin:0;font:14px/1.4 system-ui;color:var(--au-fg)!important;cursor:pointer}.auth-shell .auth-check input{width:20px!important;height:20px!important;min-width:20px;margin:0!important;padding:0!important;accent-color:var(--au-accent);border-radius:4px;flex-shrink:0}.auth-login-options{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 5px;font-size:14px}.auth-shell .auth-terms{align-items:flex-start;font-size:13px;margin:4px 0}.auth-terms a{text-decoration:underline!important}
.auth-shell .auth-button{display:flex!important;align-items:center;justify-content:center;gap:14px;width:100%;min-height:58px;padding:15px 20px!important;margin:0!important;background:var(--au-button)!important;border:1px solid var(--au-accent)!important;border-radius:10px!important;color:var(--au-button-fg)!important;text-decoration:none!important;font:600 22px/1.2 var(--au-font)!important;box-shadow:inset 0 1px 2px #ffffff50,0 5px 20px #125cff14!important;cursor:pointer;transition:transform .16s,filter .16s}.auth-shell .auth-button:hover{filter:brightness(1.1);transform:translateY(-1px);text-decoration:none!important}.auth-shell .auth-button:active{transform:translateY(0)}.auth-shell .auth-outline{background:transparent!important;color:var(--au-accent)!important;box-shadow:none!important}.auth-shell .auth-secondary{width:100%;padding:13px!important;border:1px solid var(--au-line)!important;background:transparent!important;color:var(--au-accent)!important;border-radius:9px!important;box-shadow:none!important;cursor:pointer;font-size:15px}.auth-resend{margin-top:15px!important}
.auth-shell .auth-switch{text-align:center;margin:24px 0 0;font-size:14px}.auth-shell .auth-steps{display:flex;list-style:none;gap:0;justify-content:center;margin:28px 0;padding:0}.auth-steps li{width:33.33%;display:flex;align-items:center;flex-direction:column;position:relative;gap:6px;color:var(--au-muted)}.auth-steps li:not(:last-child):after{content:'';position:absolute;top:18px;left:66%;width:68%;height:1px;background:var(--au-line)}.auth-steps li>span{width:38px;height:38px;border:1px solid var(--au-line);border-radius:50%;display:grid;place-items:center;font-size:21px;background:var(--au-bg);z-index:1}.auth-steps li.is-current>span,.auth-steps li.is-done>span{background:var(--au-gold);border-color:var(--au-gold);color:#152034;box-shadow:0 0 18px #e7af3030}.auth-steps .is-current{color:var(--au-gold)}.auth-steps small{font-size:12px}.auth-strength{display:flex;align-items:center;gap:15px;justify-content:space-between;font-size:12px;color:var(--au-muted)}.auth-strength-track{height:5px;background:var(--au-line);border-radius:5px;flex:1;max-width:45%;overflow:hidden}.auth-strength-track i{display:block;width:0;height:100%;transition:width .2s;background:var(--au-gold)}
.auth-benefits{margin-top:32px;padding-top:27px;border-top:1px solid var(--au-line)}.auth-benefits ul{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:23px 20px;padding:0;margin:24px 0 28px}.auth-benefits li{display:flex;align-items:center;gap:13px;font-size:14px;color:var(--au-fg);line-height:1.45}.auth-benefit-icon{display:grid;place-items:center;width:49px;height:49px;flex-shrink:0;border-radius:50%;border:1px solid var(--au-line);color:var(--au-accent);background:var(--au-field)}.auth-benefits li:nth-child(even) .auth-benefit-icon{color:var(--au-gold)}.auth-shell .auth-note{font-size:12px;line-height:1.6;text-align:center;margin:18px 0 0;color:var(--au-muted)}.auth-shell .auth-back{display:block;text-align:center;margin:20px 0;color:var(--au-muted)!important;font-size:13px}.auth-mail-address{display:flex;align-items:center;justify-content:center;gap:12px;overflow-wrap:anywhere;margin:25px 0;font-weight:600}.auth-mail-address+.auth-note{margin-bottom:24px}
.auth-motion .auth-content{animation:auth-enter .5s ease-out}.auth-motion .auth-glow{animation:auth-glow 8s ease-in-out infinite alternate}@keyframes auth-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes auth-glow{from{opacity:.35;transform:translateX(-2%)}to{opacity:.85;transform:translateX(2%)}}
.auth-admin-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:20px 0}.auth-admin-choice{border:1px solid #71809655;border-radius:12px;overflow:hidden;display:flex;flex-direction:column;gap:12px;padding-bottom:14px}.auth-admin-choice img{width:100%;height:115px;object-fit:cover}.auth-admin-choice>span,.auth-admin-choice>a{margin:0 12px}.auth-admin-choice input{width:18px!important;height:18px!important;display:inline!important}.auth-admin-choice:has(input:checked){outline:2px solid #269dff}
@media(max-width:600px){body:is([data-page="login"],[data-page="register"]) main.wrap{padding:0!important}.auth-card{border-radius:0;border-width:0;box-shadow:none}.auth-header{height:68px;padding:14px 20px;gap:10px}.auth-shell .auth-brand{font-size:21px;gap:9px}.auth-mark{font-size:34px}.auth-languages{gap:10px;font-size:12px}.auth-hero{height:205px}.auth-content{padding:0 24px 28px;margin-top:-5px}.auth-shell h1{font-size:34px!important;line-height:1.14!important}.auth-shell h2{font-size:27px!important}.auth-shell .auth-subtitle{font-size:17px;margin-bottom:23px}.auth-shell .auth-field{font-size:12px}.auth-shell .auth-field input{height:54px!important}.auth-shell .auth-eye{top:4px}.auth-form{gap:15px!important}.auth-shell .auth-button{font-size:21px!important;min-height:55px}.auth-login-options{font-size:12px;gap:9px}.auth-shell .auth-check{font-size:12px;gap:8px}.auth-benefits{margin-top:28px;padding-top:25px}.auth-benefits ul{gap:20px 12px}.auth-benefits li{gap:9px;font-size:12px}.auth-benefit-icon{width:39px;height:39px}.auth-benefit-icon svg{width:22px;height:22px}.auth-strength{font-size:11px}.auth-shell .auth-steps{margin:23px 0}.auth-steps li>span{width:34px;height:34px;font-size:18px}.auth-steps li:not(:last-child):after{top:17px}.auth-admin-choices{grid-template-columns:1fr}.auth-shell .auth-back{padding-bottom:16px}}
@media(max-width:360px){.auth-header{padding:12px 16px}.auth-shell .auth-brand{font-size:19px}.auth-content{padding-left:18px;padding-right:18px}.auth-shell h1{font-size:30px!important}.auth-languages{gap:8px}.auth-login-options{flex-wrap:wrap}.auth-benefits ul{grid-template-columns:1fr}.auth-benefits li{font-size:14px}}
@media(prefers-reduced-motion:reduce){.auth-shell *{animation:none!important;transition:none!important}}

/* Keep shared theme controls from repainting the selected authentication design. */
#sv-auth .auth-field input{background:var(--au-field)!important;color:var(--au-fg)!important;border-color:var(--au-line)!important}
#sv-auth input::placeholder{color:var(--au-muted)!important}
#sv-auth .auth-button{background:var(--au-button)!important;color:var(--au-button-fg)!important;border-color:var(--au-accent)!important}
#sv-auth .auth-outline{background:transparent!important;color:var(--au-accent)!important}
#sv-auth .auth-secondary{background:transparent!important;color:var(--au-accent)!important}
#sv-auth .auth-mark svg{width:31px;height:38px;stroke:var(--au-gold);filter:drop-shadow(-2px 0 0 #31b3ff)}
body:is([data-page="login"],[data-page="register"])>footer{display:none!important}

/* Roomier authentication on desktop; compact screens retain their existing layout. */
@media(min-width:1024px){
 #sv-auth{width:min(100%,960px);font-size:18px}
 #sv-auth .auth-header{height:96px;padding:24px 48px}
 #sv-auth .auth-brand{font-size:32px}
 #sv-auth .auth-languages{font-size:15px;gap:20px}
 #sv-auth .auth-hero{height:340px}
 #sv-auth .auth-content{padding:0 72px 44px;margin-top:-18px}
 #sv-auth h1{font-size:50px!important}
 #sv-auth h2{font-size:32px!important}
 #sv-auth .auth-subtitle{font-size:23px;line-height:1.45}
 #sv-auth .auth-form{gap:20px!important}
 #sv-auth .auth-field{font-size:16px;gap:9px}
 #sv-auth .auth-field input{height:64px!important;font-size:18px!important}
 #sv-auth .auth-eye{top:9px}
 #sv-auth .auth-button{min-height:64px;font-size:24px!important}
 #sv-auth .auth-secondary{min-height:54px;font-size:17px}
 #sv-auth .auth-check,#sv-auth .auth-login-options,#sv-auth .auth-switch{font-size:16px}
 #sv-auth .auth-terms{font-size:15px}
 #sv-auth .auth-strength,#sv-auth .auth-note{font-size:14px}
 #sv-auth .auth-steps small{font-size:15px}
 #sv-auth .auth-benefits li{font-size:17px;gap:16px}
 #sv-auth .auth-benefits ul{gap:26px 30px}
 #sv-auth .auth-benefit-icon{width:54px;height:54px}
 #sv-auth .auth-back{font-size:15px}
}
