.auth-page {
  padding: 48px 0 90px;
  min-height: calc(100vh - var(--header-h));
}

.auth-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.auth-card__title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-card__subtitle {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 15px;
}

.auth-form {
  display: grid;
  gap: 16px;
}

/* .auth-form's "display: grid" ties with the UA [hidden] rule on
   specificity and wins by source order — this restores hidden (same
   gotcha as .form-field, handled the same way below). */
.auth-form[hidden] {
  display: none;
}

.form-field[hidden] {
  display: none;
}

.role-options {
  display: grid;
  gap: 10px;
}

.role-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  cursor: pointer;
}

.role-option:has(input:checked) {
  border-color: var(--purple);
  background: var(--purple-light);
}

.role-option input {
  margin-top: 3px;
}

.role-option__label {
  font-weight: 600;
  font-size: 15px;
}

.form-message {
  margin: 0;
  font-size: 14px;
}

.form-message--error {
  color: #dc2626;
}

.form-message--success {
  color: #059669;
}

.auth-footer-link {
  margin-top: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.auth-footer-link a {
  color: var(--purple-dark);
  font-weight: 600;
}

.dashboard-page {
  padding: 48px 0 90px;
}

.dashboard-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.dashboard-card__title {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 800;
}

.dashboard-card__text {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
}

.dashboard-card__meta {
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.dashboard-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field__label {
  font-size: 14px;
  font-weight: 600;
}

.form-field__input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  color: var(--text);
  background: var(--bg);
}

.form-field__input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-field__error {
  margin: -2px 0 0;
  font-size: 13px;
  color: #dc2626;
}

.form-field__input--error {
  border-color: #dc2626;
}

.form-field__input--error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
