/*
 * Public account screens (login, signup). Tokens from ui/tokens.css only;
 * class prefix "acct-". No AppShell: a minimal top bar with the brand mark,
 * then one centered card on the paper canvas.
 */
.acct-page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--t-paper);
  color: var(--t-body);
  font-family: var(--t-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* top bar */
.acct-top { border-bottom: 1px solid var(--t-hair); }
.acct-top__inner { max-width: var(--t-container); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; }
.acct-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: var(--t-hit);
  color: var(--t-ink);
  text-decoration: none;
  font-family: var(--t-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  border-radius: var(--t-radius-sm);
}
.acct-brand__mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--t-brand-50);
  color: var(--t-brand);
  display: inline-grid;
  place-items: center;
}
.acct-brand__mark svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .acct-brand__mark { width: 36px; height: 36px; border-radius: 10px; } }

/* card */
.acct-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 24px 16px 48px; }
.acct-card {
  width: 100%;
  max-width: 440px;
  box-sizing: border-box;
  padding: 28px 20px;
  background: var(--t-card);
  border: 1px solid var(--t-line);
  border-radius: var(--t-radius);
  box-shadow: var(--t-shadow-card);
}
@media (min-width: 640px) {
  .acct-main { padding: 48px 24px 72px; }
  .acct-card { padding: 36px 32px; }
}
.acct-h1 {
  margin: 0;
  font-family: var(--t-serif);
  font-weight: 600;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--t-ink);
}
.acct-lede { margin: 10px 0 0; font-size: 16px; color: var(--t-body); }
.acct-stack { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.acct-stack > *, .acct-stack .acct-stack { margin: 0; }
.acct-card .ui-primary { width: 100%; min-height: var(--t-hit); }

/* fields */
.acct-field { display: flex; flex-direction: column; gap: 6px; }
.acct-field__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acct-label, .acct-legend { font-size: 13px; font-weight: 700; color: var(--t-body); }
.acct-input {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--t-ink);
  background: var(--t-card);
  border: 1px solid var(--t-line);
  border-radius: 12px;
  transition: border-color 160ms var(--t-ease), box-shadow 160ms var(--t-ease);
}
.acct-input::-moz-placeholder { color: var(--t-faint); }
.acct-input::placeholder { color: var(--t-faint); }
.acct-input:focus-visible { border-color: var(--t-brand); }
.acct-input[aria-invalid="true"] { border-color: var(--t-crit); }
.acct-help { font-size: 13px; line-height: 1.4; color: var(--t-muted); }
.acct-inline-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--t-crit); }

/* notes, status, divider */
.acct-note { margin: 0; padding: 10px 14px; border-radius: var(--t-radius-sm); font-size: 14px; line-height: 1.4; }
.acct-note p { margin: 0; }
.acct-note--crit { background: var(--t-crit-tint); color: var(--t-crit); }
.acct-note--ok { background: var(--t-brand-50); color: var(--t-brand-dark); }
.acct-status { margin: 0; font-size: 13px; font-weight: 600; color: var(--t-muted); }
.acct-divider { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; color: var(--t-muted); }
.acct-divider::before, .acct-divider::after { content: ""; flex: 1; height: 1px; background: var(--t-line); }

/* MFA challenge */
.acct-mfa {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--t-brand-100);
  border-radius: var(--t-radius-sm);
  background: var(--t-brand-50);
}
.acct-mfa__heading { display: grid; gap: 3px; }
.acct-mfa .acct-mfa__heading h2 { margin: 0; font-family: var(--t-serif); font-size: 22px; line-height: 1.15; color: var(--t-ink); }
.acct-mfa__eyebrow { color: var(--t-brand-dark); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.acct-mfa__form { display: grid; gap: 14px; }
.acct-mfa__actions { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.acct-mfa__actions .acct-textbtn { min-height: 44px; padding-left: 0; padding-right: 0; }
.acct-mfa__recaptcha { width: 1px; height: 1px; overflow: hidden; }

/* text buttons and links */
.acct-textbtn {
  display: inline-flex;
  align-items: center;
  min-height: var(--t-hit);
  padding: 0 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--t-brand-dark);
  border-radius: var(--t-radius-sm);
  cursor: pointer;
}
.acct-textbtn:hover, .acct-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.acct-textbtn:disabled { color: var(--t-muted); cursor: not-allowed; text-decoration: none; }
.acct-link { color: var(--t-brand-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 12px 0; margin: -12px 0; border-radius: 4px; }

/* role segments and consent checks */
.acct-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.acct-legend { padding: 0; margin: 0 0 8px; }
.acct-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.acct-seg__opt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: var(--t-hit);
  padding: 8px 10px;
  border: 1px solid var(--t-line);
  border-radius: 12px;
  background: var(--t-card);
  font-size: 14px;
  font-weight: 600;
  color: var(--t-body);
  cursor: pointer;
}
.acct-seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.acct-seg__opt:has(input:checked) { border-color: var(--t-brand); background: var(--t-brand-50); color: var(--t-brand-dark); }
.acct-seg__opt:has(input:focus-visible) { box-shadow: var(--t-focus); }
.acct-checks { display: flex; flex-direction: column; gap: 4px; }
.acct-check { display: flex; align-items: flex-start; gap: 12px; min-height: var(--t-hit); padding: 6px 0; font-size: 14px; line-height: 1.45; color: var(--t-body); cursor: pointer; }
.acct-check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--t-brand); border-radius: 4px; }

/* focus, footer, screen-reader text */
.acct-brand:focus-visible, .acct-input:focus-visible, .acct-textbtn:focus-visible, .acct-link:focus-visible, .acct-check input:focus-visible { outline: none; box-shadow: var(--t-focus); }
.acct-foot { margin: 20px 0 0; font-size: 14px; text-align: center; color: var(--t-body); }
.acct-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
