.display-none {
  display: none;
}

.hide {
  display: none !important;
}

.input-validation-error {
  border-color: #dc3545 !important;
}

.text-danger {
  color: #dc3545;
  font-size: 0.875rem;
}

.text-success {
  color: #28a745;
  font-size: 0.875rem;
}

.iti__country-list {
  z-index: 1050 !important;
  max-height: 300px;
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-size: 14px;
}

.iti__selected-dial-code {
  display: inline-block !important;
  color: #000;
  font-weight: 500;
  margin-left: 6px;
  font-size: 14px;
}

.iti__country-list .iti__search-input {
  display: block !important;
  width: 95% !important;
  margin: 5px auto !important;
  padding: 6px 8px;
  font-size: 14px;
  box-sizing: border-box;
}

.iti__search-input {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
}

.iti--separate-dial-code .iti__selected-flag {
  padding: 0 10px;
  background-color: #fff;
  border-right: 1px solid #ccc;
  min-width: 80px;
}

.iti__flag {
  box-shadow: 0 0 1px #888;
}

.iti__country {
  padding: 8px 10px;
  transition: background 0.2s ease-in-out;
}

.iti__country:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}

.iti input[type="tel"] {
  padding-left: 90px !important;
  height: 38px;
}

.iti {
  width: 100%;
}

.html-login-page .master-wrapper-content,
.html-registration-page .master-wrapper-content,
.html-password-recovery-page .master-wrapper-content {
  padding: 0;
}

.html-login-page .page.login-page,
.html-registration-page .page.registration-page,
.html-password-recovery-page .page.password-recovery-page {
  max-width: none;
  margin: 0;
}

.html-login-page .page-title,
.html-registration-page .page-title,
.html-password-recovery-page .page-title {
  margin: 0;
  padding: 0;
  min-height: auto;
}

  .html-login-page .page-title h1,
  .html-registration-page .page-title h1,
  .html-password-recovery-page .page-title h1 {
    margin-top: 30px;
    margin-bottom: 50px;
    font-size: 24px;
    font-weight: 500;
    color: #1e1e1e;
  }
  .ns-auth-shell {
    min-height: calc(100vh - 210px);
    padding: 8px 16px 40px;
    display: flex;
    justify-content: center;
  }

.ns-auth-extra-actions {
  margin: -20px auto 30px;
  width: 100%;
  max-width: 500px;
  text-align: center;
  padding: 0 16px;
}

.ns-auth-checkout-guest {
  width: 100%;
  max-width: 260px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #1e1e1e;
  font-size: 14px;
  font-weight: 600;
}

.ns-auth-card {
  width: 100%;
  max-width: 393px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 1px 2px 3px 3px #0000000D;
  overflow: hidden;
}

.ns-auth-hero {
  background: linear-gradient(140deg, #f50057 0%, #ff5f1e 100%);
  padding: 28px 22px 60px;
  text-align: center;
  color: #fff;
}

.ns-auth-logo-mark {
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../images/logo-vertical.png') center no-repeat;
  background-size: contain;
  width: 165px;
  height: 120px;
}

.ns-auth-brand {
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
}

.ns-auth-tagline {
  margin-top: 2px;
  font-size: 15px;
  opacity: 0.95;
}

.ns-auth-register-subtitle {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 500;
}

.ns-auth-body {
  padding: 30px 25px 45px 26px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  margin-top: -30px;
  background-color: white;
}

.ns-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid #d5d5d5;
  background: #f6f6f6;
  margin-bottom: 25px;
}

.ns-auth-tab,
.ns-auth-tab-link {
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  color: #777 !important;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  text-decoration: none;
  line-height: 42px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
}

.ns-auth-tab.active,
.ns-auth-tab-link.active {
  color: #fff !important;
  background: linear-gradient(140deg, #ff7a21 0%, #ff5f1e 100%) !important;
}

.ns-auth-tab:focus,
.ns-auth-tab-link:focus {
  outline: none;
}

.ns-auth-tab-content {
  display: none;
}

.ns-auth-tab-content.active {
  display: block;
}

.ns-auth-group {
  margin-bottom: 15px;
}

/* BUG-001 (Dev): required-field asterisk positioned at the end (right) of the input field */
.ns-auth-required {
  position: relative;
}
.ns-auth-required .ns-auth-input {
  padding-right: 26px;
}
.ns-auth-required .required {
  position: absolute;
  top: 16px;
  right: 12px;
  color: #dc3545;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

/* BUG-001 (Dev): inline validation message shown under each field (shared by server + client) */
.ns-auth-group .field-validation-error {
  display: block;
  margin-top: 5px;
  color: #dc3545;
  font-size: 0.8125rem;
  line-height: 1.2;
}
.ns-auth-group .field-validation-valid:empty {
  display: none;
}

.ns-auth-group label,
.ns-auth-label {
  display: block;
  margin-bottom: 15px;
  font-size: 14px;
  color: #1e1e1e;
  font-weight: 400;
}

.ns-auth-input {
  width: 100%;
  height: 48px !important;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #1a1a1a;
  font-size: 15px;
  padding: 0 14px;
  transition: border-color 0.2s ease;
  border-radius: 8px !important;
}

.ns-auth-input:focus {
  border-color: #ff6622;
}

#Email::placeholder {
  padding-left: 15px; 
  font-size: 14px;
  font-weight: 400;
}
.login-page .ns-auth-group input[type="tel"] {
  padding-left: 101px !important;
}

.ns-auth-register-body input::placeholder {
  padding-left: 15px;
  font-size: 14px;
  font-weight: 400;
}
.ns-auth-help-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: #505050;
  line-height: 1.4;
}

.ns-auth-action {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, #dd2414 0%, #c71c0e 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}

.ns-auth-action:hover {
  opacity: 0.92;
}

/* BUG-012 / BUG-021 (Dev): the base .button-1 style uppercases the label (REGISTER / CONTINUE).
   Override it (higher specificity than .button-1) so the auth action buttons show the resource text
   in its intended casing (e.g. "Register", "Continue") per the Figma design. */
.ns-auth-action.button-1 {
  text-transform: none;
}

/* BUG-004 (Dev): disabled/loading state while a registration submit is in progress */
.ns-auth-action:disabled,
.ns-auth-action.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ns-auth-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 16px;
  font-size: 14px;
}

.ns-auth-meta a {
  color: #1e1e1e;
  text-decoration: underline;
}

.ns-auth-remember {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.ns-auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.ns-auth-divider {
  margin: 20px 0 12px;
  text-align: center;
  font-size: 32px;
  color: #121212;
  font-weight: 600;
}

.ns-auth-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ns-auth-social-link {
  height: 46px;
  border-radius: 6px;
  background: #f1f1f1;
  border: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #1f1f1f;
  text-decoration: none;
  font-size: 15px;
}

.ns-auth-social-link.ns-auth-social-disabled {
  opacity: 0.65;
}

.ns-auth-result {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff6f3;
  color: #1e1e1e;
  font-size: 14px;
  line-height: 1.4;
}

.ns-auth-link-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 14px;
}

.ns-auth-social-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.ns-auth-facebook {
  background: #3b82f6;
}

.ns-auth-google {
  background: #f97316;
}

.ns-auth-footer-register {
  margin-top: 26px;
  text-align: center;
  font-size: 15px;
  color: #151515;
}

  .ns-auth-footer-register a {
    color: #ED2400;
    margin-left: 4px;
    text-decoration: underline;
  }

/* BUG-017 (Dev): "Change number" link on the OTP verification screen */
.ns-auth-change-number {
  margin-top: 10px;
  text-align: center;
}

.ns-auth-change-number a {
  color: #ED2400;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

.ns-auth-feedback {
  margin: 8px 0 0;
  font-size: 14px;
  color: #dc3545;
  display: none;
}

.ns-auth-feedback.show {
  display: block;
}

.ns-auth-feedback.success {
  color: #28a745;
}

.ns-auth-phone-field .iti {
  width: 100%;
}

.ns-auth-phone-field .iti input[type="tel"] {
  height: 50px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
}

.ns-auth-phone-field .iti--separate-dial-code .iti__selected-flag {
  border-radius: 8px 0 0 8px;
  min-width: 84px;
}

.ns-auth-otp-step {
  margin-top: 8px;
  margin-bottom: 14px;
}

.ns-auth-otp-row {
  display: grid;
  grid-template-columns: repeat(var(--otp-length, 4), minmax(0, 1fr));
  gap: 19px;
  margin-bottom: 20px;
}

.ns-auth-otp-digit {
  height: 48px;
  border-radius: 8px;
  border: 1px solid #E0E0E0;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.ns-auth-otp-row .ns-auth-otp-digit {
  height: 48px !important;
  width: 71px;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
}

.ns-auth-otp-digit:focus {
  border-color: #ff6622;
}

.ns-auth-otp-help {
  margin-top: 12px;
}

.ns-auth-timer {
  text-align: center;
  color: #D22E00;
  font-size: 16px;
  font-weight: 400;
}

.ns-auth-resend {
  margin-top: 2px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: #121212;
}

.ns-auth-resend a {
  color: #121212;
  text-decoration: underline;
  margin-left: 4px;
}

.ns-auth-resend a.disabled {
  pointer-events: none;
  opacity: 0.45;
  text-decoration: none;
}

.ns-auth-register-shell {
  align-items: flex-start;
}

.ns-auth-register-card {
  max-width: 393px;
}

.ns-auth-register-body {
  border-radius: 20px 20px 0 0;
}

.ns-auth-newsletter {
  margin: 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #1f1f1f;
}

.ns-auth-newsletter input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

.ns-auth-register-body .message-error,
.ns-auth-body .message-error {
  margin-bottom: 12px;
}

@media (max-width: 1000px) {
  .html-login-page .page-title h1,
  .html-registration-page .page-title h1,
  .html-password-recovery-page .page-title h1 {
    font-size: 36px;
  }

  .ns-auth-brand {
    font-size: 46px;
  }

  .ns-auth-divider {
    font-size: 28px;
  }
}

@media (max-width: 767px) {
  .html-login-page .page-title,
  .html-registration-page .page-title,
  .html-password-recovery-page .page-title {
    margin: 0;
    padding: 18px 0 10px;
  }

  .html-login-page .page-title h1,
  .html-registration-page .page-title h1,
  .html-password-recovery-page .page-title h1 {
    font-size: 26px;
  }

  .ns-auth-shell {
    min-height: 100vh;
    padding: 0;
  }

  .ns-auth-extra-actions {
    margin: 12px auto 24px;
    padding: 0 14px;
  }

  .ns-auth-card {
    max-width: none;
    min-height: calc(100vh - 54px);
    border-radius: 0;
    box-shadow: none;
  }

  .ns-auth-hero {
    padding: 28px 0 30px 0;
  }

  .ns-auth-brand {
    font-size: 42px;
  }

  .ns-auth-tagline {
    font-size: 14px;
  }

  .ns-auth-register-subtitle {
    margin-top: 24px;
  }

  .ns-auth-body {
    margin-top: -12px;
    border-radius: 18px 18px 0 0;
    background: #fff;
    padding: 18px 14px 24px;
    min-height: calc(100vh - 220px);
  }

  .ns-auth-tab,
  .ns-auth-tab-link {
    font-size: 14px;
  }

  .ns-auth-input {
    height: 46px;
    font-size: 14px;
  }

  .ns-auth-action {
    height: 46px;
    font-size: 17px;
    text-transform: capitalize;
  }

  .ns-auth-divider {
    font-size: 22px;
  }

  .ns-auth-social {
    gap: 10px;
  }

  .ns-auth-social-link {
    font-size: 14px;
  }

  .ns-auth-otp-row {
    gap: 8px;
  }

  .ns-auth-otp-digit {
    height: 46px;
    font-size: 20px;
  }

  .ns-auth-timer {
    font-size: 16px;
  }
}
