/* Shared gate-card form primitives.
 *
 * Used by the open-signup onboarding page (`/:locale/start`), the
 * recovery gate (`/:locale/recover`), and the succession start flow.
 * Mobile-first: a card centred in a viewport-filling hero. The CSS
 * uses Beacon tokens only — no raw hex / px / colour names.
 *
 * Layout intent: single column, capped at the Beacon shell's
 * mobile-first `.app-main` width via the parent route shell. The
 * `.gate-card` is a paper-on-cloud document tier so the surface feels
 * considered, not transactional.
 *
 * Renamed from the retired friends-and-family `.invite-*` gate styles
 * (open signup, 2026-06-15); the classes were never invite-specific —
 * they are the shared gate-form treatment.
 */

.gate-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-5);
  padding-block: var(--space-6);
}

.gate-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gate-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.018em;
  margin: 0;
  color: var(--color-text-heading);
}

.gate-helper {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.gate-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.gate-field {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-primary);
  border-radius: var(--r-md);
  background: var(--color-bg-page);
  color: var(--color-text-body);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gate-field:focus-visible {
  outline: 2px solid var(--color-primary-accent);
  outline-offset: 2px;
  border-color: var(--color-primary-accent);
}

.gate-error {
  margin: 0;
  min-height: 1.5em;
  font-size: 0.875rem;
  color: var(--red-500);
}

.gate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 0;
  border-radius: var(--r-md);
  background: var(--color-primary-bg);
  color: var(--color-text-on-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
}

.gate-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.gate-button:focus-visible {
  outline: 2px solid var(--color-primary-accent);
  outline-offset: 2px;
}
