:root{--bg:#f4f2fb;--panel:#fff;--ink:#17172a;--muted:#777b8a;--line:#e9eaf0;--accent:#4322df;--good:#168a57;--bad:#b63b46}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}
button,input{font:inherit}a{color:inherit;text-decoration:none}
.auth-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:
  radial-gradient(circle at 12% 8%,rgba(67,34,223,.16),transparent 34%),
  radial-gradient(circle at 88% 92%,rgba(255,138,0,.12),transparent 32%),
  #f4f2fb}
.auth-shell{width:min(920px,100%);display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:0 28px 80px rgba(38,25,105,.14)}
.auth-brand{background:linear-gradient(165deg,#2d14b8 0%,#4322df 48%,#6a42f4 100%);color:#fff;padding:48px 40px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.auth-brand:after{content:'';position:absolute;width:220px;height:220px;border:18px solid rgba(255,255,255,.08);border-radius:50%;right:-70px;bottom:-80px}
.auth-mark{width:56px;height:56px;border-radius:16px;background:#fff;color:#4322df;display:grid;place-items:center;font-weight:900;font-size:28px;box-shadow:0 12px 28px rgba(12,6,60,.25);margin-bottom:18px}
.auth-brand strong{font-size:42px;letter-spacing:.04em;line-height:1}
.auth-brand span{display:block;margin-top:8px;font-size:10px;letter-spacing:.16em;color:#ffb45c;font-weight:800}
.auth-brand p{font-size:14px;line-height:1.65;margin:28px 0 0;color:rgba(255,255,255,.88);max-width:32ch}
.auth-card{padding:42px 40px}
.auth-card h1{margin:0;font-size:26px;letter-spacing:-.4px}
.auth-card>p{font-size:13px;color:var(--muted);margin:8px 0 22px;line-height:1.5}
.auth-card label{display:block;font-size:11px;font-weight:800;margin:14px 0;color:#444}
.auth-card input[type=email],.auth-card input[type=password],.auth-card input[type=text],.auth-card input[type=tel]{width:100%;height:44px;border:1px solid var(--line);border-radius:11px;padding:0 12px;margin-top:7px;background:#fafafd}
.auth-card input:focus{outline:none;border-color:#c8bdf3;box-shadow:0 0 0 4px #eeeaff}
.auth-row{display:flex!important;justify-content:space-between;align-items:center;gap:10px;margin:4px 0 8px}
.auth-row a,.auth-card footer a{color:var(--accent);font-weight:800}
.check{font-weight:600!important;display:flex!important;gap:6px;align-items:center;color:#555}
.auth-card .btn{width:100%;margin-top:10px;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:11px;padding:12px 12px;font-size:14px;font-weight:800;cursor:pointer}
.auth-card .btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}
.auth-bio{display:grid;gap:8px;margin-top:10px}
.auth-bio[hidden]{display:none!important}
.auth-card .btn:disabled{opacity:.65;cursor:wait}
.auth-message{font-size:12px;color:var(--bad);min-height:18px;margin-top:12px;line-height:1.45}
.auth-message.ok{color:var(--good)}
.auth-card footer{font-size:12px;color:var(--muted);text-align:center;margin-top:22px}
.auth-stage[hidden]{display:none!important}
.auth-check{width:56px;height:56px;border-radius:50%;background:#e8f8ef;color:#0f8a5f;display:grid;place-items:center;font-size:26px;font-weight:800;margin-bottom:14px}
.auth-spin{width:48px;height:48px;border:4px solid #eeeaff;border-top-color:#4322df;border-radius:50%;animation:authSpin .7s linear infinite;margin-bottom:16px}
@keyframes authSpin{to{transform:rotate(360deg)}}
@media(max-width:700px){.auth-shell{grid-template-columns:1fr}.auth-brand{padding:28px 24px}.auth-brand p{margin-top:16px}.auth-card{padding:28px 22px}.auth-brand strong{font-size:32px}}
