/* ============================================================
   LOGIN / AUTH  —  studio theme, centered borderless form
   Scoped under .auth-hero. Tokens from theme/tokens.css.
   Goal: form vertically centered and fully visible without
   scroll; no card border so it blends into the page background.
   ============================================================ */

.auth-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fill the viewport minus chrome so the form sits dead-centre.
     Mobile chrome = navbar h-16 (4rem); desktop adds quicklinks h-8. */
  min-height: calc(100dvh - 4rem);
  padding: 2rem 1.25rem;
}
@media (min-width: 1024px) {
  .auth-hero { min-height: calc(100dvh - 6rem); }
}

/* ---- Centered form (borderless — blends with the page) ---- */
.auth-form-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 23rem;
  min-width: 0;
  font-family: var(--font-body);
}

.auth-card__title {
  font-size: 1.7rem;
  margin-bottom: .4rem;
}
.auth-card__lead {
  color: var(--muted);
  font-size: .95rem;
}

/* ---- Social sign-in row ---- */
.auth-social {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.auth-social:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.auth-social svg { width: 1.25rem; height: 1.25rem; }

/* ---- "or" divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .85rem;
  color: var(--muted);
  font-size: .82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---- Field ---- */
.auth-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  color: var(--ink);
  margin-bottom: .5rem;
}
.auth-input { width: 100%; }

/* Full-width submit */
.lw-btn--block { width: 100%; }

/* ---- Alerts (messages + AJAX error) ---- */
.auth-alert {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: .8rem 1rem;
  font-size: .9rem;
  line-height: 1.45;
}
.auth-alert--error {
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  border-color: color-mix(in srgb, var(--danger) 35%, transparent);
  color: color-mix(in srgb, var(--danger) 72%, var(--ink));
}
.auth-alert--success {
  background: color-mix(in srgb, var(--signal) 12%, transparent);
  border-color: color-mix(in srgb, var(--signal) 35%, transparent);
  color: color-mix(in srgb, var(--signal) 60%, var(--ink));
}

/* ---- Success ("check your email") state ---- */
.auth-success__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--signal) 14%, transparent);
  color: var(--signal);
}
.auth-success__icon svg { width: 2.1rem; height: 2.1rem; }

/* ---- Fine print ---- */
.auth-fineprint {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}
.auth-fineprint a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-fineprint a:hover { color: var(--accent); }
