/* --- Базовые настройки (в стиле основного сайта) --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #050508; /* Глубокий черный */
  color: #e5e5e5;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- Задний фон с блюром (как на главном баннере) --- */
.auth-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('img/image.jpg') center/cover no-repeat; /* Используйте ту же картинку */
  filter: blur(4px); /* Чуть сильнее размытие для фокуса на форме */
  transform: scale(1.1); /* Убираем полосы по краям */
  z-index: -2;
}

body::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(5, 5, 8, 0.7), #050508);
  z-index: -1;
}

/* --- Контейнер карточки авторизации --- */
.auth-container {
  background: rgba(17, 18, 23, 0.85); /* Полупрозрачный темный футуристичный серый */
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  border: 1px solid rgba(0, 240, 255, 0.15); /* Тонкая неоновая рамка */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 240, 255, 0.05);
  backdrop-filter: blur(10px); /* Матовое стекло */
  text-align: center;
}

/* --- Логотип и подзаголовок --- */
.auth-logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: #00f0ff; /* Сплошной бирюзовый */
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  margin-bottom: 10px;
}

.logo-accent {
  color: #fff;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: #8f9cae;
  margin-bottom: 35px;
  line-height: 1.4;
}

/* --- Поля ввода (копия ваших стилей формы) --- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #c5c6c7;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: #4a5568;
  transition: color 0.3s ease;
  pointer-events: none; /* Текст и иконки пропускают клики */
}

.input-wrapper input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  background-color: #050508;
  border: 1px solid #1a1c23;
  border-radius: 8px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Неоновый фокус */
.input-wrapper input:focus {
  outline: none;
  border-color: #00f0ff;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.input-wrapper input:focus + i {
  color: #00f0ff;
}

/* --- Чекбокс и Ссылка "Забыли пароль" --- */
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #8f9cae;
  margin-top: -5px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.remember-me input {
  display: none; /* Прячем стандартный чекбокс */
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  border: 1px solid #1a1c23;
  background: #050508;
  border-radius: 4px;
  position: relative;
  transition: all 0.2s ease;
}

.remember-me input:checked + .checkbox-custom {
  background: #00f0ff;
  border-color: #00f0ff;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.remember-me input:checked + .checkbox-custom::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 10px;
  color: #050508;
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.forgot-pass:hover {
  color: #00f0ff;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

/* --- Кнопка отправки --- */
.btn-submit {
  background-color: #00f0ff;
  color: #050508;
  border: none;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
  margin-top: 10px;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
  background-color: #40f6ff;
}

/* --- Футер карточки --- */
.auth-footer {
  margin-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #65758d;
}

.link-highlight {
  color: #00f0ff;
  font-weight: 600;
  transition: all 0.2s;
}

.link-highlight:hover {
  text-decoration: underline;
}

/* --- Адаптивность под мобилки --- */
@media (max-width: 480px) {
  .auth-container {
    padding: 30px 20px;
    margin: 15px;
    border-radius: 12px;
  }
  .auth-logo {
    font-size: 1.6rem;
  }
}
/* Красивая неоновая ошибка в стиле киберпанк */
.form-result.error {
  background: rgba(255, 0, 92, 0.07);
  border: 1px solid rgba(255, 0, 92, 0.4);
  color: #ff005c;
  box-shadow: 0 0 15px rgba(255, 0, 92, 0.15);
  padding: 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: shake 0.4s ease-in-out; /* Эффект тряски при ошибке */
}

/* Анимация тряски карточки при ошибке */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}
