html,
body {
  width: 100%;
  min-height: 100%; /* Asegura que tomen al menos el tamaño completo del contenido */
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  background: #d2d4d6;
  /* fallback for old browsers */
}

.bodyWBg {
  background-image: url(/images/background.webp);
  min-height: 100vh;
  width: 100%;
  object-fit: cover;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0; /* Oculta el body al principio */
}

.bodyWBgLoaded {
  opacity: 1; /* Muestra el body cuando la imagen está cargada */
}


.form-signin {
  width: 100%;
  max-width: 330px;
  padding: 15px;
  margin: auto;
}

.form-signin .checkbox {
  font-weight: 450;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="text"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.bd-placeholder-img {
  font-size: 1.125rem;
  text-anchor: middle;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.logInHeader{
  /*text-shadow: 5px 5px 5px white;*/
  font-size: 30px;
  font-weight: 500;
  color: black;
}

.logInHeader:hover{
  cursor: default;
}

.loginLogo{
  height: auto;
  width: 80px;
}


@media (min-width: 768px) {
  .bd-placeholder-img-lg {
    font-size: 3.5rem;
  }
}


@media (max-width: 500px) {
  .bodyWBg {
    background-image: url(/images/background.webp);
    min-height: 100vh;
    width: 100%;
    object-fit: cover;
    background-repeat: no-repeat;
    background-size: cover; 
    background-position: center;
  }

  body {
    padding-top: 20px;
    padding-bottom: 30px;
  }
}