/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  overflow: hidden;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  position: relative;
  background: url('../imgs/fondo_01.jpeg') no-repeat center center/cover;
  animation: changeBackground 2000s infinite;
}

.login-box {
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparente */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  position: absolute;
  z-index: 1;
}

h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  color: #555;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  outline: none;
}

.input-group input:focus {
  border-color: #3498db;
}

.btn-submit {
  width: 100%;
  padding: 12px;
  background-color: #3498db;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-submit:hover {
  background-color: #2980b9;
}

.text-center {
  text-align: center;
  margin-top: 15px;
}

.text-center a {
  color: #3498db;
  text-decoration: none;
}

.text-center a:hover {
  text-decoration: underline;
}

/* Medias queries para pantallas más pequeñas */
@media (max-width: 600px) {
  .login-box {
    padding: 20px;
  }

  h2 {
    font-size: 24px;
  }

  .btn-submit {
    padding: 10px;
  }
}

/* Animación para cambiar el fondo */
@keyframes changeBackground {
  0% {
    background: url('../imgs/fondo_01.jpeg') no-repeat center center/cover;
  }
  25% {
    background: url('../imgs/fondo_02.jpeg') no-repeat center center/cover;
  }
  50% {
    background: url('../imgs/fondo_03.jpeg') no-repeat center center/cover;
  }
  75% {
    background: url('../imgs/fondo_04.jpeg') no-repeat center center/cover;
  }
  100% {
    background: url('../imgs/fondo_01.jpeg') no-repeat center center/cover;
  }
}

/*==========================================================================================================*/
.alert {
  display: none; /* Se oculta inicialmente */
  padding: 20px;
  margin: 10px 0;
  border-radius: 5px;
  position: relative;
  font-family: Arial, sans-serif;
  text-align:center;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
  font-size: 16px;
  transition: opacity 0.5s ease, transform 0.3s ease; /* Animación suave */
}
.alert-success {
  background-color: #4CAF50; /* Verde */
  color: white;
}

/* Alerta de advertencia (amarillo) */
.alert-warning {
  background-color: #ff9800; /* Naranja */
  color: white;
}

/* Alerta de error (rojo) */
.alert-danger {
  background-color: #f44336; /* Rojo */
  color: white;
}

/* Alerta informativa (azul) */
.alert-info {
  background-color: #2196F3; /* Azul */
  color: white;
}

/* Estilo para el texto dentro de la alerta */
.alert strong {
  font-weight: bold;
}

/* Transición para la alerta al aparecer */
.alert.show {
  display: block; /* Mostrar la alerta */
  opacity: 1;
  transform: translateY(0); /* Desplazarse hacia abajo */
}

/* Animación para desaparecer la alerta */
.alert.hide {
  opacity: 0;
  transform: translateY(-20px); /* Se mueve hacia arriba */
  display: none;
}
