/* ──────────────────────────────────────────────────────────────
   Velour — Auth pages (login, role select, PIN entry)
   ────────────────────────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2.5rem 1.25rem;
  background:
    radial-gradient(80% 60% at 50% -20%, var(--primary-bg), transparent 60%),
    var(--bg);
}

.auth-brand { text-align: center; margin-bottom: 2.5rem; }
.auth-brand h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  line-height: 1;
  color: var(--primary);
}
.auth-brand p {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 0.625rem;
  text-transform: uppercase;
}

/* ── Role cards ──────────────────────────────────────────────── */
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 720px; width: 100%;
}
.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem 1.25rem 1.5rem;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  text-decoration: none; color: inherit; display: block;
  box-shadow: var(--shadow-sm);
}
.role-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.role-card .role-glyph {
  font-size: 1.875rem;
  margin-bottom: 1rem;
  color: var(--primary);
  opacity: 0.9;
}
.role-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.4375rem;
  color: var(--text);
}
.role-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.55;
}
.role-tag {
  display: inline-block; margin-top: 1rem;
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6875rem; border-radius: var(--radius-pill);
  text-transform: uppercase;
  border: 1px solid transparent;
}

/* ── Auth card ───────────────────────────────────────────────── */
.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.25rem 2.5rem;
  width: 100%; max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.auth-card h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.4375rem;
  color: var(--text);
}
.auth-card .auth-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.auth-who {
  font-size: 0.875rem; font-weight: 500;
  padding: 0.5rem 0.875rem;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary-border);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.pin-input {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 0.875rem;
  color: var(--text);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: 0.5em;
  text-align: center; width: 100%; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 0.5rem;
}
.pin-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }

.email-input {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-input);
  padding: 0.6875rem 0.875rem;
  color: var(--text); font-size: 0.9375rem;
  text-align: left; width: 100%; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  margin-bottom: 0.5rem;
}
.email-input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-ring); }

.auth-error {
  font-size: 0.8125rem; color: var(--danger);
  min-height: 1rem; margin-bottom: 0.5rem;
  font-weight: 500;
}

.auth-back {
  display: inline-block; margin-top: 1rem;
  font-size: 0.8125rem; color: var(--muted); cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.auth-back:hover { color: var(--primary); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 640px) {
  .role-grid { grid-template-columns: 1fr; max-width: 360px; }
  .auth-card { padding: 1.875rem 1.5rem; }
  .auth-brand h1 { font-size: 2rem; letter-spacing: 0.22em; }
}
