:root{
  --bg:#07101f;
  --panel:rgba(12,24,43,.88);
  --panel-2:rgba(16,31,54,.92);
  --line:rgba(151,180,220,.18);
  --text:#eef5ff;
  --muted:#9cafc9;
  --accent:#62d9ff;
  --accent-2:#8c7cff;
  --danger:#ff7187;
  --shadow:0 28px 80px rgba(0,0,0,.42);
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#152238;background:#f4f7fb}
a{color:inherit}
button,input,select{font:inherit}
.auth-page{min-height:100vh;display:grid;place-items:center;overflow:auto;background:
 radial-gradient(circle at 12% 18%,rgba(98,217,255,.13),transparent 28rem),
 radial-gradient(circle at 86% 82%,rgba(140,124,255,.16),transparent 30rem),
 linear-gradient(135deg,#050b16,#0a172a 55%,#101a35);color:var(--text);position:relative}
.nebula-bg{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.nebula-bg:before{content:"";position:absolute;inset:-20%;background:
 linear-gradient(115deg,transparent 35%,rgba(98,217,255,.055) 35.2%,transparent 35.5%),
 linear-gradient(70deg,transparent 52%,rgba(140,124,255,.055) 52.2%,transparent 52.5%);transform:rotate(-7deg)}
.nebula-bg i{position:absolute;border:1px solid rgba(135,220,255,.13);border-radius:50%;width:28rem;height:28rem}
.nebula-bg i:nth-child(1){left:-13rem;top:-10rem}
.nebula-bg i:nth-child(2){right:-15rem;bottom:-13rem;width:34rem;height:34rem;border-color:rgba(159,132,255,.14)}
.nebula-bg i:nth-child(3){left:48%;top:8%;width:9rem;height:9rem;box-shadow:0 0 80px rgba(98,217,255,.08)}
.auth-shell{width:min(1050px,92vw);display:grid;grid-template-columns:.9fr 1.1fr;gap:28px;align-items:stretch;position:relative;z-index:1}
.brand-panel,.auth-card{border:1px solid var(--line);box-shadow:var(--shadow);backdrop-filter:blur(18px)}
.brand-panel{padding:52px 44px;border-radius:28px;background:linear-gradient(150deg,rgba(17,37,64,.78),rgba(7,18,33,.62));display:flex;flex-direction:column;justify-content:center}
.brand-mark{width:52px;height:52px;border-radius:16px;display:grid;place-items:center;font-weight:900;font-size:1.35rem;background:linear-gradient(135deg,var(--accent),var(--accent-2));color:#06101e;box-shadow:0 10px 30px rgba(98,217,255,.18);margin-bottom:28px}
.eyebrow{font-size:.72rem;letter-spacing:.18em;font-weight:800;color:var(--accent);margin:0 0 10px}
.brand-panel h1{font-size:clamp(2.7rem,6vw,4.7rem);line-height:.95;margin:0 0 20px;letter-spacing:-.055em}
.brand-panel h1 span{color:var(--accent)}
.brand-copy{color:var(--muted);line-height:1.7;max-width:38ch;margin:0 0 26px}
.status-pill{display:inline-flex;align-items:center;gap:9px;width:max-content;padding:9px 13px;border:1px solid rgba(98,217,255,.18);border-radius:999px;color:#cfe9ff;background:rgba(98,217,255,.055);font-size:.78rem}
.status-pill span{width:7px;height:7px;border-radius:50%;background:#64e5a2;box-shadow:0 0 12px #64e5a2}
.auth-card{border-radius:28px;background:var(--panel);padding:42px;max-width:540px;width:100%;justify-self:end;min-width:0}.auth-card--register{max-height:calc(100vh - 32px);overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-ms-overflow-style:none}.auth-card--register::-webkit-scrollbar{width:0;height:0;display:none}
.card-head h2{font-size:2rem;letter-spacing:-.03em;margin:0 0 8px}
.card-head>p:last-child{color:var(--muted);margin:0 0 28px;line-height:1.55}
.auth-card label{display:block;font-size:.8rem;font-weight:750;color:#cbd8e9;margin:18px 0 8px}
.auth-card input,.auth-card select{width:100%;border:1px solid var(--line);border-radius:13px;padding:13px 14px;background:rgba(4,13,25,.66);color:var(--text);outline:none;transition:border-color .2s,box-shadow .2s,transform .2s}
.auth-card input::placeholder{color:#63758e}
.auth-card input:focus,.auth-card select:focus{border-color:rgba(98,217,255,.75);box-shadow:0 0 0 4px rgba(98,217,255,.09)}
.btn-primary{width:100%;margin-top:24px;border:0;border-radius:13px;padding:14px 18px;font-weight:800;color:#06101d;background:linear-gradient(100deg,var(--accent),#8de7ff 45%,#a99bff);cursor:pointer;box-shadow:0 14px 30px rgba(98,217,255,.12);transition:transform .2s,filter .2s}
.btn-primary:hover{transform:translateY(-1px);filter:brightness(1.04)}
.btn-primary b{float:right;font-size:1.1rem}
.alert-error{border:1px solid rgba(255,113,135,.3);background:rgba(255,113,135,.09);color:#ffc4ce;border-radius:12px;padding:12px 14px;font-size:.88rem;line-height:1.45}
.auth-links{display:flex;justify-content:space-between;gap:18px;margin-top:20px;font-size:.86rem}
.auth-links a{color:#a9c9e8;text-decoration:none}
.auth-links a:hover{color:var(--accent)}
.security-note{margin:24px 0 0;padding-top:18px;border-top:1px solid var(--line);color:#72859e;font-size:.72rem;line-height:1.55}
.container{color:#152238}
.container h1{letter-spacing:-.03em}
.container select,.container input{padding:12px;border:1px solid #ccd7e5;border-radius:10px;background:white}
.container button{padding:12px 18px;border:0;border-radius:10px;background:#152c4b;color:white;font-weight:700;cursor:pointer}
.container a{color:#294f7e}
@media(max-width:820px){.auth-page{place-items:start center;padding:16px 0}.auth-shell{grid-template-columns:1fr;width:min(680px,94vw);margin:auto}.brand-panel{display:none}.auth-card{justify-self:center;padding:32px 24px;max-width:none}.auth-card--register{max-height:calc(100vh - 32px)}}
@media(max-width:480px){.auth-page{padding:10px 0}.auth-shell{width:96vw}.auth-card{border-radius:20px;padding:24px 18px}.auth-card--register{max-height:calc(100vh - 20px)}.card-head h2{font-size:1.65rem}.auth-links{flex-direction:column;gap:10px}.auth-card label{margin-top:15px}.btn-primary{margin-top:20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}