/* ============================================================
   Sign In — `/sign-in` page-specific layout chrome.
   ============================================================
   Ported from `Sign In.html`'s own <style> block (couple-website-markup);
   per that design system's own convention this "flat interstitial" shell
   (.vp-*/.rp-*) is intentionally page-local rather than promoted into the
   shared styles.css (avoids a shared-bundle cache-bust for a family only
   Sign In uses so far — Reset Password/New Password/Validate Phone will
   each carry their own copy too when those land in 2.3/2.4). Everything
   below reads exclusively from the ported design tokens
   (colors_and_type.css) — no new colors/sizes invented. `.btn-pill`,
   `.intake-input`, `.field-error`, `.eyebrow`, and the shared `.np-*`
   password-field layer already live in styles.css.
   ============================================================ */
.auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.vp-main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
}
.vp-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
}
.vp-logo-link { display: inline-flex; }
.vp-logo-link:hover { text-decoration: none; }
.vp-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* ---- Shared auth-form layer ---- */
.rp-stack { max-width: 440px; }
.rp-block { width: 100%; gap: 28px; }
.rp-form {
  width: 100%;
  display: flex; flex-direction: column; gap: 20px;
  text-align: left;
}
.rp-field { display: flex; flex-direction: column; gap: 10px; }
.rp-field-label { color: var(--fg-heading); }
.rp-submit { width: 100%; margin-top: 4px; }
.rp-submit[disabled] { cursor: default; opacity: 0.7; }

/* ---- Sign-in layer ---- */
.si-auth {
  width: 100%;
  display: flex; flex-direction: column; gap: 20px;
}

/* Google's own rendered widget (data-type="standard") sizes itself; center
   it and give it breathing room consistent with the pill button below. */
.si-google-widget {
  display: flex;
  justify-content: center;
}

.si-divider {
  display: flex; align-items: center; gap: 16px; width: 100%;
}
.si-divider::before,
.si-divider::after {
  content: ''; flex: 1 1 auto; height: 1px;
  background: var(--lavender-border);
}
.si-divider > span {
  font: 500 italic 16px/1 var(--font-body);
  color: var(--ink-400);
}

.si-label-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.si-forgot {
  font: 500 14px/1 var(--font-body);
  color: var(--couple-purple);
  text-decoration: none;
  white-space: nowrap;
}
.si-forgot:hover { text-decoration: underline; text-underline-offset: 2px; }

.si-alt {
  font: 500 16px/1.4 var(--font-body);
  color: var(--ink-500);
  text-align: center;
  margin: 0;
}
.si-alt a {
  color: var(--couple-purple);
  font-weight: 700;
  text-decoration: none;
}
.si-alt a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* Server-rendered form error banner (`#sign-in-error`) — reuses
   `.field-error`'s red voice but full-width, above the fields. */
#sign-in-error {
  text-align: left;
  margin: 0;
}

@media (max-width: 520px) {
  .vp-main { padding: 32px 20px 56px; }
  .vp-stack { gap: 32px; }
  .rp-submit { font-size: 18px; }
}
