.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: 24px 0 10px;
  text-align: center;
}

.html-login-page .page-title h1,
.html-registration-page .page-title h1,
.html-password-recovery-page .page-title h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  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: 500px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.ns-auth-hero {
  background: linear-gradient(140deg, #f50057 0%, #ff5f1e 100%);
  padding: 24px 22px 18px;
  text-align: center;
  color: #fff;
}

.ns-auth-logo-mark {
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
}

.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: 22px;
}

.ns-auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid #d5d5d5;
  background: #f6f6f6;
  margin-bottom: 18px;
}

.ns-auth-tab,
.ns-auth-tab-link {
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: transparent !important;
  color: #777 !important;
  font-size: 16px;
  font-weight: 500;
  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: 14px;
}

.ns-auth-group label,
.ns-auth-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #1e1e1e;
  font-weight: 500;
}

.ns-auth-input {
  width: 100%;
  height: 50px;
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #1a1a1a;
  font-size: 15px;
  padding: 0 14px;
  transition: border-color 0.2s ease;
}

.ns-auth-input:focus {
  border-color: #ff6622;
}

.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;
}

.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: 18px;
  text-align: center;
  font-size: 15px;
  color: #151515;
}

.ns-auth-footer-register a {
  color: #d91d10;
  margin-left: 4px;
  text-decoration: underline;
}

.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: 10px;
  margin-bottom: 10px;
}

.ns-auth-otp-digit {
  height: 50px;
  border-radius: 8px;
  border: 1px solid #d5d5d5;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.ns-auth-otp-digit:focus {
  border-color: #ff6622;
}

.ns-auth-otp-help {
  margin-top: 12px;
}

.ns-auth-timer {
  text-align: center;
  color: #d82912;
  font-size: 30px;
  font-weight: 700;
}

.ns-auth-resend {
  margin-top: 2px;
  text-align: center;
  font-size: 15px;
  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: 560px;
}

.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: 26px 20px 28px;
  }

  .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;
  }

  .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: 22px;
  }
}
