/* Базовые настройки страницы */
body {
  background-color: #060608;
  color: #ffffff;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Оболочка с фоновым эскизом (ИЗМЕНЕНО: добавлено позиционирование) */
.auth-bg-wrapper {
  position: relative; /* Важно для привязки видео */
  overflow: hidden; /* Прячем видео, если оно шире экрана */
  background-image: url("https://studrender.space/static/js/bg_email.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Настройки видеофона (НОВЫЙ БЛОК) */
.auth-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%) scale(1.05);
  object-fit: cover;
  z-index: 1; /* Видео ложится поверх фоновой картинки дива */
}

/* Стеклянная карточка как в письме с повышенной прозрачностью */
.auth-card {
  background-color: rgba(13, 13, 13, 0.8);
  z-index: 10; /* Карточка всегда поднимается поверх видеоролика */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9);

  /* Полностью отключаем размытие заднего плана, если оно где-то оставалось */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  max-width: 440px;
  width: 100%;
  padding: 45px 40px;
  box-sizing: border-box;
}

/* Логотип */
.auth-logo {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 25px;
}
.auth-logo span {
  color: #888888;
}

/* Заголовки */
.auth-card h1 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 24px 0;
  text-align: center;
}

/* Описание */
.auth-card p {
  color: #cccccc;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 0;
  margin-bottom: 24px;
  text-align: center;
}

/* Контейнеры полей ввода */
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #a0a0a0;
}

/* Темные матовые инпуты */
.form-group input,
.form-group select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-sizing: border-box;
  font-size: 15px;
  transition: all 0.2s ease;
}
.form-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

/* Белая контрастная кнопка */
.btn-submit {
  width: 100%;
  padding: 15px;
  background: #ffffff;
  border: none;
  border-radius: 14px;
  color: #000000;
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  margin-top: 15px;
  transition: all 0.2s ease;
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.2);
}
.btn-submit:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

/* Подвал */
.auth-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 14px;
  color: #777777;
}
.auth-footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

/* Ошибки */
.error-list {
  color: #ff6b6b;
  font-size: 14px;
  margin-bottom: 20px;
  padding-left: 20px;
}
.field-error {
  color: #ff6b6b;
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

/* Кнопка включения звука в правом нижнем углу */
.audio-btn {
  position: absolute;
  bottom: 25px;
  right: 25px;
  z-index: 3; /* Поверх видеофона */
  background: rgba(13, 13, 13, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.audio-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.audio-btn:active {
  transform: translateY(0);
}
