/* Auth / member form styles — footer from theme (footer.css) */

:root {
  --sa-blue: #1880BB;
  --sa-blue-dark: #146a9c;
  --sa-text: #3C3C3C;
  --sa-bg: #f3f5f7;
  --sa-border: #d0d7de;
}

.sa-header {
  background: #fff;
  border-bottom: 1px solid #e1e6eb;
  position: sticky;
  top: 0;
  z-index: 100;
}
.sa-header__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.4rem 2.4rem;
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.sa-header__logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
}
.sa-header__logo img {
  width: 16rem !important;
  max-width: 16rem !important;
  height: auto !important;
  display: block;
}
.sa-header__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.6rem 2rem;
  margin-left: auto;
}
.sa-header__nav a {
  color: #3c3c3c;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}
.sa-header__nav a:hover {
  color: var(--sa-blue);
}
.sa-header__actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

body.sporom-auth-page .wrapper,
body.sporom-auth-page {
  background: var(--sa-bg);
}

.sa-main {
  flex: 1;
  width: 100%;
  background: var(--sa-bg);
}

.sa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.6rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 2rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1;
}

.sa-btn--primary {
  background: var(--sa-blue);
  color: #fff;
}

.sa-btn--primary:hover {
  background: var(--sa-blue-dark);
}

.sa-btn--block {
  width: 100%;
  height: 6rem;
  padding: 0;
}

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

.sa-hero {
  text-align: center;
  padding: 8rem 1.6rem 6rem;
}

.sa-hero__brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  max-width: 100%;
}

.sa-hero__logo,
.sa-hero .sa-hero__logo,
body.sporom-auth-page .sa-hero__logo {
  width: 16rem !important;
  max-width: 16rem !important;
  min-width: 14rem !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  flex: 0 0 auto !important;
  object-fit: contain;
  vertical-align: middle;
}

.sa-hero__title {
  display: inline-block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #3C3C3C;
  letter-spacing: 0.08em;
  line-height: 1.2;
  white-space: nowrap;
  padding: 1rem 0;
  border-top: 1px solid #3C3C3C;
  border-bottom: 1px solid #3C3C3C;
}

.sa-card-wrap {
  padding: 0 1.6rem 6rem;
}

.sa-card {
  max-width: 64rem;
  margin: 0 auto;
  background: #fff;
  border: 2px solid #cad3d8;
  border-radius: 1rem;
  padding: 0 4.6rem 3.2rem;
  box-shadow: 0 4px 20px rgba(24, 128, 187, 0.06);
}

.sa-card__title {
  font-size: 2rem;
  margin: 2.4rem 0 1.2rem;
  text-align: center;
  font-weight: 700;
  color: var(--sa-text);
}

.sa-card__title--lined {
  color: var(--sa-blue);
  margin: 0 -4.8rem 2rem;
  padding: 2.4rem 3.2rem 1.6rem;
  border-bottom: 6px solid var(--sa-blue);
}

.sa-card--reset .sa-lead {
  margin: 4rem 0 1.6rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--sa-text);
  line-height: 1.7;
}

.sa-complete__note--form {
  margin: 0 0 2rem;
}

.sa-pw-note {
  margin: 0.4rem 0 0.4rem;
  padding: 1.4rem 1.6rem;
  background: #f3f5f7;
  border: 1px solid #8b8a87;
  border-radius: 4px;
  text-align: left;
  box-sizing: border-box;
}

.sa-pw-note__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.sa-pw-note__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #8b8a87;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.sa-pw-note__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sa-text);
  line-height: 1.4;
}

.sa-pw-note__list {
  margin: 0;
  padding-left: 2.8rem;
  list-style: disc;
  color: #8b8a87;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.7;
}

.sa-pw-note__list li + li {
  margin-top: 0.2rem;
}

.sa-card--reset .sa-form {
  margin: 4rem 0;
}

.sa-card--reset .sa-links {
  margin-top: 1.6rem;
}

.sa-lead {
  text-align: center;
  color: #666;
  font-size: 1.4rem;
  margin: 0 0 1.6rem;
}

.sa-tabs {
  display: flex;
  border-bottom: 2px solid #cad3d8;
  margin: 0 -4.6rem 4.8rem;
}

.sa-tabs__btn {
  flex: 1;
  background: none;
  border: none;
  padding: 1.6rem 1.2rem;
  font-size: 2rem;
  font-weight: 700;
  color: #9aa3ab;
  cursor: pointer;
  border-bottom: 6px solid transparent;
  margin-bottom: -1px;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  line-height: 1.2;
}

a.sa-tabs__btn:hover {
  color: var(--sa-blue);
  opacity: 1;
}

span.sa-tabs__btn {
  cursor: default;
}

.sa-tabs__btn.is-active {
  color: var(--sa-blue);
  border-bottom-color: var(--sa-blue);
}

.sa-panel {
  display: none;
}

.sa-panel.is-active {
  display: block;
}

.sa-form {
  display: grid;
  gap: 2rem;
}

.sa-label {
  display: grid;
  gap: 1.4rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sa-text);
  margin:  0 0 1.2rem;
}

.sa-label input,
.sa-label select,
.sa-label textarea {
  width: 100%;
  height: 4.8rem;
  padding: 2.4rem 1.4rem;
  border: 1px solid #cfd8e0;
  border-radius: 4px;
  font-size: 1.6rem;
  font-family: inherit;
  color: var(--sa-text);
  background: #fff;
  box-sizing: border-box;
}

.sa-label textarea {
  height: auto;
  padding: 1.2rem 1.4rem;
}

.sa-label input::placeholder {
  color: #a8b0b8;
}

.sa-label input:focus,
.sa-label select:focus,
.sa-label textarea:focus {
  outline: none;
  border-color: var(--sa-blue);
  box-shadow: 0 0 0 3px rgba(24, 128, 187, 0.12);
}

.sa-check {
  font-size: 1.4rem;
  font-weight: 600;
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--sa-text);
  line-height: 1.5;
}

.sa-check input[type="checkbox"] {
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  accent-color: var(--sa-blue);
}

.sa-check a {
  color: var(--sa-blue);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.sa-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.4rem;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2rem 0;
  line-height: 1.6;
  letter-spacing: 0.04em;
}

.sa-links a {
  display: inline-block;
  color: var(--sa-blue);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.sa-alert {
  background: #fff3f3;
  border: 1px solid #f5b5b5;
  color: #b42318;
  padding: 1rem 1.2rem;
  border-radius: 4px;
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.sa-alert--ok {
  background: #eefaf1;
  border-color: #9ed9ad;
  color: #1b7a3a;
}

.sa-complete {
  text-align: center;
  padding: 3.2rem 3.8rem 2.4rem;
}

.sa-complete__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  margin: 0 auto 4rem;
  border-radius: 50%;
  background: var(--sa-blue);
}

.sa-complete__icon svg {
  width: 4.8rem;
  height: 4.8rem;
  display: block;
}

.sa-complete__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--sa-text);
  margin: 0 0 1.6rem;
  line-height: 1.5;
}

.sa-complete__text {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--sa-text);
  line-height: 1.7;
}

.sa-complete__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2.4rem 4rem 4rem;
  padding: 1.6rem 1rem;
  max-width: 100%;
  background: #f3f5f7;
  border: 1px solid #8b8a87;
  border-radius: 4px;
  box-sizing: border-box;
  text-align: left;
  font-size: 1.3rem;
  font-weight: 500;
  color: #666;
  line-height: 1.5;
}

.sa-complete__note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  background: #8b8a87;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.sa-card--complete {
  padding-bottom: 2.4rem;
}

.sa-card--complete .sa-tabs {
  margin-bottom: 0;
}

.sa-card--verified {
  padding: 5.6rem 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 24rem;
}

.sa-complete--verified {
  padding: 0;
}

.sa-complete--verified .sa-complete__icon {
  width: 7.2rem;
  height: 7.2rem;
  margin-bottom: 2.4rem;
}

.sa-complete--verified .sa-complete__title {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sa-text);
  line-height: 1.5;
}

.sa-form--resend {
  margin-top: 2rem;
}

.sa-divider {
  border: none;
  border-top: 1px solid #e5ebf0;
  margin: 2.4rem 0;
}

.sa-complete__fallback {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  background: #eef6fb;
  border: 1px solid #b7d7ea;
  border-radius: 4px;
  text-align: left;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--sa-text);
}

.sa-complete__fallback p {
  margin: 0;
}

.sa-complete__fallback p + p {
  margin-top: 0.8rem;
}

.sa-complete__fallback a {
  color: var(--sa-blue);
  font-weight: 700;
  word-break: break-all;
}

/* Warning modal */
body.sa-modal-open {
  overflow: hidden;
}

.sa-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-sizing: border-box;
}

.sa-modal.is-open {
  display: flex;
}

.sa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 43, 54, 0.45);
}

.sa-modal__dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  background: #fff;
  border: 1px solid #e5ebf0;
  border-radius: 1rem;
  box-shadow: 0 16px 40px rgba(24, 128, 187, 0.18);
  padding: 3.2rem 2.4rem 2.4rem;
  text-align: center;
  box-sizing: border-box;
}

.sa-modal__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.8rem;
  height: 4.8rem;
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: #F4A100;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.sa-modal__title {
  margin: 0 0 1rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sa-text);
  line-height: 1.4;
}

.sa-modal__text {
  margin: 0 0 2.4rem;
  font-size: 1.5rem;
  font-weight: 500;
  color: #555;
  line-height: 1.7;
}

.sa-modal__btn {
  min-width: 14rem;
  height: 4.4rem;
  padding: 0 2rem;
}

.sa-complete--done {
  padding: 2.4rem 0.8rem 3.2rem;
}

.sa-complete--done .sa-complete__title {
  margin-bottom: 1.2rem;
}

.sa-complete--done .sa-complete__text {
  margin-bottom: 2rem;
}

.sa-complete--done .sa-links {
  margin-top: 0;
}

.sa-hint {
  font-size: 1.2rem;
  color: #888;
  margin: 0;
}

/* ========== Responsive: tablet ========== */
@media (max-width: 1100px) {
  .sa-header__inner {
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1.2rem 1.6rem;
  }
  .sa-header__nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 1rem 1.4rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.2rem;
  }
  .sa-header__actions {
    margin-left: auto;
  }
  .sa-header__logo img {
    width: 13rem !important;
    max-width: 13rem !important;
  }
}

/* ========== Responsive: smartphone ========== */
@media (max-width: 768px) {
  .sa-header__inner {
    padding: 1rem 1.2rem;
  }
  .sa-header__nav {
    display: none;
  }
  .sa-header__logo img {
    width: 12rem !important;
    max-width: 12rem !important;
  }
  .sa-header__actions .header_btn--consult,
  .sa-header__actions .header_btn--register {
    width: 10.8rem !important;
    min-width: 10.8rem !important;
    height: 3.6rem !important;
    font-size: 1.2rem !important;
    padding: 0 0.8rem !important;
  }
  .sa-hero {
    padding: 3.2rem 1.4rem 2rem;
  }
  .sa-hero__brand {
    gap: 1.4rem;
    flex-wrap: wrap;
  }
  .sa-hero__logo,
  .sa-hero .sa-hero__logo,
  body.sporom-auth-page .sa-hero__logo {
    width: 13rem !important;
    max-width: 13rem !important;
    min-width: 11rem !important;
  }
  .sa-hero__title {
    font-size: 1.8rem;
    padding: 0.5rem 0;
  }
  .sa-card-wrap {
    padding: 0 1.2rem 4rem;
  }
  .sa-card {
    padding: 0 1.6rem 2.4rem;
    border-radius: 0.8rem;
  }
  .sa-card__title {
    font-size: 1.7rem;
  }
  .sa-card__title--lined {
    margin: 0 -1.6rem 1.6rem;
    padding: 1.8rem 1.6rem 1.2rem;
    font-size: 1.7rem;
  }
  .sa-card--verified {
    padding: 4rem 1.6rem;
    min-height: 18rem;
  }
  .sa-card--reset .sa-lead {
    margin: 2.4rem 0 1.2rem;
    font-size: 1.45rem;
  }
  .sa-tabs {
    margin: 0 -1.6rem 2rem;
    padding: 0 1.6rem;
  }
  .sa-tabs__btn {
    font-size: 1.6rem;
    padding: 1.2rem 0.6rem;
    border-bottom-width: 4px;
  }
  .sa-form {
    gap: 1.6rem;
  }
  .sa-label {
    font-size: 1.45rem;
    gap: 1rem;
  }
  .sa-label input,
  .sa-label select,
  .sa-label textarea {
    height: 4.4rem;
    font-size: 1.5rem;
  }
  .sa-btn {
    font-size: 1.6rem;
  }
  .sa-btn--block {
    height: 5.2rem;
  }
  .sa-links {
    font-size: 1.4rem;
    gap: 1rem;
  }
  .sa-complete {
    padding: 2.4rem 0 1.6rem;
  }
  .sa-complete__icon {
    width: 5.6rem;
    height: 5.6rem;
    margin-bottom: 1.6rem;
  }
  .sa-complete--verified .sa-complete__icon {
    width: 6.4rem;
    height: 6.4rem;
    margin-bottom: 2rem;
  }
  .sa-complete__note,
  .sa-pw-note {
    align-items: flex-start;
  }
  .sa-pw-note {
    padding: 1.2rem;
  }
}

@media (max-width: 480px) {
  .sa-header__actions .header_btn--login {
    font-size: 1.15rem !important;
  }
  .sa-hero__brand {
    flex-direction: column;
    gap: 1rem;
  }
  .sa-hero__title {
    font-size: 1.6rem;
  }
}
