* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  /* ELIMINA: Ya no tiene la imagen de fondo. Ahora el pseudo-elemento la maneja. */
  /* background: url("../img/FondoLogin.jpg") no-repeat center center fixed; */
  /* background-size: cover; */

  /* Mantenemos las propiedades necesarias para el diseño */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative; /* Asegúrate de que el body sea un contexto de apilamiento para los hijos. */
}

/* Creamos el pseudo-elemento que contendrá el FondoLogin desenfocado */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;

  /* MANTENER: Aquí se aplica la imagen de fondo */
  background: url("../img/FondoLogin.jpg") no-repeat center center fixed; /* Asegúrate de usar 'fixed' para que ocupe la pantalla, o 'absolute' si prefieres que siga el scroll del body */
  background-size: cover;

  /* APLICAR FILTRO: Esto desenfocará la imagen del pseudo-elemento */
  filter: blur(8px);
  -webkit-filter: blur(8px);

  /* POSICIONAR: Lo posicionamos detrás de *todo* el contenido del body */
  z-index: -1;

  /* Escala para evitar bordes borrosos (es una buena práctica) */
  transform: scale(1.1);
}
.login-container {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 30px 40px;
  width: 300px;
  text-align: center;
  color: white;
}

.login-container h1 {
  margin-bottom: 20px;
  font-size: 28px;
  color: white;
}

.login-container input[type="text"],
.login-container input[type="password"] {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  outline: none;
}

.login-container input[type="submit"] {
  background: #00bcd4;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 10px;
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.login-container input[type="submit"]:hover {
  background: #0097a7;
  transform: scale(1.05);
  box-shadow: 0 0 10px #00bcd4;
}

.error {
  background-color: red;
  padding: 5px;
  border-radius: 5px;
  color: white;
  margin-bottom: 10px;
}
