/**
 * Gradient waves background – auth pages (behind image).
 * Based on: https://codepen.io/baarbaracrr/pen/KKovmGb (Bárbara Rodríguez)
 * Scoped to .auth-gradient-waves so it only affects the auth left column.
 */

.auth-cover-content-inner.auth-gradient-waves {
  position: relative;
  overflow: hidden;
  /* Active gradient: Deep Ocean but calmer (less neon) */
  background: linear-gradient(-45deg, #052c65, #0056b3, #3d8bfd, #0056b3);
  background-size: 400% 400%;
  animation: auth-gradient 12s ease infinite;
}

@keyframes auth-gradient {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 0%;
  }
}

.auth-gradient-waves .auth-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 12em;
  z-index: 0;
  pointer-events: none;
}

.auth-gradient-waves .auth-waves .wave {
  /* Glassmorphism base */
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  
  border-radius: 1000% 1000% 0 0;
  position: absolute;
  width: 200%;
  height: 22em;
  animation: auth-wave-sway 10s ease-in-out infinite alternate;
  transform: translate3d(0, 0, 0);
  bottom: 0;
  left: -50%;
  z-index: 1;
}

.auth-gradient-waves .auth-waves .wave:nth-of-type(2) {
  bottom: -1.5em;
  animation: auth-wave-sway 13s -2s ease-in-out infinite alternate-reverse;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 2;
}

.auth-gradient-waves .auth-waves .wave:nth-of-type(3) {
  bottom: -3em;
  animation: auth-wave-sway 16s -4s ease-in-out infinite alternate;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  z-index: 3;
}

@keyframes auth-wave-sway {
  0% {
    transform: translate3d(-10%, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(2%, 10px, 0) rotate(1deg);
  }
  50% {
    transform: translate3d(-5%, -5px, 0) rotate(-1deg);
  }
  75% {
    transform: translate3d(5%, 5px, 0) rotate(0.5deg);
  }
  100% {
    transform: translate3d(-5%, 0, 0) rotate(0deg);
  }
}

.auth-gradient-waves .auth-cover-content-wrapper {
  position: relative;
  z-index: 1;
}

.auth-img img {
  opacity: 0.9;
}
