body.nx-auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #eef3f7;
  color: #1b304b;
  font-family: Inter, "Noto Sans Devanagari", system-ui, sans-serif;
}
.nx-auth-page .main-content { min-height: 100vh; min-height: 100dvh; }
.nx-auth-stage {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 18px;
  background: radial-gradient(circle at 82% 14%, rgba(184,213,228,.52), transparent 35%),
              linear-gradient(145deg, #f6f8fa, #e8f0f5);
}
.nx-auth-frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 980px);
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(211,224,232,.9);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(17,42,70,.16);
}
.nx-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 42px;
  background: radial-gradient(circle at 20% 10%, rgba(67,157,184,.22), transparent 35%),
              linear-gradient(150deg, #0b203b, #123b5c 68%, #0d657c);
}
.nx-auth-brand::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -190px;
  bottom: -195px;
  border: 1px solid rgba(183,222,231,.19);
  border-radius: 50%;
  box-shadow: 0 0 0 48px rgba(183,222,231,.04), 0 0 0 104px rgba(183,222,231,.035);
}
.nx-auth-brand img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 310px);
  height: auto;
  mix-blend-mode: screen;
}
.nx-auth-brand-mark {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px;
  background: rgba(255,255,255,.08);
  color: #d9edf3;
  font-size: 1.65rem;
}
.nx-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 5vw, 72px);
}
.nx-auth-panel .card-header,
.nx-auth-panel .card-body,
.nx-auth-panel .card-footer { border: 0; background: transparent !important; padding: 0; }
.nx-auth-panel .card-header { margin-bottom: 30px; }
.nx-auth-panel h1 {
  margin: 0;
  color: #102b48;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -.055em;
}
.nx-auth-panel .form-group { margin-bottom: 22px !important; }
.nx-auth-panel .form-label,
.nx-auth-panel .form-check-label {
  color: #3d536e;
  font-size: .78rem;
  font-weight: 800;
}
.nx-auth-panel .form-label { margin-bottom: 9px; }
.nx-auth-panel .form-control {
  min-height: 50px;
  border: 1px solid #dbe5ec !important;
  border-radius: 11px !important;
  background: #f9fbfc !important;
  color: #18324c;
  box-shadow: none !important;
  font-size: .88rem;
}
.nx-auth-panel .form-control:focus {
  border-color: #4f96ae !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(32,123,151,.13) !important;
}
.nx-auth-panel .form-control::placeholder { color: #9aaabb; }
.nx-auth-panel #loginBtn,
.nx-auth-panel .login-form-actions .btn,
.nx-auth-panel #twofaForm .btn {
  min-height: 50px;
  margin-top: 16px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: linear-gradient(110deg, #123b60, #127c97) !important;
  box-shadow: 0 12px 24px rgba(19,94,133,.19) !important;
  color: #fff !important;
  font-size: .85rem;
  font-weight: 800;
}
.nx-auth-panel #loginBtn:disabled { opacity: .6; box-shadow: none !important; }
.nx-auth-panel .form-check-input { border-color: #91aabd; }
.nx-auth-panel .form-check-input:checked { background-color: #176c8d; border-color: #176c8d; }
.nx-auth-panel #error { display: block; min-height: 1.2em; margin-top: 9px; font-size: .72rem; }
.nx-auth-panel .mpin,
.nx-auth-panel .mpin_new {
  display: inline-block !important;
  width: 42px;
  min-height: 48px;
  margin: 0 3px !important;
  padding: 0 !important;
  text-align: center;
  font-size: 1.15rem;
}
.nx-auth-panel .two-step { width: 100%; }
.nx-auth-copyright {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 100%;
  color: #7890a2;
  font-size: .68rem;
  font-weight: 700;
  text-align: center;
}
@media (max-width: 767.98px) {
  .nx-auth-stage { padding: 18px 12px 42px; }
  .nx-auth-frame { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .nx-auth-brand { min-height: 140px; padding: 20px 24px; }
  .nx-auth-brand img { width: 205px; }
  .nx-auth-brand-mark { display: none; }
  .nx-auth-panel { padding: 30px 26px 36px; }
  .nx-auth-panel .card-header { margin-bottom: 25px; }
  .nx-auth-copyright { bottom: 13px; }
}
