/* Sports Town — modern auth modal + dedicated auth page */

.st-auth-page,
.st-auth-modal,
.sf-auth {
  --sf-auth-black: var(--st-black, #080808);
  --sf-auth-pink: var(--st-orange, #F47C4A);
  --sf-auth-rule: #ebe8e2;
}

.st-auth-page.sf-auth-page {
  min-height: calc(100vh - 220px);
  padding: 48px 0 88px;
  background:
    radial-gradient(ellipse 60% 40% at 90% 0%, rgba(244, 124, 74, 0.12), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--st-off-white, #FFFFFB) 100%);
}

.st-auth-page__shell {
  max-width: 440px;
  margin: 0 auto;
}

.st-auth-page__brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.st-auth-page__brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* —— Popup overlay —— */
.st-auth-modal {
  position: fixed;
  inset: 0;
  /* Above canvas menu (10090), search (10120), cart (10140) */
  z-index: 10160;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.st-auth-modal.is-open {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.st-auth-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.st-auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: min(92vh, 820px);
  overflow: auto;
  background: #fff;
  border: 1px solid rgba(8, 8, 8, 0.06);
  border-radius: var(--st-radius, 18px);
  box-shadow: 0 28px 80px rgba(8, 8, 8, 0.22);
  padding: 28px 28px 30px;
  transform: translateY(14px) scale(0.98);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.st-auth-modal.is-open .st-auth-modal__dialog {
  transform: translateY(0) scale(1);
}

.st-auth-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--st-off-white, #FFFFFB);
  color: var(--st-black, #080808);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.st-auth-modal__close:hover {
  background: var(--st-black, #080808);
  color: #fff;
  transform: rotate(90deg);
}

.st-auth-modal__brand {
  text-align: center;
  margin: 4px 0 22px;
  padding-right: 28px;
}

.st-auth-modal__brand img {
  height: 32px;
  width: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.st-auth-modal__brand p {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--st-orange, #F47C4A);
}

.st-auth-modal__body .sf-auth__card {
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* —— Shared form skin —— */
.st-auth-page .sf-auth__card,
.st-auth-modal .sf-auth__card {
  background: #fff;
}

.st-auth-page .sf-auth__card {
  border: 1px solid rgba(8, 8, 8, 0.06);
  border-radius: var(--st-radius, 18px);
  padding: 32px 28px 28px;
  box-shadow: var(--st-shadow, 0 10px 28px rgba(8, 8, 8, 0.06));
}

.st-auth-page .sf-auth__eyebrow,
.st-auth-modal .sf-auth__eyebrow {
  color: var(--st-orange, #F47C4A) !important;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.st-auth-page .sf-auth__title,
.st-auth-modal .sf-auth__title {
  font-family: 'Montserrat', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(1.5rem, 3vw, 1.85rem) !important;
  text-transform: none !important;
  letter-spacing: -0.02em !important;
  color: var(--st-black, #080808) !important;
}

.st-auth-page .sf-auth__lead,
.st-auth-modal .sf-auth__lead {
  color: #5E6267;
}

.st-auth-page .sf-auth .contact-outline-input,
.st-auth-modal .sf-auth .contact-outline-input {
  border-radius: var(--st-radius, 18px) !important;
  border-color: #e4e1da !important;
  min-height: 52px;
  font-family: 'Montserrat', sans-serif;
}

.st-auth-page .sf-auth .contact-outline-input:focus,
.st-auth-modal .sf-auth .contact-outline-input:focus {
  border-color: var(--st-black, #080808) !important;
  box-shadow: 0 0 0 3px rgba(244, 124, 74, 0.18) !important;
}

.st-auth-page .sf-auth .contact-outline-field:focus-within .contact-outline-label,
.st-auth-page .sf-auth .contact-outline-input:not(:placeholder-shown) + .contact-outline-label,
.st-auth-modal .sf-auth .contact-outline-field:focus-within .contact-outline-label,
.st-auth-modal .sf-auth .contact-outline-input:not(:placeholder-shown) + .contact-outline-label {
  color: var(--st-orange, #F47C4A) !important;
}

.st-auth-page .sf-auth__submit,
.st-auth-page .sf-auth__submit.btn.btn-contact-send,
.st-auth-modal .sf-auth__submit,
.st-auth-modal .sf-auth__submit.btn.btn-contact-send {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--st-orange, #F47C4A) !important;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(244, 124, 74, 0.28);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.st-auth-page .sf-auth__submit:hover,
.st-auth-modal .sf-auth__submit:hover {
  background: var(--st-black, #080808) !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.st-auth-page .sf-auth__forgot,
.st-auth-page .sf-auth__alt a,
.st-auth-modal .sf-auth__forgot,
.st-auth-modal .sf-auth__alt a,
.st-auth-page .auth-password-toggle:hover,
.st-auth-modal .auth-password-toggle:hover {
  color: var(--st-orange, #F47C4A) !important;
}

.st-auth-page .sf-auth__flash,
.st-auth-modal .sf-auth__flash {
  background: #fff4ee;
  border: 1px solid #f3c7b0;
  color: #8a3f1f;
  border-radius: 12px;
}

.st-auth-page .auth-panel-error,
.st-auth-modal .auth-panel-error {
  color: #b42318;
  font-size: 12px;
  margin: -8px 0 12px;
}

@media (max-width: 575px) {
  .st-auth-modal {
    padding: 12px;
    align-items: flex-end;
  }

  .st-auth-modal__dialog {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 12px 12px;
    padding: 22px 18px 24px;
  }

  .st-auth-page .sf-auth__row,
  .st-auth-modal .sf-auth__row {
    grid-template-columns: 1fr;
  }
}
