/* =============================================================
   Automania — login.css
   Shared auth layout: centred card, form fields, password
   show/hide toggle, divider and prototype note. Reused by
   register.html (which also loads register.css).
   ============================================================= */

.auth-page {
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 6vw, 80px) var(--space-md);
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 4vw, 44px);
}
.auth-card--wide { max-width: 540px; }

.auth-card__logo {
  display: block;
  height: 62px;
  width: auto;
  margin: 0 auto var(--space-lg);
}
.auth-card__head {
  text-align: center;
  margin-block-end: var(--space-xl);
}
.auth-card__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
}
.auth-card__title .accent { color: var(--color-primary); }
.auth-card__subtitle {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  margin-block-start: var(--space-xs);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.auth-form__forgot {
  align-self: flex-end;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
}
.auth-form__forgot:hover { text-decoration: underline; }

.auth-form .btn-block { margin-block-start: var(--space-xs); }

/* ---- Divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-block: var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* ---- Checkbox rows (terms, same-as-mobile) ---- */
.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-snug);
}
.auth-checkbox input {
  width: 18px; height: 18px;
  flex: 0 0 auto;
  margin-block-start: 2px;
  accent-color: var(--color-primary);
}
.auth-checkbox a {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
}
.auth-checkbox a:hover { text-decoration: underline; }

/* ---- Prototype note ---- */
.auth-note {
  margin-block-start: var(--space-lg);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-faint);
}
