#user-register-form {
  --reg-accent: rgba(166, 216, 212, 1);
  --reg-accent-hover: #8fc9c4;
  --reg-text: #242536;
  --reg-muted: #777b8b;
  --reg-border: #e2e4ed;
  --reg-surface: #f7f8fc;

  box-sizing: border-box;
  width: 100%;
  max-width: 680px;
  margin: 24px auto 64px;
  padding: 40px;
  color: var(--reg-text);
  background: #fff;
  border: 1px solid #e9eaf1;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgb(31 36 68 / 6%);
  font-size: 15px;
  line-height: 1.55;
}

#user-register-form *,
#user-register-form *::before,
#user-register-form *::after {
  box-sizing: border-box;
}

/* Заголовок страницы */

#block-mosvintage-page-title {
  text-align: center;
}

#block-mosvintage-page-title .page-title {
  margin: 36px 0 12px;
  color: #242536;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -1.2px;
}

/* Общая структура полей */

#user-register-form .form-item {
  margin: 0 0 24px;
}

#user-register-form .form-item label,
#user-register-form #edit-user-picture-0--label {
  display: block;
  margin: 0 0 8px;
  color: #303246;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}

/* Звёздочка обязательного поля */

#user-register-form .form-required::after {
  display: inline-block;
  width: auto;
  height: auto;
  margin-left: 4px;
  background: none;
  content: "*";
  color: #e05b69;
  font-size: 14px;
  font-weight: 700;
  vertical-align: baseline;
}

/* Поля ввода */

#user-register-form input.form-email,
#user-register-form input.form-text,
#user-register-form input.form-password,
#user-register-form input.password-field,
#user-register-form input.password-confirm,
#user-register-form textarea.form-textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  margin: 0;
  padding: 13px 15px;
  color: var(--reg-text);
  background: #fff;
  border: 1px solid var(--reg-border);
  border-radius: 10px;
  box-shadow: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition:
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

#user-register-form textarea.form-textarea {
  min-height: 132px;
  resize: vertical;
}

#user-register-form input::placeholder,
#user-register-form textarea::placeholder {
  color: #a3a6b4;
}

#user-register-form input:focus,
#user-register-form textarea:focus {
  border-color: var(--reg-accent);
  box-shadow: 0 0 0 4px rgb(99 91 219 / 11%);
}

/* Подсказки */

#user-register-form .description {
  margin-top: 8px;
  color: var(--reg-muted);
  font-size: 12.5px;
  line-height: 1.65;
}

#user-register-form .description ul,
#user-register-form .tips {
  margin: 8px 0 0;
  padding-left: 19px;
}

#user-register-form .description li {
  margin: 3px 0;
}

/* Блок пароля */

#user-register-form #edit-pass {
  margin-bottom: 28px;
}

#user-register-form #edit-pass .password-parent,
#user-register-form #edit-pass .confirm-parent {
  margin-bottom: 22px;
}

#user-register-form .password-strength {
  margin-top: 12px;
}

#user-register-form .password-strength__meter {
  height: 5px;
  overflow: hidden;
  background: #ececf4;
  border-radius: 10px;
}

#user-register-form .password-strength__indicator {
  height: 100%;
  border-radius: 10px;
}

#user-register-form .password-strength__title {
  margin-top: 6px;
  color: var(--reg-muted);
  font-size: 12px;
}

#user-register-form .password-confirm-message {
  margin-top: 8px;
  color: var(--reg-muted);
  font-size: 12px;
}

/* Текст и контакты */

#user-register-form #edit-field-text-wrapper {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #ececf2;
}

/* Аватарка */

#user-register-form #edit-user-picture-wrapper {
  margin-top: 28px;
  padding: 22px;
  background: var(--reg-surface);
  border: 1px dashed #d9dce8;
  border-radius: 12px;
}

#user-register-form #edit-user-picture-wrapper .form-item {
  margin-bottom: 0;
}

#user-register-form #edit-user-picture-wrapper input[type="file"] {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 10px;
  color: var(--reg-muted);
  background: #fff;
  border: 1px solid var(--reg-border);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}

#user-register-form input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 12px;
  color: #45405f;
  background: #efedff;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

#user-register-form input[type="file"]::file-selector-button:hover {
  background: #e3e0ff;
}

/* Кнопка регистрации */

#user-register-form #edit-actions {
  margin-top: 30px;
}

#user-register-form #edit-submit {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 22px;
  color: #243b3a;
  background: var(--reg-accent, rgba(166, 216, 212, 1));
  border: 1px solid rgba(166, 216, 212, 1);
  border-radius: 10px;
  box-shadow: 0 5px 12px rgba(80, 150, 145, 0.16);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s ease;
}

#user-register-form #edit-submit:hover {
  background: #8fc9c4;
  border-color: #8fc9c4;
  box-shadow: 0 7px 17px rgba(80, 150, 145, 0.24);
  transform: translateY(-1px);
}

#user-register-form #edit-submit:active {
  transform: translateY(0);
}

#user-register-form #edit-submit:focus-visible {
  outline: 3px solid rgb(99 91 219 / 35%);
  outline-offset: 3px;
}

/* Состояния ошибок */

#user-register-form input.error,
#user-register-form textarea.error {
  border-color: #df5967;
}

#user-register-form input.error:focus,
#user-register-form textarea.error:focus {
  box-shadow: 0 0 0 4px rgb(223 89 103 / 10%);
}

/* Сообщение Antibot */

#user-register-form .antibot-message {
  margin-bottom: 20px;
  padding: 12px 14px;
  color: #8d3e36;
  background: #fff2f0;
  border: 1px solid #f4d2cd;
  border-radius: 8px;
}

/* Мобильная версия */

@media (max-width: 600px) {
  #block-mosvintage-page-title .page-title {
    margin-top: 24px;
    font-size: 30px;
  }

  #user-register-form {
    width: calc(100% - 24px);
    margin: 18px auto 36px;
    padding: 24px 18px;
    border-radius: 15px;
  }

  #user-register-form .form-item {
    margin-bottom: 20px;
  }

  #user-register-form #edit-user-picture-wrapper {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #user-register-form *,
  #user-register-form *::before,
  #user-register-form *::after {
    transition: none !important;
  }
}