/* Сброс отступов, 100% высота для выравнивания по центру */
html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Mulish", sans-serif;
  text-decoration: none !important;
}
/* ======================================================
   1.  Убираем «голубую заливку» при фокусе и автозаполнении
   ====================================================== */

/* 1.1  Своё оформление для input:focus,
        тем самым перекрываем стандартную синюю заливку */
.auth-form input:focus {
  background: #fff; /* белый фон вместо синего */
  border: 1px solid #999999; /* можно оставить прежний цвет */
  outline: none; /* убираем системный outline  */
}

/* 1.2  Перекрываем заливку Chrome / Edge (autofill) */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus,
.auth-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important; /* затираем заливку */
  -webkit-text-fill-color: #000 !important; /* сохраняем цвет текста */
}

/* 1.3  То же самое для Firefox */
@-moz-document url-prefix() {
  .auth-form input:-moz-autofill {
    box-shadow: 0 0 0 1000px #fff inset !important;
  }
}

main {
  display: flex;
  justify-content: center; /* горизонтальное выравнивание */
  align-items: center; /* вертикальное выравнивание */
  height: 100%; /* main занимает всю доступную высоту экрана */
}

/* Контейнер для форм */
.auth-form-section {
  width: 100%;
  max-width: 38.1944rem;
  padding: 1.3889rem;
  box-sizing: border-box;
}

/* Общие стили для форм */
.auth-form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

/* Заголовок (h1) внутри формы */
.auth-form h1 {
  margin-top: 0;
  text-align: center;
  font-size: 2.7778rem;
  font-weight: 500;
  letter-spacing: 0.0694rem;
  color: #333333;
  margin-bottom: 1.6667rem;
}

/* Метки полей */
.auth-form label {
  font-weight: 400;
  font-size: 0.9722rem;
  color: #666666;
}
.auth-form label span {
  color: #d32525;
  font-size: 0.9722rem;
}

/* Инпуты */
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  width: 100%;
  padding: 1.1111rem 0.6944rem;
  border: 1px solid #999999;
  font-size: 1.25rem;
  line-height: 1.6667rem;
  outline: none;
  box-sizing: border-box;
  border-radius: 1px;
  margin: 0.5556rem 0 0.6944rem 0;
}

/* Обёртка для позиции кнопки-глаза */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* Кнопка-глаз (Bootstrap Icons) */
.toggle-password {
  position: absolute;
  right: 0.6944rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  font-size: 1.3889rem; /* Размер иконки */
  opacity: 0.6;
  transition: opacity 0.2s ease;
}
.toggle-password:hover {
  opacity: 1;
}

/* Кнопка submit */
.auth-submit {
  background-color: #c9c9c9;
  color: #ffffff;
  border: none;
  padding: 1.0417rem 0;
  font-size: 1.6667rem;
  cursor: pointer;
  margin-top: 1.6667rem;
  border-radius: 1px;
  margin-bottom: 0.2778rem;
}
.auth-submit:hover {
  background-color: #161616;
}

/* Ссылки */
.auth-already {
  font-size: 1.1111rem;
  color: #666666;
  line-height: 1.6667rem;
  text-align: center;
  margin: 0;
}
.auth-already a {
  color: #161616;
  text-decoration: none;
  font-weight: 500;
  margin-top: 0.2778rem;
}

.forgot-link {
  text-align: right;
  margin: 0;
  font-size: 0.9722rem;
}
.forgot-link a {
  color: #161616;
  text-decoration: none;
  font-weight: 400;
}
.block-password-label {
  display: flex;
  justify-content: space-between;
}
/* === 1.1 рамка поля с ошибкой === */
.input-error {
  border: 1px solid #d32525 !important; /* красный бордер */
}

/* === 1.2 сообщение об ошибке === */
.error-message {
  font-size: 0.9722rem;
  color: #d32525;
  margin: 0.2778rem 0 0; /* сверху-чуть, снизу-0 */
  text-align: left; /* выравниваем слева, как на скрине */
  overflow-wrap: anywhere;
  line-height: 1.35;
}

/* Скрывающий класс */
.hidden {
  display: none;
}
/* ===== Стили модального окна ===== */

/* Полупрозрачная подложка на всю страницу */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* затемнение */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* чтобы окно было поверх всего */
}

/* Контейнер самого окна */
.modal-content {
  background: #fff;
  padding: 1.6667rem 1.5278rem;
  border-radius: 1px;
  max-width: 40.2778rem;
  width: 90%; /* немного адаптивности */
  position: relative;
  text-align: center; /* выравниваем текст по центру */
  justify-content: center;
  min-height: 18.0556rem;
  display: flex;
  flex-direction: column;
}
.modal-content p {
  font-size: 1.6667rem;
  font-weight: 500;
  color: #333333;
}

/* Кнопка "×" (закрыть окно) */
.close-modal {
  position: absolute;
  top: 1.0417rem;
  right: 1.0417rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  color: #666666;
}

/* Общий класс для скрытия (у вас он уже есть) */
.hidden {
  display: none;
}

.forgot-password {
  text-align: center;
  margin-bottom: 1.6667rem;
}
.forgot-password h1 {
  margin-bottom: 0.6944rem;
}
.forgot-password h4 {
  font-weight: 500;
  font-size: 1.3889rem;
  color: #333333;
  margin: 0;
  letter-spacing: 0.0694rem;
}
