* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes cosmicFondo {
  0%, 100% { 
      background-position: 0% 50%;
  }
  50% { 
      background-position: 100% 50%;
  }
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(
      -75deg,
      #FFE96F,
      
      #6e5dad,
      #667eea
      
  );
  background-size: 150% 400%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cosmicFondo 20s ease-in-out infinite;
  position: relative;
 
}

.container {
  width: 100%;
  max-width: 1000px;
  padding: 20px;
}

.login-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-direction: row; /* Update 1: Changed flex-direction to row */
}

.logo {
  background-color: #062840;
  flex: 1;
  padding: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo img {
  max-width: 100%;
  height: auto;
}

.form-container {
  flex: 1;
  padding: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.carousel {
  margin-bottom: 30px;
  position: relative;
  height: 200px;
  width: 200px;
  margin: 0 auto 30px;
}

.imguser.active {
  display: block;
  animation: pulse 3s infinite;
}


@keyframes pulse {
  0% {
     
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
     
      box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
      
      box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}
.imguser {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
border: 3px solid #fff;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
position: absolute;
top: 0;
left: 0;
opacity: 0;
transition: opacity 0.5s ease-in-out;
animation: pulse 1s ease-in-out infinite; /* Añadimos la animación */
}


.imguser.active {
  opacity: 1;
}

.form-group {
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  color: #fff;
  border: 1px rgba(255, 255, 255, 0.295) solid;
  font-size: 16px;
  transition: all 0.3s ease;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.7);

}

input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}


button {
  font-family: 'Poppins', sans-serif;
  width: 100%;
  padding: 12px;
  border: none;
  background: linear-gradient(45deg, #667eea, #764ba2);
  border-radius: 25px;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  position: relative;  /* Necesario para la pseudoclase */
  transition: all 0.3s ease;
}

button::after {
  content: '';
  position: absolute;
  bottom: -10px;  /* Ubicación de la línea debajo del botón */
  left: 0;
  width: 100%;
  height: 3px;  /* Grosor de la línea */
  background-color: white;  /* Color de la línea */
  transform: scaleX(0);  /* Inicialmente no visible */
  transform-origin: center;
  transition: transform 0.3s ease;
}

button:hover {
  background: linear-gradient(45deg, #764ba2, #667eea);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

button:hover::after {
  transform: scaleX(1);  /* La línea se expande al hacer hover */
}


.error {
  background-color: rgba(232, 92, 92, 0.623);
  color: rgba(255, 255, 255, 0.747);
  padding: 10px;
  width: 95%;
  border-radius: 5px;
  margin: 20px auto;
  animation: pulse2 2s infinite ease-in-out; /* Animación de latido */
}

@keyframes pulse2 {
  0% {
    transform: scale(1); /* Tamaño original */
    opacity: 1; /* Opacidad completa */
  }
  50% {
    transform: scale(1.1); /* Aumenta ligeramente el tamaño */
    opacity: 0.8; /* Reduce la opacidad un poco */
  }
  100% {
    transform: scale(1); /* Vuelve al tamaño original */
    opacity: 1; /* Opacidad completa */
  }
}





@keyframes brillo {
  0% {
    box-shadow: 0 0 5px 0 rgba(255, 255, 255, 0.6);
  }
  50% {
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 1);
  }
  100% {
    box-shadow: 0 0 5px 0 rgba(255, 255, 255, 0.6);
  }
}

button:hover {
  animation: brillo 1s ease-in-out infinite;  /* Brillo animado */
}


@media (max-width: 768px) {
  .login-box {
      flex-direction: column;
  }
  
  .logo, .form-container {
      width: 100%;
  }
  .logo img {
    max-width: 50%;
    height: auto;
  }
}