:root {
  color-scheme: light;
}
html {
  font-size: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--app-font-family);
  font-size: 14px;
  background: #f6f7fb;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.04);
  width: 100%;
  max-width: 420px;
  padding: 28px 28px 20px;
}
/* h1 styling: /app_typography.css (h1.app-h1). Tight gap before .auth-sub. */
.auth-card h1.app-h1 {
  margin-bottom: 0;
}
.auth-sub {
  margin: 4px 0 20px;
  color: #6b7280;
  font-size: 14px;
}
.auth-card form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-card label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}
.auth-card input {
  font: inherit;
  /* Labels are semibold; inputs must not inherit that weight while typing. */
  font-weight: 400;
  padding: 9px 11px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  transition: border-color .15s, box-shadow .15s;
}
.auth-card input:focus {
  outline: 0;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.auth-card button.primary {
  cursor: pointer;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
}
.auth-card button.primary:hover { background: #1d4ed8; }
.auth-card button.primary:disabled { opacity: .6; cursor: default; }
.auth-error {
  color: #b91c1c;
  font-size: 14px;
  min-height: 18px;
}
.auth-banner {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 14px;
}
.auth-banner-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.auth-banner-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-top: 16px;
}
.auth-links a {
  color: #2563eb;
  text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }
.auth-hint {
  margin-top: 14px;
  padding: 8px 10px;
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
  text-align: center;
}
.auth-hint code {
  font-family: inherit;
  background: #e5e7eb;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 14px;
  color: #111827;
}
