/* auth-1.2 — Sign in and Sign up.
   Chrome, hero, scrim, stage, and card quoted from locked setup-1.17 /
   guests-1.1 / qr-1.1 (Account-side frame). Card top stays at 427.8.
   Lead type quoted from locked account-1.7 .acct-name / qr-1.1 .lead.
   Labels and fields quoted from locked guests-1.1 / qr-1.1
   (.hs-lab, .hs-field). Gold action quoted from locked comms-1.1 .cx-go
   (via qr-1.1 / shop). Text action quoted from locked guests-1.1 .hs-btn.
   Show control is the live app's "Show" text button, set in existing
   type and muted color — not a new component family.
   Existing tokens only. */

.hero { position: absolute; inset: 0; width: 390px; height: 844px; object-fit: cover; object-position: center top; display: block; z-index: 0; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, color-mix(in srgb, var(--color-night) 70%, transparent) 0, color-mix(in srgb, var(--color-night) 28%, transparent) 220px, transparent 420px);
}

.stage {
  position: absolute;
  z-index: 2;
  top: 160px;
  /* Empty top zone: locked setup-1.12 portrait+name (170–403.8, fonts loaded) = 243.8px, so the card top stays at 427.8. */
  padding-top: 243.8px;
  left: 0; right: 0;
  bottom: 52px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  width: 350px;
  margin: 24px auto 0;
  flex-shrink: 0;
  background: rgba(20, 19, 26, 0.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
          backdrop-filter: blur(28px) saturate(1.2);
  border-radius: 16px;
  box-shadow: inset 0 0.5px 0 rgba(244, 239, 232, 0.12);
  overflow: hidden;
}

/* Lead in the empty zone, left of the 2.2 right-third horse.
   Type quoted from locked account-1.7 .acct-name. Placement quoted from
   qr-1.1 / shop-1.1 .kit-id (left 20, width 232) so it stays out of the horse column. */
.lead {
  position: absolute;
  top: 72px;
  left: 20px;
  width: 232px;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}
.lead-title {
  margin: 0;
  font: 400 var(--type-value)/1.15 var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 72;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.lead-sub {
  margin: 8px 0 0;
  font: 500 13px/1.35 var(--font-ui);
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* Fields quoted from locked guests-1.1 / qr-1.1. */
.field-block {
  width: 100%;
  padding: 8px 16px 4px;
  border-top: 0.5px solid rgba(244, 239, 232, 0.10);
}
.field-block:first-child,
.auth-error + .field-block { border-top: 0; }
.hs-lab {
  display: block;
  margin: 0 0 4px;
  font: 600 var(--type-label)/1 var(--font-ui);
  letter-spacing: var(--type-label-tracking);
  text-transform: uppercase;
  color: var(--color-chart-name);
}
.hs-field {
  width: 100%;
  height: 44px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 0.5px solid rgba(244, 239, 232, 0.22);
  background: transparent;
  color: var(--color-text);
  font: 500 16px/1 var(--font-ui);
  letter-spacing: 0.01em;
  outline: none;
  border-radius: 0;
  color-scheme: dark;
}
.hs-field:focus {
  border-bottom-color: color-mix(in srgb, var(--color-solar) 46%, var(--color-text));
}
.pw-wrap { position: relative; }
.pw-wrap .hs-field { padding-right: 56px; }
.pw-show {
  appearance: none;
  position: absolute;
  right: 0;
  top: 0;
  height: 44px;
  padding: 0 0 2px;
  border: 0;
  background: none;
  font: 500 var(--type-status)/1 var(--font-ui);
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pw-show:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--color-solar) 46%, var(--color-text));
  outline-offset: 2px;
}

/* Error line: live flash "Invalid email or password." Type quoted from row .v. */
.auth-error {
  margin: 0;
  padding: 14px 16px 2px;
  font: 500 var(--type-status)/1.35 var(--font-ui);
  color: var(--color-text);
  letter-spacing: 0.01em;
}
.auth-error[hidden] { display: none !important; }

/* Gold action: quoted from comms-1.1 .cx-go, full card width, below the card
   (same placement as shop-1.0 / billing CTAs). */
.cx-go {
  display: grid;
  place-items: center;
  width: 350px;
  height: 40px;
  margin: 16px auto 0;
  flex-shrink: 0;
  padding: 0 18px;
  border-radius: 20px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: 600 var(--type-status)/1 var(--font-ui);
  letter-spacing: .02em;
  color: var(--color-night);
  background: color-mix(in srgb, var(--color-solar) 46%, var(--color-text));
  -webkit-tap-highlight-color: transparent;
}
.cx-go:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* Text action: quoted from locked guests-1.1 / qr-1.1 .hs-btn. */
.hs-btn {
  appearance: none;
  display: grid;
  place-items: center;
  width: 350px;
  height: 44px;
  margin: 0 auto;
  flex-shrink: 0;
  border: 0;
  background: none;
  color: color-mix(in srgb, var(--color-solar) 46%, var(--color-text));
  font: 500 15px/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hs-btn:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--color-solar) 46%, var(--color-text));
  outline-offset: 2px;
}

/* Quiet text link: quoted from locked account-1.9 .hs-btn.is-quiet.
   Used only for Forgot password? under Create account. */
.hs-btn.is-quiet {
  color: var(--color-text-muted);
  font-size: 13px;
}
