/* layouts/auth.css — Authentication pages: centered card on a soft gradient. */

.auth-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-4);
  background: linear-gradient(
    135deg,
    var(--surface-base) 0%,
    var(--surface-sunken) 50%,
    var(--surface-base) 100%
  );
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background-color: var(--surface-overlay);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-10) var(--space-10) var(--space-12);
  border: 1px solid var(--border-subtle);
  animation: fade-up var(--duration-normal) var(--ease-out);
}

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

/* ------------------------------------------------------------------
   Branded icon — accent-tinted circle housing a Material Symbol.
   Fallback when the coach has no desktop_logo attached.
   ------------------------------------------------------------------ */
.auth-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background-color: var(--accent-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.auth-card__icon .material-symbols-rounded {
  color: var(--accent-primary);
  font-size: 28px;
  font-variation-settings: 'wght' 400, 'opsz' 28;
}

/* ------------------------------------------------------------------
   Coach desktop logo — shown when Current.host_coach has one attached.
   Replaces the .auth-card__icon fallback.
   ------------------------------------------------------------------ */
.auth-card__logo {
  display: flex;
  justify-content: center;
}

.auth-card__logo img {
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

/* ------------------------------------------------------------------
   Heading group inside the card.
   ------------------------------------------------------------------ */
.auth-heading {
  text-align: center;
}

.auth-heading__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-primary);
  line-height: var(--leading-tight);
}

.auth-heading__subtitle {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

/* ------------------------------------------------------------------
   Form — vertical stack of form-groups + submit button.
   ------------------------------------------------------------------ */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Neutralize the default .form-group margin-bottom inside .auth-form so
   the flex gap is the sole source of vertical spacing. */
.auth-form .form-group {
  margin-bottom: 0;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  gap: var(--space-2);
}

.auth-submit .material-symbols-rounded {
  font-size: 18px;
  font-variation-settings: 'wght' 500, 'opsz' 20;
}

/* ------------------------------------------------------------------
   Secondary action — e.g. "Use a different email or phone" link in
   the member_exists success state. Outline-style button, full width.
   ------------------------------------------------------------------ */
.auth-secondary {
  width: 100%;
  justify-content: center;
}
