/* Authentication screens: logo header, a centered card and a quiet footer. */
body.auth { background: var(--surface-2); }
.auth-shell { min-height: 100dvh; }
.auth-main { display: flex; flex-direction: column; min-height: 100dvh; max-width: 1240px; margin: 0 auto; padding: 24px 48px; }
.auth-brand { display: inline-flex; align-items: center; }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-1); padding: 40px 44px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-family: var(--font-serif); font-weight: 500; font-size: 34px; letter-spacing: -0.028em; }
.auth-card .lead { font-size: 16px; margin-top: 8px; }
.auth-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.auth-foot a { color: var(--ink-3); }
.auth-form { margin-top: 28px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-wrap .toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: var(--ink-3); border-radius: var(--r-control); display: flex; align-items: center; justify-content: center; }
.pw-wrap .toggle:hover { color: var(--ink); background: var(--surface-2); }

/* enrollment wizard */
.wiz-steps { display: none; margin: 24px 0 32px; }
#wizard { margin-top: 28px; }
.wiz-steps .stepper li { font-size: 11.5px; }
.wiz-steps .stepper li::before { width: 26px; height: 26px; font-size: 12px; }
.wiz-steps .stepper li::after { top: 13px; left: calc(50% + 16px); right: calc(-50% + 16px); }
.wiz-panel { display: none; animation: rise .25s var(--ease); }
.wiz-panel.on { display: block; }
.wiz-panel h2 { font-size: 20px; margin-bottom: 4px; }
.wiz-panel .sub { color: var(--ink-2); margin-bottom: 22px; font-size: 14.5px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.review-grid { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.review-block { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.review-block:last-child { border-bottom: 0; }
.review-block h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-bottom: 8px; display: flex; justify-content: space-between; }
.review-block dl { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; font-size: 14px; }
.review-block dt { color: var(--ink-3); }
.review-block dd { margin: 0; word-break: break-word; }
.acct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acct-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--surface); overflow: hidden; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.acct-card:hover { border-color: var(--ink-3); }
.acct-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.acct-card.on { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary); }
.acct-card input:focus-visible ~ .acct-body { outline: 2px solid var(--primary); outline-offset: -4px; }
.acct-media { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); overflow: hidden; }
.acct-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.acct-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.acct-body strong { font-size: 16px; }
.acct-desc { font-size: 13.5px; color: var(--ink-2); }
.acct-feat { list-style: none; margin: 4px 0 10px; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--ink-2); }
.acct-feat li::before { content: "\2713"; color: var(--ok); margin-right: 8px; }
.acct-pick { margin-top: auto; justify-content: center; pointer-events: none; }
.acct-card.on .acct-pick { background: var(--primary); border-color: var(--primary); color: #fff; }
.choice { display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-card); align-items: flex-start; cursor: pointer; }
.choice:hover { border-color: var(--ink-3); }
.choice input { margin-top: 3px; accent-color: var(--primary); width: 18px; height: 18px; }
.choice strong { display: block; }
.choice span { font-size: 13.5px; color: var(--ink-2); }
.status-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.status-icon.warn { background: var(--warn-bg); color: var(--warn); }
.status-icon.bad { background: var(--bad-bg); color: var(--bad); }
.status-icon.ok { background: var(--ok-bg); color: var(--ok); }
.status-icon .icon { width: 28px; height: 28px; }

@media (max-width: 1099px) {
  .auth-main { padding: 24px; }
}
@media (max-width: 719px) {
  .auth-main { padding: 18px 16px; }
  .auth-center { padding: 24px 0; align-items: flex-start; }
  .auth-card { padding: 24px 20px; }
  .auth-back-text { display: none; }
  .auth-card h1 { font-size: 28px; }
  .acct-grid { grid-template-columns: 1fr; }
  .review-block dl { grid-template-columns: 110px 1fr; }
  .wiz-nav .btn { flex: 1; }
}
