/* ====== Стили для страницы логина ====== */

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-bg, #f0f2f5);
  color: var(--color-type);
  margin: 0;
}

/* Контейнер формы */
.login-container {
  max-width: 400px;
  margin: 30px auto;
  padding: 24px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Заголовок */
.text-inter.heading {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 28px;
  line-height: 120%;
  margin-bottom: 24px;
}

/* Группа поля */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

/* Обертка для лейблов */
.label-wrapper {
  text-align: right;
  margin-bottom: 6px;
}

/* Метки */
.label {
  display: inline-block;
  font-size: 16px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
}

/* Поля ввода */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
select {
  width: 100%;
  /* height: 44px; */
  padding: 12px;
  border: none; /* убираем обычную рамку */
  outline: none; /* убираем чёрную рамку при фокусе */
  border-radius: 8px;
  background-color: #f7f8fa;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  box-sizing: border-box;
}

/* Эффекты фокуса */
input[type="text"]:focus,
input[type="password"]:focus {
  border-color: #4d90fd;
  outline: none;
}

/* Кнопка входа */
.btn-login {
  background-color: #4d90fd;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: "Inter", sans-serif;
  width: 100%;
  margin-top: 10px;
}

.btn-login:hover {
  background-color: #3381ff;
}

/* Сообщение об ошибке */
.error-message {
  background-color: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}

/* Ссылка "Забыли пароль?" */
.forgot-password {
  margin-top: 15px;
  text-align: center;
}

.forgot-password a {
  color: #4d90fd;
  text-decoration: none;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

.forgot-password a:hover {
  text-decoration: underline;
}

/* Нижний ряд под полем пароля */
.form-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  font-family: "Inter", sans-serif;
}

/* Чекбокс и подпись */
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #000;
}

/* Синий линк справа */
.forgot-link {
  color: #4d90fd;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}

.forgot-link:hover {
  text-decoration: none;
}

/* Чекбокс — стилизация */
.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4d90fd;
  margin: 0;
}

hr {
  border: none;
  border-top: 1.5px solid #f0f2f5;
  margin: 20px 0;
}

.message.success {
  background-color: #e6ffed;
  color: #2f7a3e;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.message.error {
  background-color: #ffe6e6;
  color: #a33;
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 10px;
}

.form-toggle-switch {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}

.form-toggle-switch input[type="radio"] {
  display: none;
  width: 150px;
}

.form-toggle-switch label {
  padding: 10px 24px;
  border: 1px solid var(--color-border);
  background-color: var(--color-gray-bg);
  color: var(--color-gray);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  width: 150px;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

/* Активный переключатель */
.form-toggle-switch input[type="radio"]:checked + label {
  background-color: var(--color-main);
  color: var(--color-bg);
  border-color: var(--color-main);
}

/* Наведение */
.form-toggle-switch label:hover {
  border-color: var(--color-main-hover);
  color: var(--color-black);
}

.back-to-login {
  display: block;
  margin: 20px auto;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--color-blue-text);
  text-decoration: none;
  font-weight: 500;
}

.back-to-login:hover {
  text-decoration: underline;
  color: var(--color-main-hover);
}

.sidebar__23icon {
  width: 85%;
}

label {
  cursor: default;
}

.checkbox-policy {
    margin: 20px 0;
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
    display: flex;
    flex-direction: column; /* колонки */
    align-items: flex-start; 
}


.checkbox-policy label {
    display: flex;
    align-items: center; /* чекбокс сверху текста */
    gap: 8px; /* расстояние между чекбоксом и текстом */
    text-align: left; /* текст всегда слева */
    word-break: break-word; /* длинные слова переносятся */
}

.checkbox-policy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  position: relative;
  top: 2px; /* опустить на 2px вниз, можно больше */
}

.checkbox-policy a {
  color: #1a73e8; /* Синий цвет ссылок */
  text-decoration: none;
}

.checkbox-policy a:hover {
  text-decoration: underline; /* Подчеркивание при наведении */
}

.label-r {
  display: block; /* Чтобы занял всю ширину строки */
  position: relative; /* Позиционирование для точной настройки */
  left: 0; /* Смещаем влево (можно регулировать в px) */
  margin-bottom: 8px; /* Отступ снизу */
  font-weight: 500; /* Можно сделать чуть жирнее */
  color: var(--color-gray-dark); /* Поддержка твоей цветовой схемы */
}
