/* CallMeX · sign-up, forgot and reset pages (auth/register.php, forgot.php, reset.php).
   Sits on top of cx.css; every class here is new to this area. */

/* ---------- sign-up: the form is a column of titled steps ---------- */
.reg [hidden] { display: none !important; }
.reg-type { border: 0; padding: 0; margin: 0; min-width: 0; }
.reg-type legend { float: none; width: auto; padding: 0; margin: 0 0 .7rem; font-size: 18px; font-weight: 800; }
.reg-sec { display: grid; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.reg-sec > h3 { font-size: 18px; margin: 0; }
.reg-note { display: flex; align-items: flex-start; gap: .6rem; margin: 0; }
.reg-note i { color: var(--brand-ink); font-size: 1.1rem; margin-top: .15rem; }

/* account-type cards: bigger touch area, a tick on the chosen one */
.reg .role-pick .rp { position: relative; padding: 16px 18px; min-height: 124px; align-content: start; }
.reg .role-pick .rp b { font-size: 17px; padding-inline-end: 1.8rem; }
.reg .role-pick .rp small { font-size: 15px; line-height: 1.55; }
.reg .role-pick input:checked + .rp::after {
  content: "\F26B"; font-family: "bootstrap-icons";
  position: absolute; inset-block-start: 12px; inset-inline-end: 14px;
  color: var(--brand); font-size: 1.25rem; line-height: 1;
}
.reg .role-pick label:hover .rp { border-color: rgba(var(--brand-rgb), .45); }

/* the optional marker next to a label (same look as the kit's .opt) */
.reg .fm-label .opt { color: var(--muted); font-weight: 600; }

/* ---------- password: strength + confirmation ---------- */
.pw-strength { margin-top: .6rem; }
.match { display: flex; align-items: center; gap: .4rem; min-height: 1.6em; font-size: 15px; font-weight: 700; color: var(--muted); }
.match:empty { display: none; }
.match.ok { color: var(--ok); }
.match.no { color: var(--danger); }
.fm-field.is-bad .match { display: none; }

/* ---------- forgot / reset: a three-step trail above the card title ---------- */
.rs-steps { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.rs-steps li { position: relative; display: grid; justify-items: center; align-content: start; gap: .4rem; text-align: center; font-size: 15px; font-weight: 700; color: var(--muted); line-height: 1.4; }
.rs-steps .n { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); font-weight: 800; }
.rs-steps li:not(:last-child)::after { content: ""; position: absolute; top: 19px; inset-inline-start: calc(50% + 28px); width: calc(100% - 56px); border-top: 2px dashed var(--line); }
.rs-steps li.is-done { color: var(--ink); }
.rs-steps li.is-done .n { background: var(--brand); border-color: var(--brand); color: #fff; }
.rs-steps li.is-done::after { border-top-color: var(--brand); }
.rs-steps li.is-now { color: var(--brand-ink); }
.rs-steps li.is-now .n { border-color: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 5px rgba(var(--brand-rgb), .14); }
@media (max-width: 479.98px) { .rs-steps li { font-size: 15px; } .rs-steps .n { width: 36px; height: 36px; } .rs-steps li:not(:last-child)::after { top: 17px; inset-inline-start: calc(50% + 24px); width: calc(100% - 48px); } }

/* big round icon above a state's title */
.au-big { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 22px; margin-bottom: 1.1rem; font-size: 2rem; background: rgba(var(--brand-rgb), .1); color: var(--brand-ink); }
.au-big.is-ok { background: var(--ok-bg); color: var(--ok); }
.au-big.is-bad { background: var(--danger-bg); color: var(--danger); }
.au-actions { display: grid; gap: .75rem; margin-top: 1.4rem; }

/* wizard inside the auth card: the card is the surface, so the step is not a card of its own */
.au-card .wz-step { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.au-card .wz-q h2 { font-size: clamp(24px, 2.4vw, 32px); }
.au-card .wz-q p { font-size: 16px; }
.au-card .wz-body { margin-top: 1.1rem; }
.au-card .wz-nav { position: static; padding-block: 4px 0; background: none; }
.au-card .wz-nav .btx-lg { min-width: 160px; }
.au-card .wz-top { margin-bottom: 1.2rem; }
