/* Hero Section Styles */
.login-hero {
  min-height: 50vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-background {
  background-attachment: fixed;
}

/* Partículas animadas */
.particles-container {
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  width: 20px;
  height: 20px;
  top: 20%;
  left: 20%;
  animation-delay: 0s;
}

.particle:nth-child(2) {
  width: 15px;
  height: 15px;
  top: 60%;
  left: 80%;
  animation-delay: 2s;
}

.particle:nth-child(3) {
  width: 25px;
  height: 25px;
  top: 80%;
  left: 10%;
  animation-delay: 4s;
}

.particle:nth-child(4) {
  width: 12px;
  height: 12px;
  top: 30%;
  left: 70%;
  animation-delay: 1s;
}

.particle:nth-child(5) {
  width: 18px;
  height: 18px;
  top: 70%;
  left: 50%;
  animation-delay: 3s;
}

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

/* Glassmorphism effects */
.backdrop-blur {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Barra de progreso del formulario */
.form-progress-bar {
  height: 6px;
  background: #f8f9fa;
}

.progress-fill {
  transition: width 0.5s ease;
}

/* Efectos de transición generales */
.transition-all {
  transition: all 0.3s ease !important;
}

.hover-lift:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

/* Secciones del formulario */
.form-section {
  animation: fadeInUp 0.6s ease-out;
  opacity: 0;
  animation-fill-mode: forwards;
  animation-delay: 0.2s;
}

/* Iconos de sección */
.section-icon {
  transition: all 0.3s ease;
}

.form-section:hover .section-icon {
  transform: scale(1.1);
}

/* Campos de formulario mejorados */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: #667eea;
}

.form-floating > .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Toggle de contraseña */
.password-toggle {
  z-index: 10;
  cursor: pointer;
}

.password-toggle i {
  transition: all 0.3s ease;
}

.password-toggle:hover i {
  color: #667eea !important;
  transform: scale(1.1);
}

/* Botones mejorados */
.btn {
  transition: all 0.3s ease;
  border-width: 2px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #218838, #1ea085);
}

.btn-outline-primary {
  border-color: #667eea;
  color: #667eea;
}

.btn-outline-primary:hover {
  background-color: #667eea;
  border-color: #667eea;
}

/* Divider para el enlace de registro */
.divider-container hr {
  border-color: #dee2e6;
  opacity: 0.5;
}

.register-link {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Animaciones de entrada */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estados de validación mejorados */
.was-validated .form-control:valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.94-.94 1.44 1.44L7.4 4.5l.94.94L4.6 9.18z'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
}

/* Responsive */
@media (max-width: 768px) {
  .login-hero {
    min-height: 40vh;
  }
  
  .hero-title h1 {
    font-size: 2.5rem !important;
  }
  
  .card-body {
    padding: 2rem !important;
  }
  
  .form-actions .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .login-hero {
    min-height: 35vh;
  }
  
  .hero-title h1 {
    font-size: 2rem !important;
  }
  
  .card-body {
    padding: 1.5rem !important;
  }
}

/* Efectos adicionales */
.form-wrapper {
  animation: slideInUp 0.8s ease-out;
}

.form-header {
  animation: fadeInUp 0.6s ease-out;
}
