:root{--bg:#f4f6fb;--card:#ffffff;--text:#0f172a;--muted:#64748b;--border:#dbe1ea;--focus:#3b82f6;--danger:#dc2626}
@media (prefers-color-scheme:dark){:root{--bg:#0b1020;--card:#121a2e;--text:#e2e8f0;--muted:#94a3b8;--border:#26314a;--focus:#60a5fa;--danger:#f87171}}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:"Segoe UI",Heebo,Arial,sans-serif}
.wrap{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:16px}
.brand{display:flex;flex-direction:column;align-items:center;margin-bottom:22px}
.mark{width:58px;height:58px}
h1{margin:10px 0 0;font-size:30px;font-weight:700;letter-spacing:.5px}
.card{width:100%;max-width:360px;background:var(--card);border:1px solid var(--border);border-radius:18px;padding:26px 24px;box-shadow:0 20px 50px -25px rgba(15,23,42,.35)}
label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin:0 0 6px}
input{font:inherit;color:var(--text);background:transparent;border:1px solid var(--border);border-radius:10px;outline:none;transition:border-color .15s,box-shadow .15s}
input:focus{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 25%,transparent)}
#email{width:100%;height:44px;padding:0 12px;margin-bottom:18px;text-align:left}
.otp{display:flex;gap:8px;justify-content:space-between}
.otp input{flex:1 1 0;min-width:0;max-width:48px;height:52px;text-align:center;font-size:22px;font-weight:600;padding:0}
.err{min-height:20px;margin:10px 0 0;font-size:13px;color:var(--danger)}
button{width:100%;height:46px;margin-top:8px;border:0;border-radius:10px;font:inherit;font-weight:700;font-size:15px;color:#fff;cursor:pointer;background:linear-gradient(135deg,#3b82f6,#8b5cf6)}
button:disabled{opacity:.6;cursor:default}
