body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
  overflow: hidden;
  position: relative;
}

.background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('./img/principal/fondo.jpg') no-repeat center center;
  background-size: cover;
  z-index: -2;
}

.veil {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: -1;
}

.slider-container {
  position: absolute;
  top: 60px;
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.slider .group {
  display: none;
  visibility: hidden;
  justify-content: center;
  gap: 30px;
  opacity: 0;
}


.slider .group img {
  width: 30vw;
  height: auto;
  max-height: 80%;
  object-fit: cover;
  opacity: 0;
  animation: slideInImage 0.8s ease-out forwards;

  border-radius: 12px;
  border: 8px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: white;
}

.login-form {
  position: absolute;
  bottom: 50px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.login-form img {
  margin-bottom: 10px;
}
.login-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-align: center;
}

.login-form label {
  font-weight: bold;
}

.login-form input {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.login-form .btn-block {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
}

.login-form .alert-danger {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #cc0000;
  color: white;
  border: none;
  display: inline;
  border-radius: 6px;
}

@keyframes slideInImage {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutImage {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-100px);
  }
}
/* Estilo para pantallas grandes */
@media screen and (min-width: 768px) {
  .login-form form {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: left;
    flex-wrap: wrap;
  }

  .login-form label {
    margin-right: 5px;
  }

  .login-form img {
    width: 100px;
    margin-bottom: 0;
    margin-right: 20px;
  }
}
