:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --gray-50: #f8fafc;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --danger: #dc2626;
  --radius: 12px;
  --font: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--gray-50);
}
.auth-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(100%, 420px);
  padding: 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: white;
  font-weight: 700;
}
.auth-brand h1 { margin: 0; font-size: 20px; }
.auth-brand p, .reset-heading p { margin: 3px 0 0; color: var(--gray-500); font-size: 13px; }
.reset-heading { margin-bottom: 2px; }
.reset-heading h2 { margin: 0; font-size: 18px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-form label { display: flex; flex-direction: column; gap: 7px; }
.auth-form label span { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  outline: none;
  font: inherit;
}
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.auth-form input[readonly] { background: var(--gray-50); color: var(--gray-500); }
.btn-primary {
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.55; cursor: wait; }
.btn-link {
  border: 0;
  background: transparent;
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.form-error { margin: -4px 0 0; color: var(--danger); font-size: 13px; }
