:root{
  --bg:#0f172a;
  --panel:rgba(17,24,39,.85);
  --border:#1f2937;
  --text:#e5e7eb;
  --muted:#94a3b8;
  --primary:#2563eb;
  --primary2:#1d4ed8;
  --danger:#ef4444;
  --radius:18px;
}

*{box-sizing:border-box;}

body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 20% 20%, #1e293b 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, #1d4ed8 0%, transparent 40%),
    var(--bg);
  color:var(--text);
  display:flex;
  justify-content:center;
  align-items:center;
  height:100vh;
  animation:fadeIn .6s ease;
}

@keyframes fadeIn{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:none;}
}

.login-card{
  width:420px;
  padding:48px 42px;
  border-radius:var(--radius);
  background:var(--panel);
  border:1px solid var(--border);
  backdrop-filter:blur(18px);
  box-shadow:0 30px 80px rgba(0,0,0,.6);
}

.login-title{
  font-size:24px;
  font-weight:900;
  letter-spacing:.3px;
}

.login-sub{
  font-size:13px;
  color:var(--muted);
  margin-top:6px;
  margin-bottom:34px;
}

.field{
  margin-bottom:22px;
}

label{
  display:block;
  font-size:12px;
  font-weight:700;
  color:var(--muted);
  margin-bottom:6px;
}

input{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#111827;
  color:var(--text);
  font-size:14px;
  transition:.2s ease;
}

input:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(37,99,235,.25);
}

button{
  width:100%;
  padding:14px;
  border-radius:14px;
  border:none;
  font-weight:800;
  font-size:14px;
  background:var(--primary);
  color:white;
  cursor:pointer;
  transition:.2s ease;
  position:relative;
  overflow:hidden;
}

button:hover{
  background:var(--primary2);
}

button:active{
  transform:translateY(1px);
}

button.loading{
  pointer-events:none;
  opacity:.85;
}

.spinner{
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,.3);
  border-top:2px solid white;
  border-radius:50%;
  animation:spin .8s linear infinite;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  display:none;
}

button.loading .spinner{
  display:block;
}

button.loading span{
  visibility:hidden;
}

@keyframes spin{
  to{transform:translate(-50%, -50%) rotate(360deg);}
}

.error{
  background:rgba(239,68,68,.08);
  border:1px solid rgba(239,68,68,.35);
  color:var(--danger);
  padding:12px 14px;
  border-radius:14px;
  font-size:13px;
  margin-bottom:22px;
}

.footer{
  text-align:center;
  margin-top:30px;
  font-size:12px;
  color:var(--muted);
}
