:root{
  --bg: #0b1220;
  --bg2:#0f172a;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --shadow: 0 18px 60px rgba(15,23,42,.22);
  --primary:#2563eb;
}

:root[data-theme="dark"]{
  --card:#0f172a;
  --text:#e5e7eb;
  --muted:#9aa4b2;
  --line:#22304a;
  --shadow: 0 18px 70px rgba(0,0,0,.55);
}

html, body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
}

.auth-bg{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px 14px;
  background:
    radial-gradient(1100px 600px at 15% 20%, rgba(37,99,235,.25), transparent 60%),
    radial-gradient(900px 500px at 80% 70%, rgba(34,197,94,.16), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

.auth-wrap{width:min(460px, 100%);}

.auth-card{
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:18px 18px 16px;
  backdrop-filter: blur(10px);
}

.auth-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}

.auth-brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.brand-mark{
  width:40px;height:40px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  color:white;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  flex:0 0 auto;
}

.brand-title{font-weight:800; letter-spacing:.01em; line-height:1.1}
.brand-sub{color:var(--muted); font-size:.86rem; line-height:1.2}

.icon-btn{
  border:1px solid var(--line);
  background:transparent;
  color:inherit;
  width:44px;height:44px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition: transform .12s ease, background .12s ease;
}
.icon-btn:hover{background: rgba(148,163,184,.14)}
.icon-btn:active{transform: scale(.98)}

.auth-title{
  font-size:1.45rem;
  font-weight:800;
  margin:10px 0 2px;
}
.auth-sub{
  margin:0 0 14px;
  color:var(--muted);
}

.auth-form .form-label{font-weight:650;}
.input-group-text{
  border-radius:14px 0 0 14px;
  border:1px solid var(--line);
  background:transparent;
  color:inherit;
}
.form-control{
  border:1px solid var(--line);
  color:inherit;
  background:transparent;
}
.form-control:focus{
  box-shadow:none;
  border-color: color-mix(in srgb, var(--primary) 55%, var(--line));
}
.input-group .btn{
  border:1px solid var(--line);
  border-left:none;
  border-radius:0 14px 14px 0;
}
.btn-primary{
  border-radius:14px;
  box-shadow: 0 14px 28px rgba(37,99,235,.20);
}
:root[data-theme="dark"] .btn-primary{
  box-shadow: 0 14px 28px rgba(37,99,235,.14);
}

.auth-link{color:var(--muted)}
.auth-link:hover{color:var(--primary)}

.auth-footer{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:14px;
}
.auth-footer .sep{color: var(--muted); opacity:.8}

@media (max-width: 420px){
  .auth-card{padding:16px}
}
