.auth-body {
  min-height: 100dvh;
  margin: 0;
  color: #e8eefc;
  display: flex;
  justify-content: center;
  padding: 24px 16px 40px;
  color-scheme: dark;
  background:
    radial-gradient(ellipse 800px 480px at 10% 0%, #1a3a5c 0%, transparent 55%),
    radial-gradient(ellipse 700px 420px at 100% 10%, #a8e10c33 0%, transparent 50%),
    radial-gradient(ellipse 600px 400px at 50% 100%, #0ea5e933 0%, transparent 55%),
    linear-gradient(165deg, #061018 0%, #0a1628 45%, #0c1f14 100%);
  background-attachment: fixed;
  background-color: #0a1628;
}

.auth-shell {
  width: min(440px, 100%);
}

.auth-back {
  display: inline-block;
  color: #93a4c3;
  text-decoration: none;
  margin-bottom: 14px;
  font-weight: 600;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #0a1628, #1a3a5c);
  border: 1px solid rgba(168, 225, 12, 0.35);
}

.auth-logo-img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.nm-accent {
  color: #a8e10c;
}

.auth-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
}

.auth-brand-tag {
  color: #93a4c3;
  font-size: 0.82rem;
  margin-top: 2px;
}

.auth-title {
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
}

.auth-sub {
  margin: 8px 0 20px;
  color: #93a4c3;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 14px;
  background: #121a2b;
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-tabs[data-otp-only="1"] {
  grid-template-columns: 1fr;
}

.auth-tab {
  border: 0;
  background: transparent;
  color: #93a4c3;
  font: inherit;
  font-weight: 700;
  padding: 12px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.auth-tab.active {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.18);
  box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.55);
}

.auth-form .field {
  margin-bottom: 14px;
}

.auth-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #121a2b;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 0 12px;
  min-height: 48px;
}

.auth-input input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #e8eefc;
  font: inherit;
  padding: 12px 0;
  outline: none;
  min-width: 0;
  color-scheme: dark;
}

/* Chrome/Edge autofill paints inputs white — force dark theme */
.auth-input input:-webkit-autofill,
.auth-input input:-webkit-autofill:hover,
.auth-input input:-webkit-autofill:focus,
.auth-input input:-webkit-autofill:active {
  -webkit-text-fill-color: #e8eefc !important;
  caret-color: #e8eefc;
  border: 0 !important;
  transition: background-color 99999s ease-out 0s;
  box-shadow: 0 0 0 1000px #121a2b inset !important;
  -webkit-box-shadow: 0 0 0 1000px #121a2b inset !important;
}

.auth-input input::placeholder {
  color: #64748b;
}

.auth-ico {
  color: #a8e10c;
  width: 20px;
  text-align: center;
}

.auth-eye {
  border: 0;
  background: transparent;
  color: #93a4c3;
  cursor: pointer;
  font-size: 0.95rem;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  margin-top: 6px;
  background: #a8e10c !important;
  color: #0a1628 !important;
  border-radius: 14px;
  font-weight: 800;
}

.auth-footer-link {
  text-align: center;
  margin: 18px 0 8px;
  color: #93a4c3;
}

.auth-footer-link a {
  color: #a8e10c;
  font-weight: 700;
  text-decoration: none;
}

.auth-fine,
.auth-env {
  text-align: center;
  color: #64748b;
  font-size: 0.78rem;
  margin: 6px 0 0;
}

/* Keep OTP / steps truly hidden (admin .field display can override [hidden]) */
.auth-form .field[hidden],
.auth-otp-step[hidden],
#regOtpStep[hidden],
#otpCodeField[hidden],
#regDetails[hidden] {
  display: none !important;
}

.auth-otp-step {
  margin-top: 4px;
}

.auth-phone-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.auth-phone-row .auth-input {
  flex: 1;
  min-width: 0;
}

.auth-validate-btn {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 14px;
  background: #a8e10c !important;
  color: #0a1628 !important;
  color: #fff !important;
  white-space: nowrap;
}

.auth-validate-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.field-msg {
  display: block;
  min-height: 1.1em;
  margin-top: 6px;
  font-size: 0.82rem;
}

.field-msg.is-error {
  color: #f87171;
}

.field-msg.is-ok {
  color: #34d399;
}
