body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 20% 20%, rgba(70,178,255,0.12), transparent 32%),
              radial-gradient(circle at 80% 10%, rgba(108,99,255,0.14), transparent 28%),
              radial-gradient(circle at 50% 85%, rgba(80,130,255,0.1), transparent 32%),
              var(--bg);
}
.card {
  width: min(440px, 94%);
  background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 28px 26px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.02);
  text-align: center;
  backdrop-filter: blur(8px);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
h1 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.form-row { display: flex; flex-direction: column; gap: 6px; text-align: left; }
label { color: #9ee2ff; font-size: 13px; }
input {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(13,22,43,0.8);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(70,178,255,0.2);
  outline: none;
}
button {
  margin-top: 12px;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(120deg, #46b2ff, #6ad8ff);
  color: #061322;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(70,178,255,0.3);
  letter-spacing: 0.02em;
}
button:hover { transform: translateY(-1px); box-shadow: 0 18px 44px rgba(70,178,255,0.35); }
button:active { transform: translateY(0); }
.admin-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  background: linear-gradient(120deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
}
.admin-link:hover { border-color: var(--accent); }
.foot { margin-top: 14px; color: var(--muted); font-size: 12px; }
.llm-license { margin-top: 6px; color: #95a3c2; font-size: 11px; }
.msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; text-align: left; }
.msg.err {
  background: rgba(252,165,165,0.12);
  border: 1px solid rgba(252,165,165,0.35);
  color: #fca5a5;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.mode-toggle {
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  color: var(--text);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.mode-toggle:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0,0,0,0.25); }
.mode-toggle:active { transform: translateY(0); }
.mode-toggle-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}
.mode-label { color: var(--muted); }

.theme-light body {
  background: #f5f7fb;
}
.theme-light .card {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 44px rgba(15,23,42,0.08);
  color: #0f172a;
  padding: 30px 28px 24px;
}
.theme-light .badge {
  border-color: #e5e7eb;
  background: linear-gradient(120deg, #f7f9fb, #eef2f8);
  color: #374151;
  font-weight: 700;
}
.theme-light p,
.theme-light .admin-link,
.theme-light .foot,
.theme-light .llm-license { color: #4b5563; }
.theme-light input {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111827;
  box-shadow: inset 0 1px 2px rgba(15,23,42,0.08);
}
.theme-light input:focus { box-shadow: 0 0 0 3px rgba(47,122,223,0.2); }
.theme-light button {
  background: linear-gradient(120deg, #2f7adf, #57a1ff);
  color: #fff;
}
.theme-light .mode-toggle {
  background: #f9fafb;
  border-color: #dbe1f1;
  color: #1f2937;
}
@media (max-width: 768px) {
  body { padding: 16px; }
  .card { padding: 22px 18px 18px; border-radius: 18px; }
  h1 { font-size: 19px; }
}

.is-mobile body { padding: 16px; }
.is-mobile .card { width: 100%; padding: 22px 18px 18px; border-radius: 18px; }
.is-mobile h1 { font-size: 19px; }
