/* =====================================================================
   Pay2Pay — Auth (login + sign-up)  ·  auth.css
   Self-contained premium split-screen. RTL. Local fonts. Theme-aware.
   No dependency on WowDash layout. Loaded last → wins.
   ===================================================================== */

:root {
  --au-bg: #070d1a;
  --au-panel: #0e1730;
  --au-panel-2: #131e3c;
  --au-line: rgba(150,180,230,.14);
  --au-line-2: rgba(150,180,230,.26);
  --au-text: #eef3ff;
  --au-muted: #93a3c6;
  --au-muted-2: #6c7da3;
  --au-brand: #19e08a;
  --au-brand-2: #06b675;
  --au-cyan: #36e6ff;
  --au-glass: rgba(255,255,255,.04);
  --au-glass-2: rgba(255,255,255,.07);
  --au-grad: linear-gradient(135deg, #19e08a 0%, #36e6ff 120%);
  --au-shadow: 0 30px 80px -30px rgba(0,0,0,.85);
  --au-brand-shadow: 0 22px 55px -20px rgba(25,224,138,.5);
}
html:not([data-theme="dark"]) {
  --au-bg: #eef2fb;
  --au-panel: #ffffff;
  --au-panel-2: #f5f8ff;
  --au-line: rgba(20,40,90,.10);
  --au-line-2: rgba(20,40,90,.18);
  --au-text: #0c1530;
  --au-muted: #51618a;
  --au-muted-2: #7585aa;
  --au-glass: rgba(10,30,80,.03);
  --au-glass-2: rgba(10,30,80,.05);
  --au-brand: #07a86a;
  --au-brand-2: #06915c;
  --au-cyan: #0bb6d6;
  --au-shadow: 0 24px 60px -28px rgba(20,40,90,.35);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; min-height: 100dvh;
  font-family: 'Yekan Bakh', IRANSans, Tahoma, sans-serif !important;
  background: var(--au-bg) !important; color: var(--au-text);
  -webkit-font-smoothing: antialiased;
}

.au-wrap {
  min-height: 100dvh; width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr;
  overflow: hidden; position: relative;
}

/* ---------------- BRAND SIDE (animated) ---------------- */
.au-brand {
  position: relative; overflow: hidden;
  padding: 56px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(54,230,255,.22), transparent 60%),
    radial-gradient(55% 45% at 15% 20%, rgba(25,224,138,.28), transparent 60%),
    linear-gradient(160deg, #07120f, #061226 60%, #05101f);
  color: #eafff6;
}
/* moving grid */
.au-brand::before {
  content: ""; position: absolute; inset: -2px; opacity: .5;
  background-image:
    linear-gradient(rgba(150,200,255,.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150,200,255,.12) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 30% 30%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 30% 30%, #000, transparent 75%);
  animation: auGrid 18s linear infinite;
}
@keyframes auGrid { to { background-position: 46px 46px; } }
/* floating glow orbs */
.au-orb { position: absolute; border-radius: 50%; filter: blur(8px); pointer-events: none; opacity: .8; }
.au-orb.o1 { width: 240px; height: 240px; top: -60px; inset-inline-start: -40px;
  background: radial-gradient(circle, rgba(25,224,138,.6), transparent 70%); animation: auFloat 9s ease-in-out infinite; }
.au-orb.o2 { width: 320px; height: 320px; bottom: -100px; inset-inline-end: -60px;
  background: radial-gradient(circle, rgba(54,230,255,.5), transparent 70%); animation: auFloat 11s ease-in-out infinite reverse; }
@keyframes auFloat { 50% { transform: translateY(-26px) translateX(12px); } }

.au-brand-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 14px; }
.au-logo {
  width: 52px; height: 52px; border-radius: 16px; background: var(--au-grad); position: relative; flex: none;
  box-shadow: var(--au-brand-shadow);
}
.au-logo::after {
  content: ""; position: absolute; inset: 12px; border: 3px solid rgba(6,18,15,.9);
  border-radius: 8px; border-left-color: transparent; transform: rotate(-45deg);
}
.au-brand-name { font-weight: 900; font-size: 24px; letter-spacing: .3px; }
.au-brand-sub { color: rgba(234,255,246,.7); font-size: 13px; margin-top: 2px; }

.au-hero { position: relative; z-index: 2; }
.au-hero h1 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; line-height: 1.3; margin: 0 0 16px; }
.au-hero h1 .hl { background: var(--au-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.au-hero p { color: rgba(234,255,246,.78); font-size: 16px; line-height: 2; max-width: 440px; margin: 0; }

/* live mock card */
.au-mock {
  position: relative; z-index: 2; margin-top: 30px; max-width: 380px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px; padding: 16px; backdrop-filter: blur(8px);
  animation: auFloat 7s ease-in-out infinite;
}
.au-mock .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.06); margin-bottom: 8px; }
.au-mock .row:last-child { margin-bottom: 0; }
.au-mock .row .t { font-weight: 800; font-size: 13.5px; }
.au-mock .row .s { font-size: 11.5px; color: rgba(234,255,246,.65); }
.au-chip { font-size: 11.5px; padding: 5px 10px; border-radius: 999px; font-weight: 700; background: rgba(255,255,255,.14); white-space: nowrap; }
.au-chip.ok { color: #c6ffe6; background: rgba(25,224,138,.22); position: relative; }
.au-chip.ok::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid rgba(25,224,138,.7); animation: auPulse 1.8s ease-out infinite; }
@keyframes auPulse { to { transform: scale(1.5); opacity: 0; } }

.au-foot { position: relative; z-index: 2; color: rgba(234,255,246,.6); font-size: 12.5px; }

/* ---------------- FORM SIDE ---------------- */
.au-form-side {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 40px 28px; background: var(--au-bg);
}
.au-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(180deg, var(--au-panel-2), var(--au-panel));
  border: 1px solid var(--au-line-2); border-radius: 22px;
  padding: 38px 34px; box-shadow: var(--au-shadow); position: relative;
  animation: auCardIn .6s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes auCardIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.au-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(25,224,138,.55), transparent 40%, rgba(54,230,255,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* compact brand shown on mobile (when brand side hidden) */
.au-mini-brand { display: none; align-items: center; gap: 12px; margin-bottom: 22px; }
.au-mini-brand .au-logo { width: 44px; height: 44px; border-radius: 13px; }

.au-title { font-size: 26px; font-weight: 900; margin: 0 0 8px; letter-spacing: -.4px; }
.au-subtitle { color: var(--au-muted); font-size: 14.5px; margin: 0 0 26px; }

/* fields */
.au-field { margin-bottom: 16px; }
.au-label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--au-text); }
.au-input-wrap { position: relative; }
.au-input-wrap > .au-ic {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  color: var(--au-muted-2); font-size: 20px; display: inline-flex; pointer-events: none; transition: color .2s;
}
.au-input-wrap > .au-eye {
  position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%);
  color: var(--au-muted-2); font-size: 20px; cursor: pointer; display: inline-flex; transition: color .2s;
}
.au-input-wrap > .au-eye:hover { color: var(--au-brand); }
.au-input {
  width: 100%; height: 54px; border-radius: 14px;
  background: var(--au-glass); border: 1px solid var(--au-line-2); color: var(--au-text);
  padding: 0 44px; font-family: inherit; font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.au-input::placeholder { color: var(--au-muted-2); }
.au-input:focus { border-color: var(--au-brand); box-shadow: 0 0 0 4px rgba(25,224,138,.16); background: var(--au-glass-2); }
.au-input:focus ~ .au-ic { color: var(--au-brand); }

/* row: remember + link */
.au-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 4px; }
.au-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; color: var(--au-muted); font-size: 14px; user-select: none; }
.au-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.au-check .box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--au-line-2);
  display: inline-grid; place-items: center; transition: all .18s; flex: none; background: var(--au-glass);
}
.au-check .box::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--au-grad); transform: scale(0); transition: transform .18s; }
.au-check input:checked + .box { border-color: var(--au-brand); }
.au-check input:checked + .box::after { transform: scale(1); }
.au-link { color: var(--au-brand); font-weight: 700; font-size: 14px; text-decoration: none; transition: opacity .2s; }
.au-link:hover { opacity: .8; }

/* button */
.au-btn {
  width: 100%; height: 54px; border: none; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 15.5px; color: #04130c;
  background: var(--au-grad); box-shadow: var(--au-brand-shadow);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .18s, box-shadow .25s, filter .2s; margin-top: 10px;
}
.au-btn:hover { transform: translateY(-2px); box-shadow: 0 26px 60px -18px rgba(25,224,138,.6); }
.au-btn:active { transform: translateY(0); }
.au-btn:disabled { filter: grayscale(.3) brightness(.92); cursor: not-allowed; transform: none; }
.au-btn.success { background: linear-gradient(135deg, #19e08a, #0bb6d6); }

.au-alt { text-align: center; margin-top: 22px; color: var(--au-muted); font-size: 14px; }
.au-alt a { color: var(--au-brand); font-weight: 700; text-decoration: none; }

/* alerts */
.au-alert { border-radius: 14px; padding: 13px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px; border: 1px solid transparent; white-space: pre-line; }
.au-alert.danger  { background: rgba(239,68,68,.12);  color: #ff9a9a; border-color: rgba(239,68,68,.3); }
.au-alert.success { background: rgba(25,224,138,.12); color: #7ff0bd; border-color: rgba(25,224,138,.3); }
.au-alert.warning { background: rgba(245,179,8,.12);  color: #ffd479; border-color: rgba(245,179,8,.3); }
.au-alert.d-none { display: none; }

/* OTP */
.au-otp { display: flex; gap: 10px; justify-content: center; margin: 18px 0; direction: ltr; }
.au-otp .otp-input {
  width: 50px; height: 58px; text-align: center; font-size: 22px; font-weight: 800;
  border-radius: 14px; background: var(--au-glass); border: 1px solid var(--au-line-2); color: var(--au-text);
  outline: none; transition: border-color .2s, box-shadow .2s, transform .12s;
}
.au-otp .otp-input:focus { border-color: var(--au-brand); box-shadow: 0 0 0 4px rgba(25,224,138,.16); transform: translateY(-2px); }

.au-otp-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.au-ghostbtn { background: none; border: none; color: var(--au-muted); font-family: inherit; font-size: 13.5px; cursor: pointer; font-weight: 600; transition: color .2s; display: inline-flex; align-items: center; gap: 5px; }
.au-ghostbtn:hover:not(:disabled) { color: var(--au-brand); }
.au-ghostbtn:disabled { opacity: .55; cursor: default; }
.au-otp-info { color: var(--au-muted); font-size: 14px; text-align: center; margin-bottom: 4px; }
.au-otp-info strong { color: var(--au-text); direction: ltr; display: inline-block; }

.d-none { display: none !important; }

/* theme toggle floating */
.au-theme {
  position: fixed; top: 18px; inset-inline-end: 18px; z-index: 10;
  width: 44px; height: 44px; border-radius: 12px; cursor: pointer;
  background: var(--au-glass-2); border: 1px solid var(--au-line-2); color: var(--au-brand);
  display: inline-flex; align-items: center; justify-content: center; transition: transform .15s, border-color .2s;
}
.au-theme:hover { transform: translateY(-2px); border-color: var(--au-brand); }

/* ---------------- responsive ---------------- */
@media (max-width: 920px) {
  .au-wrap { grid-template-columns: 1fr; }
  .au-brand { display: none; }
  .au-mini-brand { display: flex; }
  .au-form-side { padding: 24px 18px; min-height: 100dvh; }
}
@media (max-width: 440px) {
  .au-card { padding: 28px 20px; }
  .au-otp .otp-input { width: 42px; height: 50px; font-size: 19px; }
}

/* ===== Multi-step register additions ===== */
.au-steps{display:flex;gap:6px;margin:6px 0 20px;justify-content:space-between}
.au-step{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;position:relative;opacity:.5;transition:.25s}
.au-step span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;font-weight:900;background:var(--au-input-bg,#f1f5f9);border:2px solid transparent;font-size:14px}
.au-step i{font-style:normal;font-size:11.5px;font-weight:700;color:var(--au-muted)}
.au-step.active{opacity:1}
.au-step.active span{background:linear-gradient(135deg,#0b4bff,#6a00ff);color:#fff}
.au-step.done{opacity:1}
.au-step.done span{background:rgba(18,201,138,.15);border-color:#12c98a;color:#0a8458}

.au-otp-input{text-align:center;letter-spacing:10px;font-size:22px;font-weight:900}
.au-otp-actions{display:flex;justify-content:space-between;margin:-4px 0 14px}
.au-link{background:none;border:none;color:#0b4bff;font-family:inherit;font-size:12.5px;cursor:pointer;font-weight:700}
.au-link:disabled{color:var(--au-muted);cursor:default}

.au-verify-box{display:flex;flex-direction:column;align-items:center;gap:14px;padding:30px 10px;text-align:center}
.au-verify-spinner{width:42px;height:42px;border:3px solid rgba(11,75,255,.18);border-top-color:#0b4bff;border-radius:50%;animation:auSpin 1s linear infinite}
@keyframes auSpin{to{transform:rotate(360deg)}}
.au-verify-text{font-size:13.5px;color:var(--au-muted);font-weight:600}

.au-identity-card{background:var(--au-input-bg,#f8fafc);border:1px solid rgba(120,140,180,.18);border-radius:16px;padding:16px;margin-bottom:16px}
.au-id-row{display:flex;align-items:center;gap:12px}
.au-id-row iconify-icon{font-size:38px;color:#12c98a}
.au-id-row.err iconify-icon{color:#ef4444}
.au-id-row b{display:block;font-size:15px;font-weight:900}
.au-id-row span{display:block;font-size:13px;color:var(--au-muted)}
.au-id-note{font-size:12px;color:var(--au-muted);margin-top:10px;line-height:1.8}

.au-alert.ok{background:rgba(18,201,138,.12);color:#0a8458;border:1px solid rgba(18,201,138,.3)}
.au-alert.warn{background:rgba(240,160,32,.12);color:#b9760a;border:1px solid rgba(240,160,32,.3)}
.au-alert.err{background:rgba(239,68,68,.10);color:#dc2626;border:1px solid rgba(239,68,68,.28)}

/* --- Jalali date selects --- */
.au-date-row{display:flex;gap:8px}
.au-date-sel{min-width:0;width:100%;cursor:pointer;text-align:center;
    padding-right:8px;padding-left:26px;font-size:14px;
    background-position:left .5rem center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
#birthYear{flex:1.2 1 0}
#birthMonth{flex:1.3 1 0}
#birthDay{flex:.9 1 0}
.au-date-sel option{color:#111}

/* --- password show/hide --- */
.au-pass-wrap{position:relative;display:flex;align-items:center}
.au-pass-wrap .au-input{flex:1;padding-left:42px}
.au-pass-toggle{position:absolute;left:8px;top:50%;transform:translateY(-50%);background:transparent;border:0;cursor:pointer;color:var(--au-muted);font-size:20px;display:flex;align-items:center;justify-content:center;padding:6px;border-radius:8px;transition:color .15s,background .15s}
.au-pass-toggle:hover{color:var(--au-text,#eafff6);background:rgba(255,255,255,.06)}
