/* The pages without chrome: sign-in (SignInDesktop), first-time setup (SetupDesktop) and the invite link pages
   (InviteAcceptPhone, InviteExpiredPhone).  Sign-in and setup are a navy brand panel beside a paper panel at
   1024px and up; below that the brand panel stacks on top. */

/* Shared split layout. */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; background: var(--navy-950); }
.auth-brand { position: relative; display: flex; flex-direction: column; gap: var(--space-24); padding: 40px 24px 32px; color: #FFFFFF; }
.auth-brand .logo-name { font-size: var(--type-title-sm); }
.auth-brand-lead { display: flex; flex-direction: column; gap: var(--space-18); max-width: 560px; }
.auth-hero { font-family: var(--font-display); font-size: 34px; font-weight: var(--weight-display); line-height: 1.1; }
.auth-lead { font-size: var(--type-body-lg); line-height: 1.6; color: var(--navy-100); }
.auth-brand-foot { font-size: var(--type-meta); color: var(--navy-200); }
.auth-brand-edge { position: absolute; left: 0; right: 0; bottom: 0; height: var(--gold-rule); }
.auth-panel { background: var(--paper-50); display: flex; justify-content: center; padding: 32px 16px 48px; }

@media (min-width: 1024px) {
  .auth { grid-template-columns: minmax(0, 1fr) 560px; grid-template-rows: none; }
  .auth-brand { justify-content: space-between; padding: 72px 80px; }
  .auth-hero { font-size: var(--type-hero); }
  .auth-lead { font-size: var(--type-lead); }
  .auth-brand-edge { left: auto; top: 0; width: var(--gold-rule); height: auto; }
  .auth-panel { align-items: center; padding: 48px; }
}

/* Provider buttons: the Google and Apple choices from the sign-in and invite designs. */
.provider-btn {
  width: 100%; height: var(--control-h-lg); border-radius: var(--radius-choice); border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: var(--space-12);
  font-family: inherit; font-size: var(--type-body-lg); font-weight: var(--weight-bold); text-decoration: none;
}
.provider-btn-google { background: #FFFFFF; color: var(--ink-900); border: 1px solid var(--border-input); }
.provider-btn-apple { background: #000000; color: #FFFFFF; }
.provider-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.provider-btn-dev { display: flex; width: fit-content; margin: 0 auto; font-size: var(--type-body-sm); }

/* Sign in. */
.sign-in { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: var(--space-16); }
.sign-in-title { font-family: var(--font-display); font-size: var(--type-title-lg); font-weight: var(--weight-display); color: var(--navy-950); }
.sign-in-lead { margin-bottom: var(--space-8); font-size: var(--type-body); line-height: var(--leading-body); color: var(--ink-500); }
.sign-in-note {
  margin-top: var(--space-12); padding: 14px 16px; border-radius: var(--radius-choice);
  background: var(--walnut-100); color: var(--walnut-900); font-size: var(--type-body-sm); line-height: var(--leading-body);
}

/* First-time setup. */
.auth-setup .setup-hero { font-size: 34px; }
.setup-intro { font-size: var(--type-body-lg); }
.setup-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-12); max-width: 520px; font-size: var(--type-body-sm); color: var(--navy-200); }
.setup-notes li { display: flex; gap: var(--space-10); }
.setup-notes li::before { content: '●'; color: var(--gold-350); }
.setup-panel { flex-direction: column; justify-content: flex-start; }
.setup-eyebrow { font-weight: var(--weight-bold); color: var(--walnut-700); }
.setup-form { margin-top: var(--space-12); display: flex; flex-direction: column; gap: var(--space-16); }
.setup-step { display: flex; gap: var(--space-16); padding: 20px 0; border-top: 1px solid var(--paper-300); }
.setup-step-mark {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 16px; color: #FFFFFF;
  font-size: var(--type-body-sm); font-weight: var(--weight-bold); display: flex; align-items: center; justify-content: center;
}
.setup-step-done { background: var(--green-800); }
.setup-step-current { background: var(--navy-700); }
.setup-step-next { background: var(--paper-500); }
.setup-step-body { display: flex; flex-direction: column; gap: var(--space-12); flex-grow: 1; min-width: 0; }
.setup-step-title { font-family: var(--font-display); font-size: var(--type-section); font-weight: var(--weight-display); color: var(--navy-950); }
.setup-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
.setup-panel .field-hint { font-size: var(--type-caption); }
.setup-panel .input { padding: 0 14px; }
.setup-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: var(--tracking-label); }
.setup-panel .select { padding-left: 14px; }
.setup-step-text { margin: 0; font-size: var(--type-body-sm); color: var(--ink-700); }
.setup-people { margin: 0; padding: 0; display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; border: 1px solid var(--paper-300); border-radius: var(--radius-card); background: #FFFFFF; }
.setup-person { display: flex; align-items: center; gap: var(--space-12); padding: 10px 14px; border-bottom: 1px solid var(--paper-200); cursor: pointer; }
.setup-person:last-of-type { border-bottom: 0; }
.setup-person[hidden] { display: none; }
.setup-people-empty { padding: 14px; }
.setup-person:has(:checked) { background: var(--gold-50); }
.setup-person-radio { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--navy-700); }
.setup-person-text { display: flex; flex-direction: column; min-width: 0; }
.setup-person-name { font-weight: var(--weight-bold); color: var(--navy-950); }
.setup-person-detail { font-size: var(--type-caption); color: var(--text-muted); }
.setup-finish .provider-btn { height: 50px; gap: var(--space-10); font-size: var(--type-body); }

@media (min-width: 480px) {
  .setup-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .auth-setup { grid-template-columns: minmax(0, 1fr) 640px; }
  .auth-setup .auth-brand { justify-content: flex-start; gap: 40px; }
  .auth-setup .setup-hero { font-size: var(--type-stat-xl); }
  .auth-setup .setup-lead { max-width: 520px; margin-top: 60px; }
  .setup-notes { margin-top: auto; }
  .auth-setup .setup-panel { align-items: stretch; padding: 48px 52px; }
}

/* Invite link pages: a navy header band over a paper column. */
.invite-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper-50); color: var(--ink-900); }
.invite-header {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-14);
  padding: 40px 24px 28px; background: var(--navy-950); color: #FFFFFF; text-align: center;
}
.invite-header-name { font-family: var(--font-display); font-size: 22px; font-weight: var(--weight-display); }
.invite-header-ward { font-size: var(--type-meta); color: var(--navy-200); }
.invite-header-rule { position: absolute; left: 0; right: 0; bottom: 0; height: var(--gold-rule); }
.invite-main { width: 100%; max-width: 440px; margin: 0 auto; padding: 28px 24px; display: flex; flex-direction: column; gap: var(--space-16); }
.invite-title { font-family: var(--font-display); font-size: var(--type-title-md); font-weight: var(--weight-display); color: var(--navy-950); line-height: var(--leading-snug); }
.invite-lead { font-size: var(--type-body-lg); line-height: 1.55; color: var(--ink-700); }
.invite-facts {
  margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: var(--space-6);
  background: #FFFFFF; border: 1px solid var(--paper-300); border-radius: var(--radius-card);
  font-size: var(--type-body-sm); color: var(--ink-700);
}
.invite-fact { display: flex; justify-content: space-between; gap: var(--space-12); }
.invite-fact dt { color: var(--ink-500); }
.invite-fact dd { margin: 0; font-weight: var(--weight-bold); text-align: right; }
.invite-form { display: flex; flex-direction: column; gap: var(--space-16); }
.invite-confirm {
  display: flex; gap: var(--space-12); align-items: flex-start; padding: 14px 16px; cursor: pointer;
  border-radius: var(--radius-choice); background: var(--paper-40); border: 1.5px solid var(--gold-500);
  font-size: var(--type-body-sm); line-height: var(--leading-body); color: var(--walnut-900);
}
.invite-confirm.is-invalid { border-color: var(--ruby-800); }
.invite-confirm input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--walnut-900); flex-shrink: 0; }
.invite-choose { margin-top: var(--space-6); font-size: var(--type-body-sm); color: var(--ink-500); }
.invite-foot { font-size: var(--type-caption); color: var(--ink-500); text-align: center; }

/* The dead link variant. */
.invite-dead-icon {
  width: 56px; height: 56px; border-radius: 28px; align-self: center;
  display: flex; align-items: center; justify-content: center; background: var(--ruby-50); color: var(--ruby-800);
}
.invite-dead-title, .invite-dead-body { text-align: center; }
.invite-dead-title { line-height: var(--leading-tight); }
.invite-dead-foot {
  padding: 14px 16px; background: #FFFFFF; border: 1px solid var(--paper-300); border-radius: var(--radius-card);
  font-size: var(--type-body-sm); color: var(--ink-700); line-height: var(--leading-body);
}
.invite-dead-foot a { font-weight: var(--weight-bold); }
