/* ============================================================
   Auth card — components/fans_auth_card.html

   Two columns on desktop (pitch | form), stacked on narrow
   screens. Used both inline on the sign-in page and inside the
   .overlay modal on the logged-out homepage.
   ============================================================ */

.auth-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ---- left: the pitch ---------------------------------------------------- */
.auth-card__pitch {
  padding: var(--space-8);
  background: var(--card-alt);
  border-right: 1px solid var(--line);
}

.auth-card__title {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
}
.auth-card__title span { color: var(--brand); display: block; }

.auth-card__lede {
  margin: var(--space-4) 0 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--ink-soft);
}
.auth-card__lede--tight { margin-top: var(--space-2); }

.auth-card__points {
  margin: var(--space-6) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.auth-card__point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-base);
  line-height: 1.45;
  color: var(--ink-soft);
}
.auth-card__point .icon { color: var(--brand); margin-top: 2px; }
.auth-card__point--powered strong { color: var(--ink); }

/* ---- right: the form ---------------------------------------------------- */
.auth-card__form-col { padding: var(--space-8); }

.auth-card__heading { font-size: var(--text-xl); }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

/* Persistent inline error. Sits directly above the submit button so it
   is impossible to miss — the transient toast it replaced was. */
.auth-error {
  margin: 0;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--heart) 40%, var(--line));
  background: color-mix(in srgb, var(--heart) 9%, var(--card));
  color: var(--heart);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.45;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-5) 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-soft);
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-google { width: 100%; }
.auth-google img { width: 17px; height: 17px; }

.auth-signup {
  margin: var(--space-5) 0 0;
  text-align: center;
  font-size: var(--text-base);
  color: var(--ink-soft);
}

/* ---- standalone page host ----------------------------------------------- */
.auth-standalone {
  width: 100%;
  max-width: 860px;
  margin: clamp(16px, 5vh, 56px) auto;
  overflow: hidden;
}

/* ---- modal host --------------------------------------------------------- */
/* Wider than the default .modal so both columns breathe, and the card
   supplies its own padding. */
.modal--auth { width: 760px; }
.modal--auth .modal__body { padding: 0; display: block; }

@media (max-width: 720px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-card__pitch {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: var(--space-6);
  }
  /* On a phone the bullet list pushes the form below the fold */
  .auth-card__points { display: none; }
  .auth-card__form-col { padding: var(--space-6); }
}
