@charset "UTF-8";
/* Поля формы */
.tpl-users .tpl-field {
  margin-bottom: 18px;
}
.tpl-users .field-title {
  margin-bottom: 7px;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}
.tpl-users .field-value input {
  width: 100%;
  max-width: 100%;
  height: 44px;
  padding: 0 12px;
  box-sizing: border-box;
  color: #333;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.tpl-users .field-value input:focus {
  border-color: #ffb828;
  box-shadow: 0 0 0 3px rgba(255, 184, 40, 0.15);
}
/* Запомнить меня */
.tpl-users .user-remember {
  margin: 0 0 18px;
  color: #444;
  font-size: 14px;
}
.tpl-users .user-remember label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.tpl-users .user-remember input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #ffb828;
}
/* Кнопки */
.tpl-users .user-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.tpl-users .user-buttons .tpl-form-button, .tpl-users .password-forgot .tpl-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  box-sizing: border-box;
  color: #222;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  background: #ffb828;
  border: 1px solid #ffb828;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.tpl-users .user-buttons .tpl-form-button:hover, .tpl-users .password-forgot .tpl-form-button:hover {
  background: #eda91b;
  border-color: #eda91b;
}
/* Регистрация */
.tpl-users .user-buttons a:not(.tpl-form-button) {
  color: #555;
  font-size: 14px;
  text-decoration: none;
}
.tpl-users .user-buttons a:not(.tpl-form-button):hover {
  color: #d99400;
  text-decoration: underline;
}
/* Восстановление пароля */
.tpl-users .password-forgot {
  margin-top: 25px;
}
.tpl-users .password-forgot p {
  margin-bottom: 14px;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}
/* Предупреждение о cookie */
.tpl-users .login-requires-message {
  margin-top: 20px;
  color: #777;
  font-size: 12px;
  line-height: 1.5;
}
.user-registration, .tpl-user-login {
  max-width: 420px;
}
/* Ограничение ширины формы */
.tpl-users {
  width: 100%;
  box-sizing: border-box;
}
/* Белый цвет текстов */
.tpl-users, .tpl-users .field-title, .tpl-users .user-remember, .tpl-users .user-remember label, .tpl-users .password-forgot p, .tpl-users .login-requires-message {
  color: #fff;
}
/* Поля ввода */
.tpl-users .field-value input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
/* Ссылка регистрации */
.tpl-users .user-buttons a:not(.tpl-form-button) {
  color: #fff;
}
.tpl-users .user-buttons a:not(.tpl-form-button):hover {
  color: #ffb828;
}
/* Ссылки и текст восстановления пароля */
.tpl-users .password-forgot p {
  color: #fff;
}
.tpl-users .login-requires-message {
  color: rgba(255, 255, 255, 0.75);
}
.tpl-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  background: #ffb828;
  color: #222;
  border: 2px solid #ffb828;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tpl-form-button:hover {
  background: #222;
  color: #fff;
  border-color: #222;
}
.tpl-form-button:active {
  transform: translateY(1px);
}
.tpl-form-button:focus-visible {
  outline: 3px solid rgba(255, 184, 40, 0.35);
  outline-offset: 3px;
}
.tpl-form-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
/* Поле примечания */
.user-registration textarea[name="note"] {
  display: block;
  width: 100%;
  max-width: 460px;
  min-height: 110px;
  padding: 12px 14px;
  box-sizing: border-box;
  color: #333;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.user-registration textarea[name="note"]:focus {
  border-color: #ffb828;
  box-shadow: 0 0 0 3px rgba(255, 184, 40, 0.2);
}
/* Контейнер согласия */
.user-registration .tpl-field.field-required .field-value {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
/* Checkbox */
.user-registration input[type="checkbox"][name="personal_data"] {
  width: 20px;
  height: 20px;
  margin: 0 8px 0 0;
  vertical-align: middle;
  accent-color: #ffb828;
  cursor: pointer;
}
/* Область checkbox */
.user-registration .field-value label {
  display: inline-flex;
  align-items: flex-start;
  vertical-align: middle;
  cursor: pointer;
}
/* Звёздочка обязательного поля */
.user-registration .field-value label span {
  color: #ff4545;
  margin-left: 3px;
}
/* Форма добавления сообщения */
form:has(.post-policy) {
  max-width: 620px;
}
/* Заголовок формы */
h3.post_form {
  margin: 35px 0 25px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}
/* Подписи и обязательные поля */
form:has(.post-policy) {
  font-size: 15px;
  line-height: 1.5;
}
form:has(.post-policy) .star {
  color: #e53935;
}
/* Текстовые поля */
form:has(.post-policy) input[type="text"], form:has(.post-policy) textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-top: 7px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  color: #222;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
/* Высота текстового поля */
form:has(.post-policy) textarea {
  min-height: 130px;
  resize: vertical;
}
/* Состояние при фокусе */
form:has(.post-policy) input[type="text"]:focus, form:has(.post-policy) textarea:focus {
  border-color: #ffb828;
  box-shadow: 0 0 0 3px rgba(255, 184, 40, 0.18);
}
/* Согласие с политикой */
.post-policy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.5;
}
.post-policy input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #ffb828;
  cursor: pointer;
}
.post-policy label {
  cursor: pointer;
}
.post-policy a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-policy a:hover {
  text-decoration: none;
}
/* Кнопка отправки */
form:has(.post-policy) input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 32px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  background: #ffb828;
  border: 2px solid #ffb828;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}
form:has(.post-policy) input[type="submit"]:hover {
  color: #fff;
  background: #222;
  border-color: #222;
}
form:has(.post-policy) input[type="submit"]:active {
  transform: translateY(1px);
}
form:has(.post-policy) input[type="submit"]:focus-visible {
  outline: 3px solid rgba(255, 184, 40, 0.35);
  outline-offset: 3px;
}
/* Мобильная версия */
@media (max-width: 600px) {
  form:has(.post-policy) {
    width: 100%;
  }
  form:has(.post-policy) input[type="submit"] {
    width: 100%;
  }
}
/* Адаптация */
@media (max-width: 480px) {
  .tpl-users {
    max-width: 100%;
  }
}
/* Адаптивность */
@media (max-width: 480px) {
  .tpl-users .user-buttons {
    gap: 12px;
  }
  .tpl-users .user-buttons .tpl-form-button {
    min-width: 120px;
  }
}
