:root {
  --bg: #081225;
  --surface: #0E172F;
  --surface-strong: #12203F;
  --border: rgba(255,255,255,0.08);
  --text: #F8FAFC;
  --text-muted: #CBD5E1;
  --blue: #60A5FA;
  --blue-strong: #2563EB;
  --green: #34D399;
  --radius: 24px;
  --shadow: 0 32px 80px rgba(8, 18, 37, 0.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: 'DM Sans', sans-serif; background: radial-gradient(circle at top, rgba(96,165,250,0.12), transparent 32%), linear-gradient(180deg, #090F1F 0%, #070A16 100%); color: var(--text); }
body { display: grid; place-items: center; padding: 32px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { border: none; cursor: pointer; }

.auth-shell { width: min(100%, 520px); }
.card { background: var(--surface); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-header { padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.card-title { margin: 0; font-family: 'Sora', sans-serif; font-size: 1.75rem; font-weight: 800; letter-spacing: -0.03em; }
.card-pill { padding: 10px 16px; border-radius: 999px; background: rgba(96,165,250,0.12); color: var(--blue); font-weight: 700; }
.card-body { padding: 32px; display: grid; gap: 22px; }
#admin-signin-form { display: grid; gap: 18px; }
#admin-newpw-form { display: none; gap: 18px; }
.form-group { display: grid; gap: 10px; }
.form-group label { color: var(--text-muted); font-size: 0.95rem; font-weight: 700; }
.form-group input { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); color: var(--text); }
.form-group input:focus { outline: none; border-color: rgba(96,165,250,0.5); box-shadow: 0 0 0 4px rgba(96,165,250,0.12); }
.actions { display: grid; gap: 14px; }
.btn-primary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; border-radius: 16px; background: var(--blue); color: white; font-weight: 700; transition: transform 0.2s ease, background 0.2s ease; }
.btn-primary:hover { transform: translateY(-1px); background: var(--blue-strong); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 14px 20px; border-radius: 16px; background: transparent; border: 1px solid rgba(255,255,255,0.12); color: var(--text); }
.help-text { color: var(--text-muted); font-size: 0.95rem; }
.footer-note { padding: 20px 32px 32px; color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 560px) {
  body { padding: 18px; }
  .card-header, .card-body, .footer-note { padding-left: 24px; padding-right: 24px; }
}

/* TOAST */
#toast-area { padding: 0 32px; }
.admin-toast { padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 8px; }
.admin-toast.error { background: rgba(239,68,68,0.15); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.25); }
.admin-toast.info { background: rgba(96,165,250,0.12); color: #60A5FA; border: 1px solid rgba(96,165,250,0.2); }
.admin-toast.success { background: rgba(16,185,129,0.12); color: #34D399; border: 1px solid rgba(16,185,129,0.2); }
