/* =========================
   СТИЛИ СТРАНИЦЫ LOGIN
   ========================= */

/* Фон всей страницы */
.auth-section {
  min-height: calc(100vh - 150px); /* с учётом header+footer */
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
  padding: 40px 20px;
}

/* Контейнер формы */
.auth-container {
  background: rgba(20,20,20,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  animation: fadeInUp 0.6s ease;
}

/* Заголовок */
.auth-title {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Группы полей */
.auth-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

/* Метки */
.auth-form label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #ddd;
}

/* Инпуты */
.auth-form input {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.auth-form input:focus {
  border-color: #e50914;
  background: rgba(255,255,255,0.1);
}

/* Кнопка входа */
.auth-form .btn {
  margin-top: 10px;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.auth-form .btn-primary {
  background: #e50914;
  color: #fff;
  border: none;
}
.auth-form .btn-primary:hover {
  background: #ff1b1b;
  transform: translateY(-2px);
}

/* Подсказка */
.auth-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
  color: #bbb;
}
.auth-note a {
  color: #e50914;
  text-decoration: none;
  font-weight: 600;
}
.auth-note a:hover {
  text-decoration: underline;
}

/* Анимация появления */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Блок ошибок и успеха */
.error-box {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid red;
  padding: 12px;
  margin-top: 15px;
  border-radius: 8px;
  color: #ff4d4d;
}

.success-box {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid green;
  padding: 12px;
  margin-top: 15px;
  border-radius: 8px;
  color: #4dff4d;
}

/* Пол */
.gender-group {
  margin-bottom: 20px;
}

.gender-options {
  display: flex;
  gap: 15px;
}

.gender-option input {
  display: none;
}

.gender-option span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #444;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s;
}

.gender-option input:checked + span {
  background: #e50914;
  color: #fff;
  border-color: #e50914;
}

.auth-error {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff4d4d;
  color: #ff4d4d;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
}
