/* 🔹 Специальные стили для страницы входа */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #4361ee 0%, #7209b7 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}

/* 🔹 Анимированный фон */
.login-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255,255,255,0.08) 0%, transparent 50%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(180deg); }
}

/* 🔹 Логотип на странице входа */
.login-logo {
  text-align: center;
  margin-bottom: 40px;
  z-index: 2;
  position: relative;
}

.login-logo h1 {
  font-size: 48px;
  background: linear-gradient(135deg, #ffffff 0%, #e0e7ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
  font-weight: 800;
}

.login-logo p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 18px;
  margin: 0;
  font-weight: 300;
}

/* 🔹 Форма входа */
.login-form-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 25px rgba(67, 97, 238, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 2;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-form-container:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.2),
    0 12px 35px rgba(67, 97, 238, 0.4);
}

/* 🔹 Заголовок формы */
.form-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 🔹 Поля ввода */
.form-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
  box-sizing: border-box;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
  background: white;
  transform: translateY(-2px);
}

.form-input::placeholder {
  color: var(--text-light);
}

/* 🔹 Чекбокс "Запомнить меня" */
.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 25px 0;
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #e2e8f0;
  accent-color: var(--primary);
  cursor: pointer;
}

/* 🔹 Кнопки */
.form-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 25px;
}

.form-btn {
  flex: 1;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.secondary-btn {
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary);
  border: 2px solid rgba(67, 97, 238, 0.2);
}

.secondary-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* 🔹 Переключение формы */
.toggle-section {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  margin-top: 8px;
}

.toggle-btn:hover {
  background: rgba(67, 97, 238, 0.1);
  transform: translateY(-1px);
}

/* 🔹 Адаптивность */
@media (max-width: 768px) {
  .login-page {
    padding: 20px 15px;
  }
  
  .login-form-container {
    padding: 30px 25px;
  }
  
  .login-logo h1 {
    font-size: 36px;
  }
  
  .login-logo p {
    font-size: 16px;
  }
  
  .form-buttons {
    flex-direction: column;
  }
}

/* 🔹 Анимация появления */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form-container {
  animation: slideUp 0.6s ease-out;
}