/* Auth pages (login, signup, forgot-password) — moved out of includes/_auth-theme.php on 04 Oct 2026 so it caches. */
body.site-auth-page { background-color: var(--c-dark); background-image: var(--c-texture); }
body.site-auth-page::before {
  content: ""; position: fixed; top: 0; left: 0; right: 0;
  height: 100vh; height: 100lvh; z-index: -1; pointer-events: none;
  background:
    /* Do GOLD wash aur ek neela (37,150,190 — palette ka rang hi nahi tha) hata diye. */
    radial-gradient(820px 640px at 110% -10%, rgba(var(--c-text-rgb), 0.045), transparent 54%),
    radial-gradient(720px 560px at -14% 118%, rgba(var(--c-text-rgb), 0.03), transparent 52%),
    /* Ye gradient pehle THOS rangon ka tha (dark -> dark-light -> surface), jo body ka */
    linear-gradient(180deg, rgba(var(--c-shadow-rgb), 0) 0%, rgba(var(--c-shadow-rgb), .14) 58%, rgba(var(--c-shadow-rgb), .24) 100%);
}
body.site-auth-page .site-auth-section { background: transparent; padding: 44px 0 64px; }

/* 2. AUTH SHELL — do column: BAAYAN identity, DAAYAN form. Ek hi satah. */
body.site-authsplit .site-auth-section > .container { max-width: 960px; }
body.site-authsplit .auth-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: stretch;
  background: var(--ax-glass);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid var(--ax-glass-bd);
  border-radius: var(--ax-r);
  box-shadow: var(--ax-shadow);
  overflow: hidden;
}

/* (Purana do-column identity panel — .authx__aside / __mark / __eyebrow / __title / */

/* ── DAAYAN: form ─────────────────────────────────────────────────────────── */
body.site-authsplit .auth-split__form { padding: 40px 36px; min-width: 0; }
/* card ke andar form apna doosra sheesha na banaye — blur bhi band karna zaroori hai, */
body.site-auth-page .ctl .login_box {
  background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}

/* (Section 3 — forgot/reset ka purana single-column card aur .site-auth-heading ke */

/* 4. FIELDS — dashboard SETTINGS ki naap (44 / r9 / var(--c-border) / var(--c-text) / 14px) */
body.site-auth-page .login_box label {
  font-size: 14px; font-weight: 500; color: var(--ax-navy); margin-bottom: 6px;
}
body.site-auth-page .login_box input.form-control,
body.site-auth-page .login_box textarea.form-control {
  height: var(--ax-field); min-height: var(--ax-field);
  background: rgba(var(--c-surface-rgb), 0.88);
  border: 1px solid var(--ax-line);
  border-radius: var(--ax-r-sm);
  font-size: 14px; color: var(--ax-ink);
}
body.site-auth-page .login_box input.form-control::placeholder { color: var(--c-muted); }
body.site-auth-page .login_box input.form-control:hover { border-color: var(--c-border); }
body.site-auth-page .login_box input.form-control:focus {
  background: var(--c-surface); border-color: var(--ax-pink);
  box-shadow: none; outline: none;
}
body.site-auth-page :is(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--ax-pink); outline-offset: 2px;
}

/* ═══ 5. BUTTONS — dashboard ka radius; CTA 44px (spec 44-48) ═══ */
body.site-auth-page .login_box button.login_btn,
body.site-auth-page .login_box a.login_btn,
body.site-auth-page .authx__foot a.login_btn {
  height: var(--ax-field); min-height: var(--ax-field);
  border-radius: var(--ax-r-sm);
  box-shadow: 0 8px 20px -12px rgba(var(--c-dark-rgb), 0.55);
}
body.site-auth-page .login_box a.login_btn--outline,
body.site-auth-page .authx__foot a.login_btn--outline {
  background: rgba(var(--c-surface-rgb), 0.72); box-shadow: none;
}

/* remember-me + forgot ek hi row me */
body.site-auth-page .login_box .form-check {
  display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; padding: 0;
}
body.site-auth-page .login_box .form-check-input {
  /* Shakl neeche wale ON/OFF TOGGLE block se aati hai (dono jagah ek hi switch) — */
  margin: 0;
}
body.site-auth-page .login_box .form-check-label {
  margin: 0; font-size: 14px; color: var(--ax-navy); cursor: pointer;
  display: inline-flex; align-items: center; min-height: 44px;
}
body.site-auth-page .authx__forgot {
  font-size: 14px; font-weight: 500; color: var(--ax-pink); text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
body.site-auth-page .authx__forgot:hover { text-decoration: underline; }
body.site-auth-page a.tf-color {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600;
}

/* neeche ka secondary — koi divider line nahi, sirf jagah */
body.site-auth-page .authx__foot { margin-top: 20px; text-align: center; }
body.site-auth-page .authx__foot > span {
  display: block; margin-bottom: 10px; font-size: 14px; color: var(--ax-muted);
}
body.site-auth-page .no-account { display: none; }

/* ═══ 6. SIGNUP — password niyam + ek legal component ═══ */
body.site-auth-page .login_box .site-auth__pw-rules {
  background: none; border: 0;
  border-left: 2px solid var(--c-border);
  border-radius: 0;
  padding: 2px 0 2px 12px;
  margin-top: 10px;
}
body.site-auth-page .login_box .site-auth__pw-rules p {
  font-size: 12px; font-weight: 600; color: var(--c-muted); margin: 0 0 6px;
  letter-spacing: .04em; text-transform: uppercase;
}
body.site-auth-page .login_box .site-auth__pw-rules ul {
  display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none;
}
body.site-auth-page .login_box .site-auth__pw-rules li { color: var(--ax-muted); font-size: 13px; }
body.site-auth-page .login_box .site-auth__pw-rules li strong { color: var(--ax-navy); font-weight: 600; }

body.site-auth-page .authx__legal {
  margin: 18px 0 0; padding: 14px 16px;
  background: rgba(var(--c-surface-light-rgb), 0.55);
  border: 1px solid var(--ax-line); border-radius: var(--ax-r-sm);
  display: flex; flex-direction: column; gap: 12px;
}
body.site-auth-page .authx__consent {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer;
}
/* 🔴 `body.site-auth-page .login_box label span` labels ke laal `*` ko gulabi karta hai — */
body.site-auth-page .login_box label span.authx__consent-text {
  font-size: 14px; line-height: 1.55; color: var(--ax-muted); padding-top: 2px;
}
body.site-auth-page .login_box label span.authx__consent-text a { color: var(--ax-pink); font-weight: 500; }
body.site-auth-page .login_box label span.authx__opt {
  font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  color: var(--c-muted);   /* var(--c-muted) par sirf 2.90:1 tha — AA ke liye gehra kiya */
  margin-left: 4px;
}

/* ═══ 7. SEMANTIC STATES — dashboard jaise, bade laal dabbe nahi ═══ */
body.site-auth-page [role="alert"],
body.site-auth-page [role="status"] {
  /* 10px — wahi radius jo input, button aur baaki chhote dabbon ka hai */
  border-radius: var(--ctl-r, 10px) !important;
  padding: 12px 14px !important;
  font-size: 14px !important;
  align-items: flex-start !important;
}

/* ── SECURITY CHECK — Cloudflare Turnstile ke liye ek saaf, reserved jagah ── */
body.site-auth-page .ctl__sec {
  margin: 18px 0 2px; padding: 12px 14px 14px;
  border: 1px solid var(--ax-line); border-radius: var(--ctl-r, 10px);
  background: var(--c-surface-light);
}
body.site-auth-page .ctl__sec-label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--c-muted);   /* var(--c-muted) par sirf 2.9:1 tha — AA ke liye gehra */
}
body.site-auth-page .ctl__sec-label i { font-size: 12px; color: var(--ax-pink); }
/* Widget ki apni naap 300x65 hai — usse chhote khaane par wo bahar nikal jaata tha */
body.site-auth-page .ctl__sec .sk-turnstile { margin: 0 !important; min-height: 65px; }
body.site-auth-page .ctl__sec iframe { max-width: 100%; }

/* ── Password ke niyam — compact, chaar chip ── */
body.site-auth-page .ctl .login_box .site-auth__pw-rules {
  margin: 10px 0 2px; padding: 0;
  background: none; border: 0; border-radius: 0;
}
body.site-auth-page .ctl .login_box .site-auth__pw-rules p {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0;
}
/* patti */
body.site-auth-page .ctl .login_box .site-auth__pw-rules .pw-meter__txt {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; line-height: 1; color: var(--c-accent);
}
body.site-auth-page .ctl .login_box .site-auth__pw-rules .pw-meter__txt:empty { display: none; }
body.site-auth-page .ctl .login_box .site-auth__pw-rules[data-score="4"] .pw-meter__txt  { color: var(--c-success); }
/* niyam — 2x2 */
body.site-auth-page .ctl .login_box .site-auth__pw-rules ul {
  /* main.css isi ul par flex/column deta hai — yahan grid, har chaudai par do column */
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px;
  margin: 0; padding: 0; list-style: none;
}
body.site-auth-page .ctl .login_box .site-auth__pw-rules li {
  display: flex; align-items: center; gap: 7px;
  padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 12.5px; font-weight: 500; color: var(--c-muted); line-height: 1.4;
  transition: color .15s;
}
body.site-auth-page .ctl .login_box .site-auth__pw-rules li i {
  font-size: 13px; line-height: 1; color: rgba(var(--c-text-rgb), .28); transition: color .15s;
}
body.site-auth-page .ctl .login_box .site-auth__pw-rules li.is-met   { color: var(--c-text); }
/* `!important` zaroori — fa-subset.css me `.fa-regular { font-weight: 400 !important }` hai; */
body.site-auth-page .ctl .login_box .site-auth__pw-rules li.is-met i { color: var(--c-success); font-weight: 900 !important; }

/* ── Legal / consent — signup ── */
body.site-auth-page .ctl .authx__legal {
  margin: 16px 0 0; padding: 14px 16px;
  background: var(--c-surface-light); border: 1px solid var(--ax-line); border-radius: var(--ctl-r, 10px);
  gap: 12px;
}
/* Checkbox wahi hai jo Login ke "Remember me" par hai — ek hi component, do jagah. */
body.site-auth-page .ctl .authx__legal .form-check-input { margin: 1px 0 0; }
/* Koi click-ring nahi (owner): tick ka rang badalna hi kaafi feedback hai — Chrome click par bhi */
body.site-auth-page .ctl .authx__legal .form-check-input:focus,
body.site-auth-page .ctl .authx__legal .form-check-input:focus-visible {
  outline: none; box-shadow: none;
}
/* poora row dabaane laayak — 18px ka dabba akela chhota padta hai */
body.site-auth-page .ctl .authx__consent { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; }
body.site-auth-page .ctl .authx__consent .authx__consent-text { padding-top: 0; }
@media (max-width: 767px) {
  /* shell ek column: identity upar ek compact patti, phir form */
  body.site-authsplit .auth-split { grid-template-columns: minmax(0, 1fr); }
  /* (purane do-column panel ke 6 mobile rules HATAYE — un classes ka markup me */
  body.site-authsplit .auth-split__form { padding: 22px 20px 24px; }
  body.site-auth-page .site-auth-section { padding: 20px 0 44px; }
  body.site-auth-page .site-auth-section > .container { padding-left: 16px; padding-right: 16px; }
  body.site-auth-page:not(.site-authsplit) .login_box { padding: 22px 18px 24px; }
}

@media (hover: none) and (pointer: coarse) {
  /* `.sk-modal__panel .sk-btn` yahan se HATAYA — wo modal ka hissa hai aur */
  body.site-auth-page .login_box button.login_btn,
  body.site-auth-page .authx__foot a.login_btn,
  body.site-auth-page .login_box input.form-control { height: 46px; min-height: 46px; }
  body.site-auth-page .site-auth__pw-toggle { min-width: 44px; min-height: 44px; }
}

/* 11. LOGIN CARD (.ctl) — bada card: upar bold rangeen band, neeche safed form, */
body.ctl-page { --ctl-topbar: 71px; }
body.ctl-page .site-auth-section {
  display: flex; align-items: center;
  min-height: calc(100vh - var(--ctl-topbar));
  min-height: calc(100lvh - var(--ctl-topbar));
  padding: 40px 0 56px;
}
/* 🔴 Container ki chaudai HAR auth page ke liye ek hi. Pehle forgot/reset ka */
body.ctl-page .site-auth-section > .container { width: 100%; max-width: 592px; }
@media (min-width: 768px) and (max-height: 820px) {
  body.ctl-page .site-auth-section { padding: 20px 0 28px; }
}

/* SHELL = sirf ek patla wrapper (chaudai + beech me tikaana). Asli card PANEL hai. */
body.site-auth-page .auth-split.ctl {
  --ctl-r: 10px;          /* input / button / chhote dabbe — Login wala hi radius */
  display: block;
  max-width: 560px; margin-inline: auto;
  padding: 0;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  overflow: visible;
}

/* ── LOGIN PANEL — yahi card hai ── */
body.site-auth-page .ctl__panel {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 18px;
  box-shadow: var(--elev-2);
  overflow: hidden;
}

/* ── SAFED FORM AREA ────────────────────────────────────────────────────── */
body.site-auth-page .auth-split.ctl .ctl__body {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 28px 32px 28px;
  background: var(--c-surface);
}
/* Frame ke do kone. Ye poori tarah KONE me hain — 470px ka form beech me hai, */
body.site-auth-page .ctl__body > * { max-width: none; }

/* ── FORM KI VERTICAL LAY ────────────────────────────────────────────────── */
body.site-auth-page .ctl .login_box .mb-4 { margin-bottom: 18px !important; }
body.site-auth-page .ctl .login_box .d-flex.justify-content-between { margin-top: 2px; }
body.site-auth-page .ctl .login_box .login_btn.mt-4 { margin-top: 18px !important; }
body.site-auth-page .ctl .sk-turnstile { margin: 12px 0 0 !important; }

/* ── INPUT + uska icon-block ─────────────────────────────────────────────── */
body.site-auth-page .ctl .login_box .ctl__field { position: relative; }
body.site-auth-page .ctl .login_box .ctl__ficon {
  position: absolute; left: 1px; top: 1px; bottom: 1px; width: 46px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  /* 🔴 Owner, 12 Sep: "input aisa chahiye" — post-ad page jaisa. */
  background: transparent;
  border-right: 0;
  color: var(--c-muted); font-size: 15px;
  pointer-events: none;   /* click hamesha input par jaaye */
  transition: background .14s, color .14s, border-color .14s;
}
body.site-auth-page .ctl .login_box .ctl__field:focus-within .ctl__ficon {
  /* Focus par pehle gold ka 12% wash tha (kaali satah par #38301f = 45% olive). */
  background: transparent; color: var(--c-text);
}
/* Khaana post-ad ke naap par: wahi border, satah, radius aur focus ki lakeer */
body.site-auth-page .ctl .login_box input.form-control {
  height: 48px; min-height: 48px;
  padding: 12px 14px 12px 46px !important;
  font-size: 15px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  /* 🔴 Owner 12 Sep: "input ke liye aise banao depth me jaise ad post me hai". */
  box-shadow: var(--elev-in);
}
body.site-auth-page .ctl .login_box input.form-control:focus {
  border-color: rgba(var(--c-accent-rgb), 0.7);
  background: var(--c-surface);
  box-shadow: none; outline: none;
}
body.site-auth-page .ctl .login_box .site-auth__password-wrap input.form-control {
  padding-right: 50px !important;   /* aankh wale button ki jagah */
}
/* 🔴 `:not(.form-check-label)` ZAROORI hai. "Remember me" bhi ek <label> hai — */
body.site-auth-page .ctl .login_box label:not(.form-check-label):not(.ct-switch) {
  font-size: 14px; font-weight: 600; color: var(--ax-navy); margin-bottom: 8px;
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
body.site-auth-page .ctl .login_box button.login_btn {
  /* ⚠ `display:block` + `width:auto` = POORI chaudai (block khud phailta hai) — yahi */
  display: flex; align-items: center; justify-content: center;
  width: fit-content; width: -moz-fit-content; min-width: 180px;
  margin: 4px auto 0;
  height: 40px; min-height: 40px; padding: 0 28px;
  border-radius: 8px;
  background: var(--c-surface-light);
  background-image: none;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 13.5px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  box-shadow: var(--elev-1);
}
body.site-auth-page .ctl .login_box button.login_btn:hover {
  background: rgba(var(--c-text-rgb), 0.12);
  background-image: none;
  border-color: var(--c-muted);
  box-shadow: var(--elev-2);
}
body.site-auth-page .ctl .authx__foot > span { margin-bottom: 8px; }
/* Secondary bhi primary ke NAAP par — warna primary chhota aur ye poori chaudai, */
body.site-auth-page .ctl .authx__foot a.login_btn {
  /* .authx__foot flex-column hai — `align-self: center` na ho to bachcha poori chaudai */
  display: inline-flex; align-items: center; justify-content: center;
  align-self: center; width: fit-content; width: -moz-fit-content; min-width: 180px;
  height: 36px; min-height: 36px; padding: 0 24px;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  margin-top: 0;
}
body.site-auth-page .ctl .authx__foot { text-align: center; }

/* ── ACTIONS ROW — owner 12 Sep: "Create account / Or / Sign in ko side by side" ── */
body.site-auth-page .ctl .login_box .authx__actions {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px 14px; margin-top: 22px;
}
body.site-auth-page .ctl .login_box .authx__actions button.login_btn { margin: 0; }
body.site-auth-page .ctl .authx__actions .authx__foot { display: contents; }
body.site-auth-page .ctl .authx__actions .authx__foot > span {
  display: block; margin: 0; font-size: 13px; color: var(--c-muted); line-height: 1;
}
body.site-auth-page .ctl .authx__actions .authx__foot a.login_btn {
  height: 40px; min-height: 40px; margin: 0;
}
@media (max-width: 479px) {
  body.site-auth-page .ctl .login_box .authx__actions { flex-direction: column; gap: 8px; }
}
@media (max-width: 767px) {
  /* upar wala section-10 ka padding is naye rule se haar jaata hai (dono ki */
  body.ctl-page .site-auth-section { padding: 20px 0 44px; }
  body.site-auth-page .auth-split.ctl { max-width: none; }
  body.site-auth-page .ctl__panel { border-radius: 16px; }
  body.site-auth-page .auth-split.ctl .ctl__body { padding: 22px 18px 24px; }
  body.site-auth-page .ctl__body > * { max-width: none; }
}

@media (hover: none) and (pointer: coarse) {
  body.site-auth-page .ctl .login_box input.form-control { height: 48px; min-height: 48px; }
  body.site-auth-page .ctl .login_box button.login_btn   { height: 52px; min-height: 52px; }
  body.site-auth-page .ctl .authx__foot a.login_btn      { height: 48px; min-height: 48px; }
  body.site-auth-page .ctl .authx__actions button.login_btn { height: 48px; min-height: 48px; }
}
/* ON/OFF SWITCH — admin ke DESIGN SYSTEM se (owner 12 Sep) */
body.site-auth-page .ctl .ct-switch { flex: 0 0 auto; margin-bottom: 0; }
body.site-auth-page .ctl .authx__legal .ct-switch { margin-top: 0; }
/* Native checkbox chhupa hua hai (.ct-switch input) — uske purane naap wale rule */

/* Signup chooser: User or Escort (owner, 13 Oct 2026); palette tokens only, 1px borders, no shadows */
.sgc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sgc__card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 16px 20px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-surface-light); color: var(--c-text); text-align: center; text-decoration: none; transition: border-color .15s ease, background-color .15s ease; }
.sgc__card:hover, .sgc__card:focus-visible { border-color: rgba(var(--c-accent-rgb), .55); background: var(--c-tint); color: var(--c-text); }
.sgc__card:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.sgc__ico { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin-bottom: 4px; border: 1px solid rgba(var(--c-accent-rgb), .45); border-radius: 50%; background: var(--c-tint); color: var(--c-accent); font-size: 32px; }
.sgc__title { font-size: 18px; font-weight: 600; color: var(--c-text); }
.sgc__text { font-size: 13.5px; line-height: 1.45; color: var(--c-text-muted); }
.sgc__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--c-accent); font-size: 14px; font-weight: 600; }
.sgc__foot { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--c-text-muted); }
.sgc__foot a, .sgc__as a { color: var(--c-accent); }
.sgc__as { margin: 8px 0 0; font-size: 13px; color: var(--c-text-muted); }
@media (max-width: 479px) { .sgc { grid-template-columns: 1fr; } }
