/* Navexa Auth UX v48
   Dedicated, lightweight overrides for login/register/OTP/reset pages.
   Loaded only by authentication templates. */

.nx-auth-v2{
  --nx-auth-blue:#2563eb;
  --nx-auth-blue-deep:#1d4ed8;
  --nx-auth-green:#16a34a;
  --nx-auth-green-2:#22c55e;
  --nx-auth-ink:#0f172a;
  --nx-auth-muted:#64748b;
  --nx-auth-line:#e2e8f0;
  --nx-auth-soft:#f8fafc;
  --nx-auth-soft-blue:#eff6ff;
  --nx-auth-soft-green:#f0fdf4;
  --nx-auth-radius:24px;
  padding-block:clamp(.85rem,2vw,1.5rem);
}

.nx-auth-v2 .nx-auth-wrap{
  width:min(100%, 980px);
  margin-inline:auto;
}

.nx-auth-v2 .nx-auth-wrap--compact{width:min(100%, 610px)}

.nx-auth-v2 .nx-auth-shell{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(226,232,240,.96);
  border-radius:var(--nx-auth-radius);
  background:#fff;
  box-shadow:0 24px 70px rgba(15,23,42,.10);
}

.nx-auth-v2 .nx-auth-shell::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:3px;
  background:linear-gradient(90deg,var(--nx-auth-green-2),var(--nx-auth-blue),#4f46e5);
  z-index:4;
}

.nx-auth-v2 .nx-auth-layout{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(280px,.88fr);
  min-height:570px;
}

.nx-auth-v2 .nx-auth-layout--register{min-height:620px}

.nx-auth-v2 .nx-auth-showcase{
  position:relative;
  overflow:hidden;
  min-width:0;
  padding:clamp(1.8rem,3vw,2.55rem);
  color:#fff;
  background:
    radial-gradient(circle at 15% 18%,rgba(255,255,255,.24),transparent 28%),
    radial-gradient(circle at 88% 82%,rgba(34,197,94,.28),transparent 32%),
    linear-gradient(145deg,#1d4ed8 0%,#4338ca 55%,#15803d 115%);
}

.nx-auth-v2 .nx-auth-showcase--register{
  background:
    radial-gradient(circle at 15% 18%,rgba(255,255,255,.24),transparent 28%),
    radial-gradient(circle at 88% 82%,rgba(34,197,94,.28),transparent 32%),
    linear-gradient(145deg,#1d4ed8 0%,#4338ca 35%,#15803d 115%);
}

.nx-auth-v2 .nx-auth-showcase::after{
  content:"";
  position:absolute;
  inset:18px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:20px;
  pointer-events:none;
}

.nx-auth-v2 .nx-auth-showcase__inner{
  position:relative;
  z-index:1;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:1.5rem;
}

.nx-auth-v2 .nx-auth-brand{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  margin-bottom:1.7rem;
  font-size:.84rem;
  font-weight:900;
}

.nx-auth-v2 .nx-auth-brand__icon{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:12px;
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(6px);
}

.nx-auth-v2 .nx-auth-showcase h2{
  margin:0 0 .75rem;
  color:#fff;
  font-size:clamp(1.25rem,2.3vw,1.7rem);
  font-weight:950;
  line-height:1.65;
}

.nx-auth-v2 .nx-auth-showcase p{
  margin:0;
  color:rgba(255,255,255,.84);
  font-size:.82rem;
  line-height:1.95;
}

.nx-auth-v2 .nx-auth-benefits{
  display:grid;
  gap:.8rem;
  padding:0;
  margin:1.55rem 0 0;
  list-style:none;
}

.nx-auth-v2 .nx-auth-benefits li{
  display:flex;
  align-items:flex-start;
  gap:.65rem;
  color:rgba(255,255,255,.94);
  font-size:.78rem;
  font-weight:750;
  line-height:1.8;
}

.nx-auth-v2 .nx-auth-benefits i{
  margin-top:.18rem;
  color:#bbf7d0;
  font-size:1rem;
}

.nx-auth-v2 .nx-auth-showcase__foot{
  display:flex;
  align-items:center;
  gap:.55rem;
  padding-top:1rem;
  border-top:1px solid rgba(255,255,255,.14);
  color:rgba(255,255,255,.74);
  font-size:.7rem;
  line-height:1.8;
}

.nx-auth-v2 .nx-auth-form-pane{
  min-width:0;
  display:flex;
  align-items:center;
  padding:clamp(1.3rem,3vw,2.5rem);
  background:linear-gradient(180deg,#fff,#fcfdff);
}

.nx-auth-v2 .nx-auth-form-inner{width:100%;max-width:430px;margin-inline:auto}

.nx-auth-v2 .nx-auth-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.35rem .6rem;
  border:1px solid #dbeafe;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.66rem;
  font-weight:900;
  line-height:1.5;
}

.nx-auth-v2 .nx-auth-form-title{
  margin:.8rem 0 .35rem;
  color:var(--nx-auth-ink);
  font-size:1.28rem;
  font-weight:950;
  letter-spacing:-.35px;
}

.nx-auth-v2 .nx-auth-form-subtitle{
  margin:0 0 1.15rem;
  color:var(--nx-auth-muted);
  font-size:.75rem;
  line-height:1.9;
}

.nx-auth-v2 .nx-auth-mobile-value{
  display:none;
  align-items:center;
  gap:.7rem;
  margin-bottom:1rem;
  padding:.7rem .8rem;
  border:1px solid #bbf7d0;
  border-radius:16px;
  background:linear-gradient(135deg,#f0fdf4,#f8fafc);
}

.nx-auth-v2 .nx-auth-mobile-value__icon{
  width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;
  border-radius:11px;background:#dcfce7;color:#15803d;font-size:1rem;
}

.nx-auth-v2 .nx-auth-mobile-value strong{display:block;color:#166534;font-size:.72rem}
.nx-auth-v2 .nx-auth-mobile-value small{display:block;margin-top:.12rem;color:#64748b;font-size:.64rem;line-height:1.7}

.nx-auth-v2 .nx-auth-mode-switch{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:.35rem;
  margin-bottom:1rem;
  padding:.28rem;
  border:1px solid var(--nx-auth-line);
  border-radius:14px;
  background:#f8fafc;
}

.nx-auth-v2 .nx-auth-mode-switch a{
  min-height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  padding:.45rem .65rem;
  border-radius:10px;
  color:#64748b !important;
  font-size:.69rem;
  font-weight:850 !important;
  text-decoration:none;
  transition:background-color .15s ease,color .15s ease,box-shadow .15s ease;
}

.nx-auth-v2 .nx-auth-mode-switch a.is-active{
  color:#0f172a !important;
  background:#fff;
  box-shadow:0 4px 12px rgba(15,23,42,.07);
}

.nx-auth-v2 .nx-auth-field{margin-bottom:.9rem}

.nx-auth-v2 .nx-auth-field > label,
.nx-auth-v2 .nx-auth-field .form-label{
  display:block;
  margin-bottom:.4rem;
  color:#334155;
  font-size:.72rem;
  font-weight:900;
}

.nx-auth-v2 .form-control{
  min-height:46px;
  border:1px solid #dbe2ea;
  border-radius:13px;
  background:#fff;
  color:#0f172a !important;
  padding:.62rem .8rem;
  font-size:.76rem !important;
  box-shadow:0 1px 1px rgba(15,23,42,.02);
  transition:border-color .15s ease,box-shadow .15s ease,background-color .15s ease;
}

.nx-auth-v2 .form-control::placeholder{color:#a0aec0 !important;font-size:.72rem !important}
.nx-auth-v2 .form-control:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.11)}

.nx-auth-v2 .input-group{border-radius:13px;box-shadow:none}
.nx-auth-v2 .input-group .form-control{border-radius:0 13px 13px 0 !important}
.nx-auth-v2 .input-group .btn{
  min-width:48px;
  min-height:46px;
  display:grid;
  place-items:center;
  border:1px solid #dbe2ea !important;
  border-right:0 !important;
  border-radius:13px 0 0 13px !important;
  background:#f8fafc !important;
  color:#64748b !important;
  box-shadow:none !important;
  transform:none !important;
}
.nx-auth-v2 .input-group:focus-within .form-control,
.nx-auth-v2 .input-group:focus-within .btn{border-color:#60a5fa !important}

.nx-auth-v2 .nx-auth-help{
  display:flex;
  align-items:flex-start;
  gap:.35rem;
  margin-top:.35rem;
  color:#64748b;
  font-size:.62rem;
  line-height:1.7;
}

.nx-auth-v2 .nx-auth-help.is-valid{color:#15803d}
.nx-auth-v2 .nx-auth-help.is-invalid{color:#b91c1c}

.nx-auth-v2 .text-danger.small{
  margin-top:.32rem;
  color:#b91c1c !important;
  font-size:.62rem !important;
  font-weight:700;
  line-height:1.7;
}

.nx-auth-v2 .nx-auth-captcha{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:.55rem;
  align-items:center;
  padding:.55rem;
  border:1px solid #e2e8f0;
  border-radius:15px;
  background:#f8fafc;
}

.nx-auth-v2 .nx-auth-captcha__question{
  min-width:92px;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:.4rem .65rem;
  border:1px dashed #bfdbfe;
  border-radius:11px;
  background:#eff6ff;
  color:#1e3a8a;
  direction:ltr;
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size:.78rem;
  font-weight:900;
}

.nx-auth-v2 .nx-auth-captcha .form-control{margin:0}

.nx-auth-v2 .nx-auth-submit{
  min-height:47px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  margin-top:1rem;
  border:0 !important;
  border-radius:13px !important;
  background:linear-gradient(135deg,#15803d,#22c55e) !important;
  color:#fff !important;
  font-size:.76rem;
  font-weight:900;
  box-shadow:0 12px 24px rgba(22,163,74,.18) !important;
  transform:none !important;
}

.nx-auth-v2 .nx-auth-submit:hover{filter:brightness(.98)}
.nx-auth-v2 .nx-auth-submit:disabled{opacity:.68;cursor:wait}

.nx-auth-v2 .nx-auth-inline-actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.8rem;
  margin-top:.8rem;
  font-size:.66rem;
}

.nx-auth-v2 .nx-auth-inline-actions a,
.nx-auth-v2 .nx-auth-footer a{font-weight:850 !important;text-decoration:none}

.nx-auth-v2 .nx-auth-divider{
  display:flex;
  align-items:center;
  gap:.65rem;
  margin:1.1rem 0 .85rem;
  color:#94a3b8;
  font-size:.6rem;
}
.nx-auth-v2 .nx-auth-divider::before,.nx-auth-v2 .nx-auth-divider::after{content:"";height:1px;flex:1;background:#e2e8f0}

.nx-auth-v2 .nx-auth-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  color:#64748b;
  font-size:.65rem;
}

.nx-auth-v2 .nx-auth-terms{
  position:relative;
  display:flex;
  align-items:flex-start;
  gap:.55rem;
  padding:.7rem .75rem;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#f8fafc;
  color:#475569;
  font-size:.66rem;
  line-height:1.8;
}

.nx-auth-v2 .nx-auth-terms .form-check-input{
  position:static;
  width:1rem;height:1rem;
  flex:0 0 1rem;
  margin:.2rem 0 0;
}

.nx-auth-v2 .nx-auth-terms label{margin:0;font-size:inherit;font-weight:700;color:inherit}
.nx-auth-v2 .nx-auth-terms a{font-weight:900 !important}

.nx-auth-v2 .nx-auth-steps{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:.5rem;
  margin:.8rem 0 1.05rem;
}
.nx-auth-v2 .nx-auth-step{display:flex;align-items:center;gap:.45rem;color:#94a3b8;font-size:.63rem;font-weight:800;white-space:nowrap}
.nx-auth-v2 .nx-auth-step__num{width:25px;height:25px;display:grid;place-items:center;border:1px solid #cbd5e1;border-radius:999px;background:#fff;font-size:.62rem;font-weight:950}
.nx-auth-v2 .nx-auth-step.is-active{color:#166534}
.nx-auth-v2 .nx-auth-step.is-active .nx-auth-step__num{border-color:#86efac;background:#dcfce7;color:#166534}
.nx-auth-v2 .nx-auth-step.is-done{color:#1d4ed8}
.nx-auth-v2 .nx-auth-step.is-done .nx-auth-step__num{border-color:#bfdbfe;background:#dbeafe;color:#1d4ed8}
.nx-auth-v2 .nx-auth-step-line{height:1px;background:#e2e8f0;min-width:18px}

.nx-auth-v2 .nx-auth-otp-box{
  padding:.9rem;
  border:1px solid #dbeafe;
  border-radius:16px;
  background:linear-gradient(180deg,#f8fbff,#fff);
}

.nx-auth-v2 .nx-auth-otp-box .form-control.text-center{
  min-height:54px;
  direction:ltr;
  text-align:center;
  letter-spacing:.5rem;
  font-size:1.15rem !important;
  font-weight:950;
}

.nx-auth-v2 .nx-auth-otp-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.65rem;
  margin-top:.55rem;
  color:#64748b;
  font-size:.61rem;
}

.nx-auth-v2 .nx-auth-resend{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  flex-wrap:wrap;
  margin-top:.8rem;
  font-size:.64rem;
}

.nx-auth-v2 .nx-auth-resend .btn-link{font-size:.65rem;font-weight:900;text-decoration:none;transform:none;box-shadow:none;padding:0}

.nx-auth-v2 .nx-auth-info{
  display:flex;
  align-items:flex-start;
  gap:.55rem;
  margin-top:.75rem;
  padding:.65rem .7rem;
  border:1px solid #e2e8f0;
  border-radius:13px;
  background:#f8fafc;
  color:#64748b;
  font-size:.63rem;
  line-height:1.8;
}

.nx-auth-v2 .nx-auth-security-note{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.4rem;
  margin-top:.75rem;
  color:#94a3b8;
  font-size:.58rem;
  line-height:1.6;
}

.nx-auth-v2 .alert{font-size:.65rem;line-height:1.8}

@media (max-width:991.98px){
  .nx-auth-v2 .nx-auth-wrap{width:min(100%,650px)}
  .nx-auth-v2 .nx-auth-layout,.nx-auth-v2 .nx-auth-layout--register{display:block;min-height:0}
  .nx-auth-v2 .nx-auth-showcase{display:none}
  .nx-auth-v2 .nx-auth-form-pane{padding:clamp(1.1rem,4vw,1.7rem)}
  .nx-auth-v2 .nx-auth-mobile-value{display:flex}
}

@media (max-width:575.98px){
  .nx-auth-v2{padding:.55rem 0 1rem}
  .nx-auth-v2 > .container-fluid{padding-inline:.65rem !important}
  .nx-auth-v2 .nx-auth-shell{border-radius:18px;box-shadow:0 14px 38px rgba(15,23,42,.08)}
  .nx-auth-v2 .nx-auth-form-pane{padding:1rem .9rem 1.05rem}
  .nx-auth-v2 .nx-auth-form-title{font-size:1.08rem}
  .nx-auth-v2 .nx-auth-form-subtitle{font-size:.69rem;margin-bottom:.9rem}
  .nx-auth-v2 .nx-auth-mode-switch a{font-size:.64rem;padding-inline:.4rem}
  .nx-auth-v2 .form-control{min-height:44px;font-size:.73rem !important}
  .nx-auth-v2 .input-group .btn{min-height:44px;min-width:45px}
  .nx-auth-v2 .nx-auth-captcha{grid-template-columns:88px minmax(0,1fr);gap:.4rem;padding:.45rem}
  .nx-auth-v2 .nx-auth-captcha__question{min-width:0;min-height:44px;padding-inline:.35rem;font-size:.7rem}
  .nx-auth-v2 .nx-auth-inline-actions,.nx-auth-v2 .nx-auth-footer{font-size:.62rem}
  .nx-auth-v2 .nx-auth-step{font-size:.58rem;gap:.32rem}
  .nx-auth-v2 .nx-auth-step__num{width:23px;height:23px}
  .nx-auth-v2 .nx-auth-otp-meta{align-items:flex-start;flex-direction:column;gap:.25rem}
}

/* Disable the legacy decorative underline from ui.css inside the v2 auth system. */
.nx-auth-v2 h1::after{display:none !important}

/* v49: clearer RTL captcha flow — answer field first, math expression second. */
.nx-auth-v2 .nx-auth-captcha{
  grid-template-columns:minmax(0,1fr) auto;
  direction:rtl;
}
.nx-auth-v2 .nx-auth-captcha__answer{min-width:0}
.nx-auth-v2 .nx-auth-captcha__question{
  direction:ltr;
  unicode-bidi:isolate;
  white-space:nowrap;
}
.nx-auth-v2 .nx-auth-captcha__answer .form-control{
  direction:ltr;
  text-align:right;
}
@media (max-width:575.98px){
  .nx-auth-v2 .nx-auth-captcha{grid-template-columns:minmax(0,1fr) 92px}
}
