/* Website login and signup only. Keep other legacy forms unchanged. */
#loginModal.auth-modal, #signupModal.auth-modal {
  background: rgba(22, 27, 36, .48);
  backdrop-filter: blur(4px);
  padding: 14px;
  overflow-y: auto;
}
.auth-modal .inner-box {
  width: min(440px, 100%);
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  margin: auto;
  padding: 30px;
  border: 1px solid #ebe9df;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(25, 29, 35, .22);
}
.auth-modal .auth-close {
  position: absolute;
  top: 8px;
  right: 8px;
  left: auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
}
.auth-modal .auth-close img { width: 18px; height: 18px; pointer-events: none; }
.auth-modal .auth-close:focus-visible { outline: 2px solid #252932; outline-offset: 2px; }
.auth-modal .inner-box h3 {
  margin: 0 34px 5px 0;
  color: #252932;
  text-align: left;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 500;
}
.auth-modal .auth-subtitle {
  margin: 0 0 24px;
  color: #626873;
  font-size: 14px;
  line-height: 1.45;
}
.auth-modal .form1 ul li { margin-bottom: 16px; }
.auth-modal .form1 ul li:last-child { margin-bottom: 0; }
.auth-modal .auth-field label,
.auth-modal .auth-otp label {
  display: block;
  width: auto;
  margin: 0 0 7px;
  padding: 0;
  border: 0;
  color: #39404a;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.auth-modal .form1 .form-control {
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cdd1d8;
  border-radius: 10px;
  background: #fff;
  color: #242933;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}
.auth-modal .form1 .form-control:focus,
.auth-modal .auth-contact-row:focus-within {
  border-color: #d0a900;
  box-shadow: 0 0 0 3px rgba(247, 208, 34, .2);
}
.auth-modal .form1 .form-control::placeholder { color: #8b919b; }
#loginModal .auth-contact-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-bottom: 4px;
  border: 1px solid #cdd1d8;
  border-radius: 10px;
  background: #fff;
}
#loginModal #countryCode {
  flex: 0 0 auto;
  margin: 0 0 0 12px !important;
  color: #39404a;
  font-size: 14px;
  font-weight: 500;
}
#loginModal #mobile1 {
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 0 !important;
  box-shadow: none !important;
}
#loginModal .auth-hint {
  margin: 4px 0 18px;
  color: #6d737d;
  font-size: 12px;
  line-height: 1.45;
}
.auth-modal .form-error-msg:not(:empty) {
  display: block;
  margin: 6px 0 0;
  color: #bd3333;
  font-size: 12px;
  line-height: 1.35;
}
.auth-modal .auth-otp {
  margin: 0 !important;
}
.auth-modal .auth-otp .otp-sec-main {
  width: 100%;
  margin: 18px 0 20px;
  padding: 16px;
  border: 1px solid #ebe9df;
  border-radius: 12px;
  background: #faf9f5;
}
.auth-modal .auth-otp #loginOtpDestination {
  margin: 0 0 14px !important;
  color: #626873 !important;
  font-size: 12px !important;
  line-height: 1.4;
}
.auth-modal .otp-sec-child {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 0;
}
.auth-modal .otp-slot {
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid #cdd1d8;
  border-radius: 8px;
  background: #fff;
  color: #252932;
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  appearance: textfield;
}
.auth-modal .otp-slot::-webkit-outer-spin-button,
.auth-modal .otp-slot::-webkit-inner-spin-button { appearance: none; margin: 0; }
.auth-modal .otp-slot:focus { outline: 2px solid #f7d022; outline-offset: 1px; }
.auth-modal .auth-otp .d-flex {
  flex-wrap: wrap;
  justify-content: flex-start !important;
  gap: 8px 14px !important;
  margin-top: 14px !important;
}
.auth-modal #timertext,
.auth-modal #timertextSignup,
.auth-modal .otp-content {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}
.auth-modal .otp-content { color: #8a6d00; font-weight: 500; }
.auth-modal .auth-action,
.auth-modal .auth-methods { margin: 0 0 16px !important; }
.auth-modal .auth-action .button2,
.auth-modal .auth-methods .button2 {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.auth-modal .auth-primary { background: #f7d022 !important; color: #252932 !important; }
.auth-modal .auth-secondary { background: #fff !important; color: #252932 !important; border: 1px solid #cdd1d8; }
.auth-modal .auth-primary:hover { background: #edc410 !important; }
.auth-modal .auth-secondary:hover { border-color: #c9a800; background: #fff9de !important; }
.auth-modal .auth-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-modal .auth-switch { margin-top: 16px; text-align: center; }
.auth-modal .inner-box .or-sign-up {
  color: #806500;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-modal .inner-box .or-sign-up span {
  color: #626873;
  font-weight: 400;
  text-decoration: none;
}
@media (max-width: 480px) {
  .auth-modal .inner-box { padding: 24px 18px; }
  .auth-modal .inner-box h3 { font-size: 23px; }
  .auth-modal .auth-otp .otp-sec-main { padding: 13px; }
  .auth-modal .otp-sec-child { gap: 5px; }
  .auth-modal .otp-slot { height: 44px; font-size: 20px; }
  .auth-modal .auth-methods { grid-template-columns: 1fr; gap: 8px; }
}
