*{box-sizing:border-box}
body{margin:0;min-height:100vh;font-family:Segoe UI,system-ui,sans-serif;background:#020617;color:#e2e8f0}
.bg{position:fixed;inset:0;background:radial-gradient(ellipse at top,#1e3a8a55,transparent 55%),linear-gradient(160deg,#020617,#0f172a);z-index:0}
.wrap{position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1.5rem}
.card{width:100%;max-width:420px;background:#0b1220;border:1px solid #1e293b;border-radius:20px;padding:1.75rem;box-shadow:0 25px 50px rgba(0,0,0,.45)}
h1{margin:0 0 .35rem;font-size:1.45rem}
.sub{color:#94a3b8;margin:0 0 1.25rem;font-size:.92rem;line-height:1.5}
label{display:block;font-size:.82rem;color:#94a3b8;margin:0 0 .35rem}
input{width:100%;padding:.75rem .85rem;border-radius:10px;border:1px solid #334155;background:#020617;color:#e2e8f0;margin-bottom:.85rem;font:inherit}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;width:100%;padding:.8rem 1rem;border:0;border-radius:10px;font-weight:600;cursor:pointer;font:inherit;text-decoration:none;margin-top:.25rem}
.btn-primary{background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff}
.btn-ghost{background:#1e293b;color:#e2e8f0;border:1px solid #334155}
.alert{padding:.75rem .9rem;border-radius:10px;margin-bottom:1rem;font-size:.9rem}
.err{background:#450a0a;color:#fecaca;border:1px solid #7f1d1d}
.ok{background:#052e16;color:#bbf7d0;border:1px solid #14532d}
.divider{text-align:center;color:#64748b;margin:1rem 0;font-size:.85rem}
.foot{margin-top:1rem;color:#64748b;font-size:.8rem}
.foot a{color:#38bdf8;text-decoration:none}
.spin{width:40px;height:40px;border:3px solid #334155;border-top-color:#38bdf8;border-radius:50%;animation:s .8s linear infinite;margin:0 auto 1rem}
@keyframes s{to{transform:rotate(360deg)}}
.brand{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:#60a5fa;margin-bottom:.5rem}