/* Login, registration, pending and access-denied pages: one centred card
   on the page background, with the Mittivoy heart above the title. */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: var(--space-10) var(--space-4);
}
.auth-card {
  width: min(420px, 100%);
  margin: 0;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.auth-mark {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: var(--space-5);
  border-radius: 50%;
  background: var(--primary-tint);
}
.auth-mark img { width: 28px; height: 28px; }
.auth-card h1 { margin: 0 0 var(--space-2); font-size: var(--text-xl); letter-spacing: var(--tracking-tight); }
.auth-card .hint { margin: 0 0 var(--space-6); font-size: var(--text-base); }
.auth-form { display: flex; flex-direction: column; gap: var(--space-4); }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-2); }
.auth-form input, .auth-form select { width: 100%; padding: 10px 12px; }
.auth-form button[type="submit"] { width: 100%; justify-content: center; padding: 11px 16px; margin-top: var(--space-2); }
.auth-form .field-hint { font-weight: var(--weight-regular); color: var(--muted); font-size: var(--text-xs); }
.auth-error {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--danger-tint);
  color: var(--danger);
  font-size: var(--text-sm);
  line-height: 1.45;
}
.auth-error.show { display: block; }
.auth-switch { margin: var(--space-6) 0 0; text-align: center; color: var(--muted); font-size: var(--text-sm); }
.auth-switch a { color: var(--primary-deep); font-weight: var(--weight-semibold); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.auth-card .auth-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.auth-card .auth-actions a { text-decoration: none; }
@media (max-width: 560px) {
  .auth-page { padding: var(--space-6) var(--space-4); align-items: start; }
  .auth-card { padding: var(--space-6) var(--space-5); }
}
