/* Страница регистрации */

body.register-page {
  background: #8a8a8a;
  min-height: 100dvh;
}

.register-wrap {
  min-height: calc(100dvh - 52px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px) var(--pad-x) clamp(40px, 6vw, 72px);
}

.register-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--white);
  padding: clamp(40px, 5vw, 50px) clamp(28px, 4vw, 44px) clamp(36px, 4vw, 44px);
  border-radius: 0;
}

.register-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  color: var(--black);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s;
}

.register-modal__close:hover,
.register-modal__close:focus-visible {
  opacity: 0.45;
}

.register-modal__title {
  font-size: clamp(13px, 1.8vw, 15px);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  line-height: 1.35;
  margin: 0 44px 28px 0;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.register-field label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--black);
}

.register-star {
  color: #d50000;
  font-weight: 600;
}

.register-field input:not(.register-phone__input):not(.register-field__input) {
  width: 100%;
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid #d1d1d1;
  border-radius: 0;
  background: var(--white);
  color: var(--black);
}

.register-pass-wrap {
  position: relative;
  width: 100%;
  border: 1px solid #d1d1d1;
  background: var(--white);
  display: flex;
  align-items: center;
}

.register-pass-wrap:focus-within {
  border-color: var(--black);
}

.register-pass-wrap .register-field__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 44px 14px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--black);
}

.register-field input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.register-field input:not(.register-field__input):not(.register-phone__input):focus {
  outline: none;
  border-color: var(--black);
}

.register-phone {
  position: relative;
  display: flex;
  width: 100%;
  border: 1px solid #d1d1d1;
  background: var(--white);
}

.register-phone:focus-within {
  border-color: var(--black);
}

.register-phone__prefix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 12px 0 14px;
  border: none;
  border-right: 1px solid #d1d1d1;
  background: var(--white);
  cursor: pointer;
  font: inherit;
  color: var(--black);
}

.register-phone__prefix:hover,
.register-phone__prefix:focus-visible {
  background: var(--gray-light);
}

.register-phone__flag {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.register-phone__flag-emoji {
  display: block;
  font-size: 18px;
  line-height: 1;
}

.register-phone__list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 30;
  min-width: 240px;
  max-height: 260px;
  overflow-y: auto;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: var(--white);
  border: 1px solid #d1d1d1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.register-phone__list[hidden] {
  display: none !important;
}

.register-phone__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  text-align: left;
  color: var(--black);
  transition: background 0.15s;
}

.register-phone__option:hover,
.register-phone__option:focus-visible {
  background: var(--gray-light);
}

.register-phone__option-name {
  flex: 1;
}

.register-phone__option-dial {
  font-size: 13px;
  color: #6a6a6a;
  font-variant-numeric: tabular-nums;
}

.register-phone__input {
  flex: 1;
  min-width: 0;
  font-family: var(--font);
  font-size: 15px;
  padding: 14px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--black);
}

.register-phone__input:focus {
  outline: none;
}

.register-phone__input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.register-pass-wrap .register-field__input:focus {
  outline: none;
}

.register-pass-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--black);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s;
}

.register-pass-toggle:hover,
.register-pass-toggle:focus-visible {
  opacity: 1;
}

.register-checks {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.register-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
  color: #6a6a6a;
  user-select: none;
}

.register-check input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: var(--black);
  cursor: pointer;
}

.register-check a,
.register-legal-inline {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.register-check a:hover {
  color: var(--black);
}

.register-check.register-check--error,
.register-check.register-check--error span {
  color: #b00020;
}

.register-check.register-check--error a {
  color: #b00020;
}

.register-submit {
  width: 100%;
  margin-top: 12px;
  padding: 16px 24px;
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.register-submit:hover,
.register-submit:focus-visible {
  opacity: 0.88;
}

.register-login-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 14px;
  color: var(--black);
  line-height: 1.5;
}

.register-login-foot a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.register-login-foot a:hover {
  opacity: 0.65;
}

.register-page .header__logo--word.header__logo--login {
  line-height: 0;
  text-decoration: none;
}

.register-page .header__logo--word.header__logo--login .header__logo-img {
  height: clamp(19px, 2.5vw, 24px);
  width: auto;
  display: block;
}

.register-page .header__logo--word.header__logo--login:hover {
  opacity: 0.55;
}

.register-page .header__right .header__icon-btn:not(.header__icon-btn--login-current) {
  opacity: 0.5;
}

.register-page .header__right .header__icon-btn--login-current {
  opacity: 1;
}

@media (max-width: 480px) {
  .register-wrap {
    align-items: stretch;
  }

  .register-modal {
    margin-inline: auto;
  }
}
