/* Exact MIZAN original auth visual styling, scoped to auth screen. */
#mzn-auth-screen {color-scheme:dark;--bg:#0a1020;--card:#182235;--field:#293345;--gold:#cba557;--text:#f3f5fb;--muted:#9ba6bb}
#mzn-auth-screen, #mzn-auth-screen * {box-sizing:border-box}
#mzn-auth-screen {min-height:100%}
#mzn-auth-screen {margin:0;min-height:100vh;font-family:Inter,system-ui,Arial,sans-serif;color:var(--text);background:radial-gradient(ellipse at 52% 43%,#14213c 0%,#0c1528 48%,#090f1d 100%)}
#mzn-auth-screen .site-head {position:absolute;top:0;left:0;right:0;padding:25px clamp(20px,3vw,52px);display:flex;justify-content:space-between;align-items:center}
#mzn-auth-screen .site-head a {color:#d6ddeb;text-decoration:none;font-size:13px}
#mzn-auth-screen .wordmark {font-weight:700;letter-spacing:.18em}
#mzn-auth-screen .site-head a:hover, #mzn-auth-screen .switch a:hover {text-decoration:underline}
#mzn-auth-screen .auth-page {min-height:100vh;display:flex;align-items:center;justify-content:center;padding:92px 16px 44px}
#mzn-auth-screen .auth-card {width:100%;max-width:390px;padding:30px 30px 26px;border-radius:19px;background:linear-gradient(155deg,rgba(28,39,59,.95),rgba(24,33,50,.96));border:1px solid rgba(221,231,255,.075);box-shadow:0 30px 75px rgba(0,0,0,.4);text-align:center;animation:appear .55s ease both}
#mzn-auth-screen .brand-emblem {position:relative;display:grid;place-items:center;width:104px;height:104px;margin:0 auto 8px;isolation:isolate}
#mzn-auth-screen .brand-emblem img {display:block;width:76px;height:76px;object-fit:contain;border-radius:50%;position:relative;z-index:2}
#mzn-auth-screen .ai-ring {position:absolute;inset:6px;border:1px solid rgba(218,175,89,.5);border-radius:50%;animation:breathe 5s ease-in-out infinite}
#mzn-auth-screen .ai-ring:after {content:"";position:absolute;width:5px;height:5px;border-radius:50%;background:#f5d38a;box-shadow:0 0 12px #f5c970;top:11%;left:14%;animation:orbit 8s linear infinite;transform-origin:32px 32px}
#mzn-auth-screen .ai-ring.secondary {inset:0;border-color:rgba(97,144,212,.19);animation-delay:-2.5s}
#mzn-auth-screen h1 {font-weight:500;font-size:22px;margin:7px 0 24px;letter-spacing:-.02em}
#mzn-auth-screen .auth-form {display:grid;gap:12px}
#mzn-auth-screen .field {position:relative;display:flex;align-items:center}
#mzn-auth-screen .field svg {position:absolute;left:14px;width:17px;height:17px;stroke:#aeb9ca;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#mzn-auth-screen .field input {width:100%;height:47px;padding:0 44px 0 43px;border:1px solid transparent;border-radius:9px;background:var(--field);color:var(--text);font:inherit;font-size:13px;outline:none}
#mzn-auth-screen .field input::placeholder {color:#b1bac9;opacity:1}
#mzn-auth-screen .field input:focus {border-color:rgba(224,186,100,.85);box-shadow:0 0 0 3px rgba(224,186,100,.10)}
#mzn-auth-screen .reveal {position:absolute;right:6px;width:35px;height:35px;display:grid;place-items:center;border:0;border-radius:6px;background:transparent;color:#aeb9ca;cursor:pointer}
#mzn-auth-screen .reveal svg {position:static;width:17px;height:17px;stroke:currentColor;pointer-events:none}
#mzn-auth-screen .primary {height:47px;margin-top:7px;border:0;border-radius:9px;background:linear-gradient(115deg,#e1be6b,#b38d43);color:#101523;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
#mzn-auth-screen .primary:hover {filter:brightness(1.06)}
#mzn-auth-screen .primary:focus-visible, #mzn-auth-screen .reveal:focus-visible, #mzn-auth-screen .site-head a:focus-visible, #mzn-auth-screen .switch a:focus-visible {outline:2px solid var(--gold);outline-offset:3px}
#mzn-auth-screen .switch {margin:20px 0 0;color:var(--muted);font-size:12px}
#mzn-auth-screen .switch a {color:#e4bd70;text-decoration:none;font-weight:600}
#mzn-auth-screen .feedback {min-height:1.2em;margin:12px 0 0;font-size:12px;color:#eacb8d}
@keyframes breathe{0%,100%{opacity:.4;transform:scale(.96)}50%{opacity:.95;transform:scale(1.05)}}
@keyframes orbit{to{transform:rotate(360deg)}}
@keyframes appear{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@media (max-width:480px) {
#mzn-auth-screen .site-head {padding:18px 22px}
#mzn-auth-screen .auth-card {padding:27px 22px}
#mzn-auth-screen .auth-page {padding-top:85px}
}
@media (prefers-reduced-motion:reduce) {
#mzn-auth-screen .ai-ring, #mzn-auth-screen .ai-ring:after, #mzn-auth-screen .auth-card {animation:none}
}

/* Container and mobile-specific integration. No global body/h1 overrides. */
#mzn-auth-screen{position:fixed;inset:0;z-index:300;overflow:auto;overscroll-behavior:contain;background:radial-gradient(ellipse at 52% 43%,#14213c 0%,#0c1528 48%,#090f1d 100%);color:#f3f5fb;font-family:Inter,system-ui,Arial,sans-serif;color-scheme:dark}
#mzn-auth-screen.hidden{display:none}
#mzn-auth-screen .auth-page{min-height:100vh;min-height:100dvh;padding-bottom:max(44px,env(safe-area-inset-bottom))}
#mzn-auth-screen .auth-card{position:relative}
#mzn-auth-screen .auth-form h1{grid-column:1/-1}
#mzn-auth-screen .auth-form .field{width:100%}
#mzn-auth-screen .auth-form button.primary{width:100%}
#mzn-auth-screen .auth-form.hidden{display:none!important}
#mzn-auth-screen .switch.hidden{display:none!important}
#mzn-auth-screen .mzn-auth-header-actions{display:flex;align-items:center;gap:16px}
#mzn-auth-screen .mzn-auth-header-button{color:#d6ddeb;border:0;background:transparent;cursor:pointer;font:inherit;font-size:13px;line-height:1.4}
#mzn-auth-screen .mzn-auth-header-button:focus-visible,#mzn-auth-screen .mzn-auth-text-link:focus-visible{outline:2px solid #cba557;outline-offset:3px}
#mzn-auth-screen .mzn-auth-text-link{background:none;border:0;cursor:pointer;padding:0;font:inherit;font-weight:600;color:#e4bd70;text-decoration:none}
#mzn-auth-screen .mzn-auth-text-link:hover{text-decoration:underline}
#mzn-auth-screen .feedback{white-space:pre-wrap;overflow-wrap:anywhere}
#mzn-auth-screen .field .reveal svg{left:auto}
#mzn-auth-screen .auth-form input{direction:ltr;text-align:start;font-size:16px}
#mzn-auth-screen .auth-form button[disabled]{opacity:.65;cursor:progress}
#mzn-auth-screen .site-head{z-index:5}
#mzn-auth-screen .auth-card{z-index:1}
#mzn-auth-screen .auth-form{margin:0}
#mzn-auth-screen .auth-form .field{margin:0}
#mzn-auth-screen .auth-form .field .reveal{color:#aeb9ca}
#mzn-auth-screen .auth-form .field .reveal[aria-pressed="true"]{color:#e1be6b}
@media(max-width:400px){#mzn-auth-screen .site-head{padding-inline:12px}#mzn-auth-screen .mzn-auth-header-actions{gap:9px}#mzn-auth-screen .mzn-auth-header-button{font-size:12px}}
