:root{
  --text:#0f172a;--muted:#64748b;--faint:#94a3b8;--line:rgba(15,23,42,.08);
  --indigo:#6366f1;--violet:#8b5cf6;--cyan:#06b6d4;--emerald:#10b981;
  --glass-bg-2:linear-gradient(140deg,rgba(255,255,255,.92),rgba(255,255,255,.62));
  --glass-brd:rgba(255,255,255,.9);
  --glass-sh:0 18px 44px -22px rgba(30,58,138,.30), inset 0 1px 0 rgba(255,255,255,.95);
}
*,*::before,*::after{box-sizing:border-box}
body{
  margin:0;min-height:100vh;
  font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--text);background:#eef3fb;-webkit-font-smoothing:antialiased;
}
.bg{position:fixed;inset:0;z-index:-1;overflow:hidden;
  background:
    radial-gradient(1100px 720px at 6% -10%, #dbeafe 0%, transparent 58%),
    radial-gradient(950px 680px at 96% -4%, #ede9fe 0%, transparent 55%),
    #eef3fb;
}
.blob{position:absolute;border-radius:50%;filter:blur(72px);opacity:.45}
.b1{width:380px;height:380px;background:#a5b4fc;top:-100px;left:-80px}
.b2{width:320px;height:320px;background:#c4b5fd;bottom:-80px;right:-60px}

.auth-shell{
  min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;gap:0;
}
@media(max-width:960px){.auth-shell{grid-template-columns:1fr}}

.auth-promo{
  display:flex;flex-direction:column;justify-content:center;
  padding:48px clamp(28px,5vw,64px);position:relative;
}
@media(max-width:960px){.auth-promo{display:none}}
.auth-promo h2{
  margin:18px 0 12px;font-size:clamp(28px,3.4vw,40px);font-weight:600;
  letter-spacing:-.035em;line-height:1.15;
}
.auth-promo p{margin:0;color:var(--muted);font-size:15px;line-height:1.65;max-width:420px;font-weight:350}
.auth-points{margin:28px 0 0;padding:0;list-style:none;display:grid;gap:12px}
.auth-points li{
  display:flex;gap:10px;align-items:flex-start;font-size:13.5px;color:#334155;
}
.auth-points i{
  width:22px;height:22px;border-radius:8px;flex:0 0 auto;margin-top:1px;
  background:linear-gradient(135deg,rgba(99,102,241,.16),rgba(139,92,246,.12));
  display:grid;place-items:center;
}
.auth-points i svg{width:12px;height:12px;stroke:#6366f1;stroke-width:2.4;fill:none;stroke-linecap:round;stroke-linejoin:round}

.auth-panel{
  display:grid;place-items:center;padding:32px 20px;
}
.auth-card{
  width:min(440px,100%);border-radius:26px;padding:28px 26px 24px;
  background:var(--glass-bg-2);backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
  border:1px solid var(--glass-brd);box-shadow:var(--glass-sh);
}
.logo{display:flex;align-items:center;gap:9px;font-weight:600;font-size:15.5px;margin-bottom:22px;text-decoration:none;color:inherit}
.logo-mark{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;
  background:linear-gradient(140deg,var(--indigo),var(--violet) 60%,var(--cyan));
  box-shadow:0 6px 16px -6px rgba(99,102,241,.75)}
.logo-mark svg{width:16px;height:16px;stroke:#fff;stroke-width:2.2;fill:none;stroke-linecap:round;stroke-linejoin:round}
.logo-img{width:30px;height:30px;border-radius:10px;object-fit:cover}
h1{margin:0 0 6px;font-size:24px;font-weight:600;letter-spacing:-.03em}
.sub{margin:0 0 22px;font-size:13.5px;color:var(--muted);font-weight:350}
.field{display:flex;flex-direction:column;gap:6px;margin-bottom:12px}
.field label{font-size:12px;font-weight:550;color:var(--muted)}
.field input,.field select{
  height:44px;border-radius:12px;padding:0 14px;
  background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.95);
  font-size:14px;outline:none;font-family:inherit;
}
.field input:focus,.field select:focus{background:#fff;box-shadow:0 0 0 4px rgba(99,102,241,.12)}
.role-pick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.role-pick label{
  display:flex;flex-direction:column;gap:4px;padding:14px 12px;border-radius:14px;cursor:pointer;
  background:rgba(255,255,255,.55);border:1px solid rgba(255,255,255,.9);font-size:12px;color:var(--muted);
  transition:.2s;
}
.role-pick input{display:none}
.role-pick label:has(input:checked),.role-pick label.active{
  background:linear-gradient(135deg,rgba(99,102,241,.14),rgba(139,92,246,.09));
  color:#4338ca;border-color:rgba(99,102,241,.25);font-weight:550;
  box-shadow:0 8px 20px -14px rgba(99,102,241,.7);
}
.role-pick b{font-size:13.5px;color:var(--text);font-weight:600}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;
  padding:13px 18px;border-radius:999px;border:none;cursor:pointer;font-family:inherit;
  font-size:14px;font-weight:500;color:#fff;
  background:linear-gradient(135deg,#6366f1,#8b5cf6 55%,#7c3aed);
  box-shadow:0 14px 30px -12px rgba(99,102,241,.85);margin-top:6px;transition:.2s;
}
.btn:hover{transform:translateY(-1px)}
.links{margin-top:16px;text-align:center;font-size:13px;color:var(--muted)}
.links a{color:#4f46e5;text-decoration:none;font-weight:500}
.flash{padding:10px 12px;border-radius:12px;font-size:13px;margin-bottom:14px}
.flash-error{background:rgba(244,63,94,.12);color:#be123c}
.flash-success{background:rgba(16,185,129,.12);color:#047857}
.flash-info{background:rgba(99,102,241,.12);color:#4338ca}
.demo-box{
  margin-top:14px;padding:10px 12px;border-radius:12px;font-size:11.5px;line-height:1.55;
  background:rgba(15,23,42,.04);color:var(--faint);
}
.field-row{display:flex;justify-content:space-between;align-items:center;margin:-4px 0 10px}
.field-row a{font-size:12.5px;color:#4f46e5;text-decoration:none;font-weight:500}
