/* Animation de fond cyberpunk pour page de login - VERSION MINIMALISTE */

/* Animation de fond principale */
.login-cyberpunk-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -10;
  overflow: hidden;
  background: linear-gradient(135deg, #07080b 0%, #0a0e14 50%, #07080b 100%);
  /* Optimisation GPU */
  will-change: transform;
  transform: translateZ(0);
}

/* Grille cyberpunk avec effet de lumière subtil */
.cyberpunk-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(0, 234, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 234, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  opacity: 0.3;
  /* Optimisation GPU */
  will-change: opacity;
  transform: translateZ(0);
}

/* Effet de lumière subtil qui pulse sur la grille */
.cyberpunk-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(0, 234, 255, 0.15) 0%,
    rgba(0, 234, 255, 0.08) 30%,
    rgba(0, 234, 255, 0.03) 60%,
    transparent 80%
  );
  animation: gridLightPulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gridLightPulse {
  0%, 100% { 
    opacity: 0.3;
    transform: scale(1);
  }
  50% { 
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Cercles d'onde cyberpunk */
.cyber-ripples {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
}

.cyber-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border: 1px solid rgba(0, 234, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: rippleExpand 6s ease-out infinite;
}

.cyber-ripple:nth-child(2) {
  animation-delay: -2s;
  border-color: rgba(0, 255, 156, 0.3);
}

.cyber-ripple:nth-child(3) {
  animation-delay: -4s;
  border-color: rgba(255, 71, 255, 0.3);
}

@keyframes rippleExpand {
  0% {
    width: 50px;
    height: 50px;
    opacity: 1;
  }
  100% {
    width: 800px;
    height: 800px;
    opacity: 0;
  }
}

/* Optimisations responsive */
@media (max-width: 768px) {
  .cyber-ripples {
    display: none; /* Masquer les ondulations sur mobile */
  }
}

/* Optimisations pour appareils à faible puissance */
@media (max-width: 480px) {
  .cyberpunk-grid {
    background-size: 100px 100px; /* Grille moins dense */
  }
  
  .cyberpunk-grid::before {
    display: none; /* Pas d'effet de lumière sur très petits écrans */
  }
}

@media (prefers-reduced-motion: reduce) {
  .cyberpunk-grid::before,
  .cyber-ripple {
    animation: none;
  }
  
  /* Garde juste un fond statique pour les utilisateurs qui préfèrent moins d'animation */
  .login-cyberpunk-background {
    background: linear-gradient(135deg, #07080b 0%, #0a0e14 50%, #07080b 100%);
  }
}