/* Account pages: sign-up, sign-in, the sign-in link, activation, re-verify. Builds on app.css tokens. */
.progress-bar.step-1 { width: 33.33%; }
.progress-bar.step-2 { width: 66.66%; }
.progress-bar.step-3 { width: 100%; }

.account-wrap { max-width: 980px; padding-top: 36px; }
.account-narrow { max-width: 460px; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 32px; align-items: start; }
.account-grid .form-col { max-width: 560px; }
.account-wrap h1 { font-size: 34px; letter-spacing: -.5px; }

.account-form { display: grid; gap: 16px; margin: 0 0 18px; }
.account-form.card { padding: 22px; }
.field { display: grid; gap: 6px; min-width: 0; }
/* app.css styles .field as the card fields' box (payment step); on account forms it is only a wrapper */
.account-form .field { border: 0; border-radius: 0; background: none; min-height: 0; overflow: visible; }
.account-form .field:focus-within { box-shadow: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .label-row label { font-size: 14px; font-weight: 600; }
.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #c9d4cc; border-radius: 10px;
  background: var(--white); color: var(--ink); min-height: 46px; }
.field input:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--brand-2); }
.field input[aria-invalid="true"] { border-color: #c0392b; }
.field-error { margin: 0; color: #8a1f12; font-size: 14px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.field:has(.field-error) .hint { display: none; }


.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--brand); }

.btn-block { width: 100%; justify-content: center; }
.btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.switch { margin: 0; }
.price-line { margin: 0 0 12px; padding: 10px 12px; border-radius: 10px; background: var(--mint); font-size: 14px;
  font-weight: 600; color: var(--brand); }

/* Honeypot: off screen for people, still in the form for bots. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.notice-actions { gap: 12px; }
.actions[hidden] { display: none; }   /* .actions is flex; keep the retry row out until it's needed */
.signout-form { margin: 0; display: inline; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; gap: 20px; }
  .account-wrap { padding-top: 24px; }
  .account-wrap h1 { font-size: 28px; }
  .account-grid .form-col { padding-bottom: 8px; }
}
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Home (/ without a session): the program on the brand side, the sign-in card (_sign_in.html) beside it. On a phone:
   name and headline, then the card, then the rest of the program's side. Content lines up with the footer's edges. */
.home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
  grid-template-areas: "intro door" "more door"; }
.home-intro, .home-more { background: var(--brand); color: var(--white);
  padding-left: max(20px, calc(50vw - 520px)); padding-right: 56px; }
.home-intro { grid-area: intro; padding-top: 64px; }
.home-more { grid-area: more; padding-bottom: 64px; }
.home-door { grid-area: door; align-self: center; padding: 64px max(20px, calc(50vw - 520px)) 64px 56px; }
.home-door > * { max-width: 420px; margin-inline: auto; }
.home-door h2 { font-size: 30px; line-height: 1.2; margin-block: 0 10px; letter-spacing: -.3px; }
.home-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 40px; font-weight: 700; font-size: 17px; }
.home-brand .mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--mint); }
.home-brand .mark svg { width: 24px; height: 24px; }
.home-brand .mark:has(img) { background: none; width: auto; }
.home-brand .mark img { height: 36px; width: auto; display: block; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.3); }   /* a mark drawn on the brand color keeps its edge */
.home h1 { font-size: 40px; line-height: 1.15; letter-spacing: -.6px; margin: 0 0 32px; max-width: 14em; }
.home-more .gets { margin: 0 0 28px; }
.home-more .gets li { align-items: flex-start; }
.home-more .tick { margin-top: 2px; }
.home-disclosure { margin: 0 0 20px; font-size: 13px; color: rgba(255,255,255,.75); max-width: 36em; }
.home-join { margin: 0 0 14px; font-size: 15px; }
.home-links { margin: 0; font-size: 14px; color: rgba(255,255,255,.75); }
.home-more a { color: var(--white); text-underline-offset: 3px; }
.home-more a:hover { color: var(--white); opacity: .85; }
.home + .foot { border-top: 0; }

@media (max-width: 760px) {
  .home { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "intro" "door" "more"; }
  .home-intro { padding: 24px 16px 28px; }
  .home-brand { margin-bottom: 22px; }
  .home h1 { font-size: 28px; letter-spacing: -.4px; margin: 0; }
  .home-door { padding: 28px 16px 8px; }
  .home-door > * { max-width: none; }
  .home-door h2 { font-size: 25px; }
  .home-more { background: none; color: var(--ink); padding: 24px 16px 40px; border-top: 1px solid var(--line);
    margin: 0 16px; padding-inline: 0; }
  .home-disclosure, .home-links { color: var(--muted); }
  .home-more a { color: var(--brand-2); }
  .home-more a:hover { color: var(--brand); opacity: 1; }
}
