/* =============================================================================
 * auth-frontend/styles.css
 *
 * Minimal, framework-free styles for the three UX-framed routes
 * (welcome / sign-in / reset-password) plus the landing index page.
 * No third-party CSS. No analytics. No external font hosts. The page
 * loads zero credentials and zero scripts beyond the Firebase JS SDK
 * (CDN) and the per-route module.
 * ============================================================================= */

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  background: #f7f8fa;
  color: #1f2533;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.06);
}

.brand {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
}

p {
  margin: 0 0 12px;
}

p.lead {
  font-size: 15px;
  color: #475569;
}

p.muted {
  color: #6b7280;
  font-size: 14px;
}

.state {
  margin-top: 24px;
}

.state[hidden] {
  display: none;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e2e8f0;
  border-top-color: #4f46e5;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.state-success {
  color: #065f46;
}

.state-error h2 {
  color: #b91c1c;
  font-size: 16px;
  margin: 0 0 8px;
}

.state-error p {
  color: #475569;
  font-size: 14px;
}

/* The reset-form selectors generalised: the welcome page's
 * password-setup form reuses the same look via the `account-form`
 * class. Same minimal-static styling, two semantic names. */

form.reset-form,
form.account-form {
  margin-top: 16px;
}

form.reset-form label,
form.account-form label {
  display: block;
  font-size: 13px;
  color: #374151;
  margin: 12px 0 6px;
}

form.reset-form input[type='password'],
form.account-form input[type='password'] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: #0f172a;
}

form.reset-form input[type='password']:focus,
form.account-form input[type='password']:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

form.reset-form button,
form.account-form button {
  margin-top: 18px;
  padding: 10px 18px;
  background: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

form.reset-form button:hover,
form.account-form button:hover {
  background: #4338ca;
}

form.reset-form button:disabled,
form.account-form button:disabled {
  background: #a5b4fc;
  cursor: not-allowed;
}

.form-message {
  margin-top: 8px;
  font-size: 13px;
  color: #b91c1c;
  min-height: 18px;
}

footer.foot {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}
