body.login {
  background: #f3f5fa;
  color: #183153;
  font-family: "DM Sans", Arial, sans-serif;
}

.login .ns-login-shell {
  min-height: 100vh;
  display: flex;
  background: #f3f5fa;
}

.login .ns-login-brand-panel {
  position: relative;
  flex: 0 0 46%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(145deg, #1b4b66 0%, #27618a 45%, #31907d 100%);
  background-size: 36px 36px, 36px 36px, auto;
}

.login .ns-login-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(7, 24, 43, 0.1) 0%, rgba(7, 24, 43, 0.02) 60%, rgba(255, 255, 255, 0.05) 100%);
  pointer-events: none;
}

.login .ns-login-brand-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.22;
}

.login .ns-login-brand-glow-one {
  width: 260px;
  height: 260px;
  left: -60px;
  top: -40px;
  background: #16c29a;
  opacity: 0.26;
}

.login .ns-login-brand-glow-two {
  width: 240px;
  height: 240px;
  right: -80px;
  bottom: 40px;
  background: #d6a63d;
  opacity: 0.18;
}

.login .ns-login-brand-content,
.login .ns-login-brand-footer {
  position: relative;
  z-index: 1;
}

.login .ns-login-brand-content {
  width: 100%;
  max-width: 500px;
  text-align: center;
}

.login .ns-login-brand-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login .ns-login-brand-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-family: Georgia, "Times New Roman", serif;
}

.login .ns-login-brand-copy p {
  margin: 12px 0 28px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.login .ns-login-brand-logo {
  display: block;
  margin: 0 auto 4px;
  max-width: 200px;
  max-height: 80px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

.login .ns-login-card-logo {
  max-height: 89px;
  max-width: 171px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.88;
}

.login .ns-login-feature-list {
  display: grid;
  gap: 12px;
  text-align: left;
}

.login .ns-login-feature-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.login .ns-login-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border: 1px solid transparent;
}

.login .ns-login-feature-icon.ns-purple {
  color: #bba7ff;
  background: rgba(151, 114, 255, 0.15);
  border-color: rgba(151, 114, 255, 0.28);
}

.login .ns-login-feature-icon.ns-teal {
  color: #3ce7c0;
  background: rgba(18, 179, 145, 0.15);
  border-color: rgba(18, 179, 145, 0.28);
}

.login .ns-login-feature-icon.ns-amber {
  color: #f4d17a;
  background: rgba(214, 166, 61, 0.15);
  border-color: rgba(214, 166, 61, 0.28);
}

.login .ns-login-feature-icon.ns-blue {
  color: #6cb5ff;
  background: rgba(73, 140, 255, 0.15);
  border-color: rgba(73, 140, 255, 0.28);
}

.login .ns-login-feature-icon.ns-rose {
  color: #ff8fc8;
  background: rgba(245, 110, 184, 0.15);
  border-color: rgba(245, 110, 184, 0.28);
}

.login .ns-login-feature-body {
  flex: 1 1 auto;
  min-width: 0;
}

.login .ns-login-feature-body strong {
  display: block;
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.login .ns-login-feature-body span {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  line-height: 1.45;
}

.login .ns-login-feature-arrow {
  color: rgba(255, 255, 255, 0.28);
  font-size: 26px;
}

.login .ns-login-brand-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  text-align: center;
  color: rgba(255, 255, 255, 0.28);
  font-size: 13px;
}

.login .ns-login-form-panel {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 24px;
  background-color: #f3f5fa;
  background-image: radial-gradient(circle, rgba(114, 129, 161, 0.22) 1px, transparent 1px);
  background-size: 24px 24px;
}

.login .ns-login-panel-inner {
  width: 100%;
  max-width: 540px;
  position: relative;
  z-index: 1;
}

.login .ns-login-topbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-bottom: 18px;
  color: #6d7f9d;
  font-size: 13px;
}

.login .ns-login-topbar-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.login .ns-login-topbar-item i {
  font-size: 15px;
}

.login .ns-login-topbar-item select {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d8e0ee;
  background: #ffffff;
  color: #485b7a;
  outline: none;
}

.login .ns-login-card {
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(24, 49, 83, 0.12);
}

.login .ns-login-card + .ns-login-card,
.login .ns-login-powered,
.login .ns-login-copyright {
  margin-top: 18px;
}

.login .ns-login-card-edge {
  height: 5px;
  background: linear-gradient(90deg, #17395c 0%, #24c59f 48%, #d0a543 100%);
}

.login .ns-login-card-body {
  padding: 34px 40px 28px;
}

.login .ns-login-card-header h2 {
  margin: 0 0 6px;
  color: #17395c;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.login .ns-login-card-header p {
  margin: 0 0 24px;
  color: #7182a0;
  font-size: 15px;
}

.login .ns-login-tabstrip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 5px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: #edf1f7;
}

.login .ns-login-tabstrip button {
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6a7b98;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: default;
}

.login .ns-login-tabstrip button.active {
  background: #ffffff;
  color: #17395c;
  box-shadow: 0 4px 12px rgba(23, 57, 92, 0.08);
}

.login .ns-login-tabstrip button[disabled] {
  opacity: 1;
}

.login #myforms,
.login .forget-form {
  margin: 0;
}

.login .forget-form {
  display: none;
}

.login .ns-login-alert {
  border-radius: 12px;
  margin-bottom: 18px;
}

.login .ns-login-field-group {
  margin-bottom: 18px;
}

.login .ns-login-field-group label {
  display: block;
  margin-bottom: 10px;
  color: #465876;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.login .ns-login-input-shell {
  position: relative;
}

.login .ns-login-input-shell > i {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  color: #a8b2c4;
  font-size: 18px;
}

.login .ns-login-input-shell .form-control {
  height: 54px !important;
  border-radius: 14px;
  border: 1px solid #d9e1ee;
  background: #f7f9fc;
  color: #17395c;
  box-shadow: none;
  padding: 14px 46px 14px 48px;
  font-size: 16px;
}

.login .ns-login-input-shell .form-control:focus {
  border-color: #7ab5ff;
  box-shadow: 0 0 0 3px rgba(39, 123, 255, 0.08);
}

.login .ns-login-input-shell .form-control::-webkit-input-placeholder {
  color: #a6b0c2;
}

.login .ns-login-input-shell .form-control::-moz-placeholder {
  color: #a6b0c2;
}

.login .ns-login-input-shell .form-control:-ms-input-placeholder {
  color: #a6b0c2;
}

.login .ns-login-input-shell .form-control::placeholder {
  color: #a6b0c2;
}

.login .ns-login-input-trailing {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a8b2c4;
  font-size: 18px;
  pointer-events: none;
}

.login .ns-login-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  margin: 12px 0 18px;
  border-radius: 12px;
  border: 1px solid #efd18a;
  background: linear-gradient(90deg, #fff9eb 0%, #fffdf8 100%);
  color: #9a6810;
  font-size: 14px;
}

.login .ns-login-note strong {
  font-weight: 700;
}

.login .ns-login-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.login .ns-login-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #526583;
  font-size: 15px;
  font-weight: 500;
}

.login .ns-login-checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
}

.login .ns-login-form-row a,
.login .ns-login-card-footer a {
  color: #1e5c9b;
  font-weight: 700;
  text-decoration: none;
}

.login .ns-login-submit {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(90deg, #17395c 0%, #285f95 100%);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: none;
  text-transform: uppercase;
}

.login .ns-login-back-btn {
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid #d9e1ee;
  background: #ffffff;
  color: #4b5f7e;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.login .ns-login-forget-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.login .ns-login-forget-submit-group {
  flex: 1 1 auto;
}

.login .ns-login-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 40px;
  border-top: 1px solid #edf1f7;
  color: #6d7f9d;
  font-size: 15px;
}

.login .ns-login-secure {
  color: #08a37d;
  font-weight: 700;
  white-space: nowrap;
}

.login .ns-login-powered,
.login .ns-login-copyright {
  text-align: center;
  color: #8a98b2;
}

.login .ns-login-powered {
  font-size: 14px;
}

.login .ns-login-powered strong {
  color: #516a93;
}

.login .ns-login-powered span + span {
  margin-left: 16px;
}

.login .ns-login-copyright {
  font-size: 13px;
}

.login .ns-login-form .help-block,
.login .forget-form .help-block {
  margin-top: 8px;
  font-size: 12px;
}

.login .ns-login-form .has-error .form-control,
.login .forget-form .has-error .form-control {
  border-color: #d9534f;
}

@media (max-width: 1180px) {
  .login .ns-login-shell {
    flex-direction: column;
  }

  .login .ns-login-brand-panel,
  .login .ns-login-form-panel {
    flex: none;
    width: 100%;
  }

  .login .ns-login-brand-panel {
    padding: 42px 22px 70px;
  }

  .login .ns-login-brand-footer {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 640px) {
  .login .ns-login-form-panel {
    padding: 20px 14px 30px;
  }

  .login .ns-login-topbar {
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 12px;
  }

  .login .ns-login-card-body,
  .login .ns-login-card-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .login .ns-login-card-body {
    padding-top: 24px;
  }

  .login .ns-login-card-header h2 {
    font-size: 22px;
  }

  .login .ns-login-form-row,
  .login .ns-login-card-footer,
  .login .ns-login-forget-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .login .ns-login-secure {
    text-align: left;
  }

  .login .ns-login-forget-submit-group,
  .login .ns-login-back-btn {
    width: 100%;
  }
}
