/* Account pages: signup, login, verify, forgot (design/mockups/signup|login|verify.html).
   Layout = form card + decorative bento aside. Shared pieces (password meter, code boxes,
   resend countdown, LTR inputs with icons) are also used by onboarding/settings. */

/* ---------- auth header (static, replaces the app header on these pages) */
.auth-nav .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--muted); min-height: 44px; padding: 0 12px; border-radius: 12px; }
.auth-nav .back:hover { color: var(--ink); background: rgba(0, 0, 0, .04); }
.auth-nav .q { font-size: 14.5px; color: var(--muted); }

/* ---------- layout */
.auth { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 18px; padding: 40px 0 0; align-items: stretch; }
.auth.solo { grid-template-columns: minmax(0, 560px); justify-content: center; }
.a-card { background: var(--tile); border: 1px solid var(--line); border-radius: var(--r); padding: 40px; min-width: 0; }
.a-card h1 { font-size: 34px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin: 14px 0 6px; }
.a-card .lede { color: var(--muted); font-size: 16px; font-weight: 300; }
.a-card .eyebrow { font-size: 13.5px; padding: 5px 13px; }
.a-form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.a-form .callout[hidden] { display: none; }
.pd-slot { height: 181px; } /* sign-up: date of birth + gender, drawn by the page script */
.a-form .callout a, .a-card .callout a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.a-form .callout button.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0; }
.a-card .alt { text-align: center; font-size: 14.5px; color: var(--muted); margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line); }
.a-card .alt a { color: var(--green); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
.a-card .alt a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lbl-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lbl-row label { font-size: 14px; font-weight: 500; }
.forgot { color: var(--green); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border-radius: 10px; }
.forgot:hover { text-decoration: underline; text-underline-offset: 3px; }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.magic svg.i { color: var(--green); }
.a-form .check { align-items: flex-start; }
.a-form .check.inline { align-items: center; padding-top: 0; }
.a-form .check.inline .box { margin-top: 0; }

/* ---------- inputs: icons + LTR values inside an RTL page */
.inp .ok-ic { position: absolute; inset-inline-end: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--green-2); color: var(--green); display: grid; place-items: center; pointer-events: none; }
.inp .ok-ic svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
.field.is-ok .inp .ok-ic { display: grid; }
.inp .ok-ic { display: none; }
.inp > svg.i.lead ~ .ctl.ltr { padding-left: 14px; padding-right: 44px; text-align: right; }
.inp > svg.i.lead ~ .ctl.ltr:has(~ .trail), .inp > svg.i.lead ~ .ctl.ltr:has(~ .ok-ic) { padding-left: 52px; }
.inp .ctl.ltr { font-weight: 400; }
.inp .ctl.ltr::placeholder { text-align: right; direction: rtl; }
.inp .pre { position: absolute; right: 44px; color: var(--muted); font-size: 15.5px; pointer-events: none; direction: ltr; }

/* ---------- password strength */
.pw-box { display: flex; flex-direction: column; gap: 6px; }
.pw-box[hidden] { display: none; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 2px; }
.pw-meter u { height: 5px; border-radius: 9px; background: var(--canvas-2); text-decoration: none; }
.pw-meter u.on.s1 { background: var(--rose); }
.pw-meter u.on.s2 { background: var(--amber); }
.pw-meter u.on.s3 { background: var(--amber); }
.pw-meter u.on.s4 { background: var(--green); }
.pw-strength { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pw-strength b { font-weight: 600; }
.pw-strength b.s1, .pw-strength b.s2 { color: var(--rose-ink); }
.pw-strength b.s3 { color: var(--amber-ink); }
.pw-strength b.s4 { color: var(--green-ink); }
.pw-rules { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); padding: 0; margin: 0; }
.pw-rules li { display: inline-flex; align-items: center; gap: 5px; }
.pw-rules li svg.i { width: 14px; height: 14px; stroke-width: 2.4; }
.pw-rules li.ok { color: var(--green-ink); }
.pw-rules li.no svg.i { color: var(--soft); }

/* ---------- verify: mail icon, address row, code boxes, resend */
.mailic { width: 64px; height: 64px; border-radius: 20px; background: var(--navy); color: var(--mint); display: grid; place-items: center; position: relative; }
.mailic svg.i { width: 30px; height: 30px; }
.mailic i { position: absolute; top: -4px; left: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--amber); border: 3px solid #fff; }
.mailic.amber { background: var(--amber-2); color: var(--amber-ink); }
.mailic.amber i { background: var(--green); }
.a-card .mailic + h1 { margin-top: 20px; }
.to { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 10px 10px 10px 14px; background: var(--canvas); border-radius: 16px; }
.to .addr { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; direction: ltr; min-width: 0; overflow-wrap: anywhere; }
.to .addr svg.i { color: var(--muted); width: 18px; height: 18px; flex: none; }
.to .chg { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--green); font-weight: 500; min-height: 44px; padding: 0 10px; border-radius: 12px; }
.to .chg:hover { background: var(--tile); }
.to .chg svg.i { width: 16px; height: 16px; }
.code-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.code-set legend { font-size: 14px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.otp-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; direction: ltr; }
.otp-row .cell { display: block; min-width: 0; }
.otp-row input { width: 100%; height: 64px; border: 1px solid var(--line); background: var(--field); border-radius: 16px; text-align: center; font: 600 26px var(--font); color: var(--ink); caret-color: var(--sky); padding: 0; }
.otp-row input.filled { background: var(--tile); border-color: var(--line-2); }
.otp-row input:focus { outline: 3px solid rgba(47, 110, 166, .35); outline-offset: 0; border-color: var(--sky); background: var(--tile); }
.otp-row input:disabled { opacity: .6; }
.otp-row.bad input { border-color: var(--rose); background: #FFF9F7; }
.otp-row.bad { animation: otp-shake .35s; }
@keyframes otp-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.otp-hint { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 10px; flex-wrap: wrap; }
.otp-hint b { color: var(--ink); font-weight: 500; }
.code-set .field-error { margin-top: 8px; }
.dev-code { font-size: 13px; color: var(--plum-ink); background: var(--plum-2); border-radius: 12px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dev-code b { direction: ltr; letter-spacing: .2em; }
.dev-code button { margin-inline-start: auto; }
.resend { display: flex; align-items: center; gap: 14px; background: var(--canvas); border-radius: 18px; padding: 12px; padding-inline-start: 16px; }
.resend .cd { position: relative; width: 44px; height: 44px; flex: none; }
.resend .cd[hidden] { display: none; }
.resend .cd svg { width: 44px; height: 44px; transform: rotate(-90deg); }
.resend .cd b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--green-ink); }
.resend-txt { flex: 1; min-width: 0; }
.resend p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.resend p b { color: var(--ink); font-weight: 600; display: inline-block; }
.resend .btn { min-height: 44px; font-size: 14px; padding: 0 16px; flex: none; }
.success-box { text-align: center; padding: 10px 0; }
.success-box .mailic { margin: 0 auto; background: var(--green-2); color: var(--green); }

/* ---------- forgot steps */
.mini-steps { list-style: none; display: flex; gap: 8px; margin: 18px 0 0; padding: 0; flex-wrap: wrap; }
.mini-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); background: var(--canvas); border-radius: var(--pill); padding: 6px 12px 6px 14px; }
.mini-steps li i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 600; background: var(--tile); color: var(--muted); }
.mini-steps li.on { color: var(--ink); font-weight: 500; background: var(--green-2); }
.mini-steps li.on i { background: var(--green); color: #fff; }
.mini-steps li.done i { background: var(--green-2); color: var(--green); }

/* ---------- aside bento (decorative illustrations) */
.a-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-content: stretch; min-width: 0; }
.a-side .tile { min-width: 0; }
.a-side .tile-dark .t-sub { color: var(--on-dark-muted); }
.a-side .cat { font-size: 13px; font-weight: 500; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.a-side .cat > i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.a-side .tile-dark .cat { color: var(--on-dark-muted); }
.a-side .ic.xs { width: 36px; height: 36px; border-radius: 11px; }
.a-side .ic.xs svg.i { width: 18px; height: 18px; }
.a-side .av { width: 30px; height: 30px; font-size: 12px; }
.ln { height: 5px; border-radius: 5px; background: #EDE9E0; margin: 5px 0; }

/* signup */
.side-signup { grid-template-rows: auto 1fr auto; }
.saved { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.sv { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 12px; }
.sv b { display: block; font-size: 14px; font-weight: 500; line-height: 1.35; }
.sv small { font-size: 12px; color: var(--on-dark-soft); }
.sv em { margin-inline-start: auto; font-style: normal; font-size: 12px; color: var(--on-dark-muted); white-space: nowrap; }
.sv.new { background: rgba(98, 214, 178, .12); border-color: rgba(98, 214, 178, .35); }
.sv.new em { color: var(--mint); display: inline-flex; gap: 4px; align-items: center; }
.sv.new em svg.i { width: 14px; height: 14px; stroke-width: 2.4; }
.tile-dark .badge-mint { position: absolute; top: 22px; left: 22px; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--mint); background: rgba(98, 214, 178, .14); padding: 5px 11px; border-radius: var(--pill); }
.tile-dark .badge-mint svg.i { width: 14px; height: 14px; }
.mock-doc { margin-top: auto; background: var(--tile); border-radius: 14px; padding: 12px; box-shadow: 0 14px 26px -18px rgba(120, 80, 10, .5), 0 0 0 1px rgba(0, 0, 0, .04); transform: rotate(-1.5deg); }
.mock-doc .dh { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 600; border-bottom: 1px solid #eee; padding-bottom: 6px; margin-bottom: 6px; }
.mock-doc .tag { font-size: 10.5px; padding: 1px 8px; min-height: 0; }
.mock-doc .vis { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-size: 13px; font-weight: 500; color: #5E3B05; }
.mock-doc .vis span { display: inline-flex; align-items: center; gap: 6px; }
.mock-doc .vis svg.i { width: 16px; height: 16px; }
.tog { width: 40px; height: 24px; border-radius: var(--pill); background: var(--green); position: relative; flex: none; }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--tile); }
.people { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 14px; }
.pp { display: flex; align-items: center; gap: 9px; background: var(--tile); border: 1px solid #E3DAF3; border-radius: 14px; padding: 7px 8px; font-size: 12.5px; }
.pp b { display: block; font-weight: 500; font-size: 13px; line-height: 1.3; }
.pp small { color: var(--muted); font-size: 11.5px; }
.pp .fb { margin-inline-start: auto; font-size: 11.5px; font-weight: 500; border-radius: var(--pill); padding: 3px 10px; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.pp .fb svg.i { width: 13px; height: 13px; }
.fb.do { background: var(--plum); color: #fff; }
.fb.done { background: var(--plum-2); color: var(--plum-ink); }
.t-star { flex-direction: row !important; gap: 20px; align-items: center; }
.t-star .txt { flex: 1; min-width: 0; }
.thread { flex: 1.25; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.thread .tm { display: flex; gap: 8px; align-items: flex-start; }
.thread .tm .av { width: 28px; height: 28px; font-size: 11px; }
.thread .tm p { background: #F7F7F4; border-radius: 4px 14px 14px 14px; padding: 7px 11px; font-size: 12.5px; line-height: 1.5; }
.thread .tm p b { display: block; font-size: 12px; font-weight: 600; }
.thread .tm.reply { margin-inline-start: 34px; }
.thread .tm.reply p { background: var(--green-2); }
.mstats { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.mstats span { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; border-radius: var(--pill); padding: 4px 10px; min-height: 30px; }
.mstats svg.i { width: 14px; height: 14px; }
.mstats .s1 { color: var(--amber-ink); background: var(--amber-2); } .mstats .s1 svg.i { fill: currentColor; stroke: none; }
.mstats .s2 { color: var(--sky-ink); background: var(--sky-2); }

/* login */
.side-login { grid-template-rows: 1fr auto; }
.t-back { flex-direction: row !important; gap: 28px; align-items: stretch; }
.t-back .col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hello { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.hello .ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--mint); }
.hello b { display: block; font-size: 16px; font-weight: 500; }
.hello small { font-size: 13px; color: var(--on-dark-soft); }
.news { width: 290px; flex: none; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.news h3 { font-size: 13px; font-weight: 500; color: var(--on-dark-muted); margin-bottom: 2px; }
.nw { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 14px; padding: 10px 12px; }
.nw .ic { width: 36px; height: 36px; border-radius: 11px; }
.nw .ic svg.i { width: 18px; height: 18px; }
.nw span { font-size: 13.5px; color: #D6DDEA; line-height: 1.4; }
.nw .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); margin-inline-start: auto; box-shadow: 0 0 0 4px rgba(98, 214, 178, .18); flex: none; }
.ic-star { background: rgba(242, 184, 75, .16); color: var(--gold); }
.ic-star svg.i { fill: currentColor; stroke: none; }
.ic-msg { background: rgba(98, 214, 178, .16); color: var(--mint); }
.ic-fol { background: rgba(157, 193, 226, .16); color: #9DC1E2; }
.drafts { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.dr { display: flex; align-items: center; gap: 10px; font-size: 13.5px; padding: 8px 10px; border-radius: 14px; background: #F7F7F4; }
.dr .ic { width: 32px; height: 32px; border-radius: 10px; }
.dr .ic svg.i { width: 16px; height: 16px; }
.dr b { font-weight: 500; display: block; line-height: 1.35; }
.dr small { font-size: 12px; color: var(--muted); }
.dr em { margin-inline-start: auto; font-style: normal; font-size: 11.5px; font-weight: 500; border-radius: var(--pill); padding: 2px 9px; white-space: nowrap; }
.e-draft { background: var(--slate-2); color: var(--slate); }
.e-pub { background: var(--green-2); color: var(--green-ink); }
.lockrow { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; }
.lockrow div { display: flex; gap: 10px; align-items: center; background: var(--tile); border-radius: 14px; padding: 9px 12px; font-size: 13px; color: var(--muted); border: 1px solid #CFDFEE; }
.lockrow svg.i { width: 16px; height: 16px; color: var(--sky); flex: none; }
.lockrow b { color: var(--ink); font-weight: 500; }

/* verify */
.side-verify { grid-template-rows: 1fr auto; }
.t-steps { flex-direction: row !important; gap: 24px; align-items: stretch; }
.t-steps .col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.vsteps { list-style: none; display: flex; flex-direction: column; margin-top: auto; padding-top: 18px; }
.vsteps li { display: flex; gap: 14px; align-items: flex-start; position: relative; padding-bottom: 18px; }
.vsteps li:last-child { padding-bottom: 0; }
.vsteps li::before { content: ""; position: absolute; top: 36px; bottom: 2px; right: 17px; width: 2px; background: rgba(255, 255, 255, .12); }
.vsteps li:last-child::before { display: none; }
.vsteps .n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; background: rgba(255, 255, 255, .08); color: var(--on-dark-muted); position: relative; z-index: 1; }
.vsteps li.on .n { background: var(--mint); color: var(--mint-ink); box-shadow: 0 0 0 5px rgba(98, 214, 178, .18); }
.vsteps b { display: block; font-weight: 500; font-size: 15px; color: #D6DDEA; }
.vsteps li.on b { color: #fff; }
.vsteps small { font-size: 13px; color: var(--on-dark-soft); }
.vsteps .now { font-size: 11.5px; color: var(--mint); background: rgba(98, 214, 178, .14); border-radius: var(--pill); padding: 1px 8px; margin-inline-start: 6px; font-weight: 500; }
.mprev { width: 270px; flex: none; background: var(--tile); color: var(--ink); border-radius: 18px; padding: 14px; align-self: center; box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); transform: rotate(1.5deg); }
.mprev .mh { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.mprev .mh .mic { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.mprev .mh b { display: block; font-size: 13px; }
.mprev .mh small { font-size: 11px; color: var(--muted); display: block; }
.mprev .subj { font-size: 13.5px; font-weight: 600; margin-top: 10px; }
.mprev .hi { font-size: 12px; color: var(--muted); margin-top: 2px; }
.mprev .code { display: flex; gap: 5px; direction: ltr; justify-content: center; margin: 12px 0 10px; background: var(--green-2); border-radius: 12px; padding: 9px; }
.mprev .code span { width: 26px; height: 32px; border-radius: 7px; background: var(--tile); display: grid; place-items: center; font-weight: 600; font-size: 16px; color: var(--green-ink); }
.mprev .exp { font-size: 11.5px; color: var(--muted); display: block; margin-top: 6px; }
.tips { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 0; }
.tips li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); line-height: 1.5; }
.tips li > span { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tips li > span svg.i { width: 16px; height: 16px; }
.tips b { display: block; color: var(--ink); font-weight: 500; font-size: 13.5px; }
.t-why { background: var(--grad-green); border-color: #CFE5DC; }
.shieldbig { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 14px; }
.shieldbig .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--tile); color: var(--green); }
.shieldbig p { font-size: 13px; color: var(--muted); }
.shieldbig b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .auth { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .auth-nav .q, .auth-nav .back { display: none; }
  .auth { padding-top: 20px; gap: 12px; }
  .a-card { padding: 24px 18px; border-radius: 20px; }
  .a-card h1 { font-size: 27px; }
  .a-card .lede { font-size: 15px; }
  .a-form { margin-top: 22px; gap: 16px; }
  .a-side { gap: 12px; grid-template-rows: none !important; }
  .a-side > .tile { grid-column: span 2; }
  .sv em { display: none; }
  .tile-dark .badge-mint { position: static; align-self: flex-start; margin-bottom: 10px; order: -1; }
  .t-star, .t-back, .t-steps { flex-direction: column !important; align-items: stretch; gap: 14px; }
  .news, .mprev { width: auto; }
  .mprev { transform: none; }
  .mock-doc { transform: none; margin-top: 14px; }
  .otp-row { gap: 7px; }
  .otp-row input { height: 54px; font-size: 22px; border-radius: 13px; }
  .resend { flex-wrap: wrap; }
  .resend .btn { width: 100%; }
}
.tile-dark .tips li { color: var(--on-dark-muted); }
.tile-dark .tips b { color: #fff; }
.tile-dark .tips { margin-top: auto; padding-top: 16px; }
/* Workaround (core bug, reported): `.site-footer.compact .fbot` resets the .wrap margin/padding. */
.site-footer.compact .fbot.wrap { margin: 0 auto; padding: 0 var(--gutter); }
