/*
  modules/auth/auth.css — Auth card styles
  ──────────────────────────────────────────────────────────────
  Shared presentation for all auth pages:
    login · register · forgot-password · reset-password · verify-email

  Usage:
    Option A — include from public/style.css:
      @import '../modules/auth/auth.css';

    Option B — link directly from each auth page:
      <link rel="stylesheet" href="/modules/auth/auth.css">

  Depends on CSS custom properties defined in public/style.css:
    --bg  --bg2  --surface
    --text  --text-dim  --text-dimmer
    --border
    --accent
    --bad
    --sans
  ──────────────────────────────────────────────────────────────
*/


/* ── Page centering ────────────────────────────────────────── */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}


/* ── Card container ────────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface, #111);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 2rem 1.75rem;
}

.auth-card h1 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 1.75rem;
  color: var(--text);
}

/* Sub-heading used on verify-email and forgot-password */
.auth-card .auth-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: -1.25rem 0 1.75rem;
  line-height: 1.5;
}


/* ── Form fields ───────────────────────────────────────────── */
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.auth-field label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.auth-field input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
  transition: border-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

.auth-field input:focus {
  border-color: var(--accent);
  outline: none;
}

/* Hint text below password fields */
.auth-hint {
  font-size: 0.7rem;
  color: var(--text-dimmer, var(--text-dim));
  margin-top: 0.15rem;
}


/* ── Status blocks ─────────────────────────────────────────── */

/* Error — red tint */
.auth-error {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.35);
  border-radius: 4px;
  color: var(--bad, #e05560);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.85rem;
  line-height: 1.5;
}

.auth-error a {
  color: inherit;
  text-decoration: underline;
}

/* Notice — accent tint (info / resend confirmation) */
.auth-notice {
  background: rgba(0, 200, 200, 0.08);
  border: 1px solid rgba(0, 200, 200, 0.25);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.85rem;
  line-height: 1.5;
}

.auth-notice a {
  color: inherit;
  text-decoration: underline;
}

/* Success — accent tint (verification confirmed, password changed) */
.auth-success {
  background: rgba(0, 200, 200, 0.08);
  border: 1px solid rgba(0, 200, 200, 0.25);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.88rem;
  padding: 1rem;
  line-height: 1.55;
}

.auth-success strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}


/* ── Submit button ─────────────────────────────────────────── */
.auth-submit {
  background: var(--accent);
  border: none;
  border-radius: 4px;
  color: #000;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 0.5rem;
  padding: 0.65rem 1.5rem;
  transition: opacity 0.15s ease;
  width: 100%;
}

.auth-submit:hover  { opacity: 0.85; }
.auth-submit:active { opacity: 0.7; }


/* ── Footer links ──────────────────────────────────────────── */
.auth-links {
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.auth-links a {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-links a:hover { color: var(--accent); }
