/* Estilo general del fondo */
body {
  display: initial;
}
 .cartlogin{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0% 0% 30% 0%!important;
}
.espacioLogo{
  display: flex;
  justify-content: end;
  padding: 2%;
} 
.carta{
  width: 60%;
}
.card-body{
  background:linear-gradient(180deg, rgb(255, 237, 72) 1%, rgba(255,238,168,1) 9%, rgba(255,255,255,1) 24%);
}
/* Estilo del contenedor del formulario */
#contenedor {
  background-color: white;
  border-radius: 15px;   /* Bordes redondos */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);   /* Sombra alrededor para que parezca elevado */
  padding: 30px;   /* Espaciado interior */
  width: 400px;    /* Ancho del contenedor */
  box-sizing: border-box;
}

/* Estilo del formulario */
.form-signin {
  display: flex;
  flex-direction: column;
  align-items: center;    /* Centra los elementos horizontalmente */
  width: 100%;
}

.form-signin .form-control {
  margin-bottom: 15px;   /* Espaciado entre campos del formulario */
}

/* Estilo del botón */
.w-100.btn.btn-lg.btn-primary {
  width: 100%;  /* Ocupa todo el ancho del contenedor */
}
body {
  margin: 0;
  overflow: hidden;
  background-color: #222;
  background: linear-gradient(to bottom, #222, #444); /* Definir un degradado lineal */
  background-color: #222; /* Color de fondo de respaldo para navegadores que no admiten degradados */
}
.toggle-password::before {
  content: "\f06e"; /* Código Unicode del icono del ojo abierto */
  font-family: FontAwesome; /* Utiliza la fuente de iconos que prefieras, como FontAwesome */
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}
.circle {
  width: 100px;
  height: 100px;
  background-color: yellow;
  box-shadow: 0 0 10px #FFD700;
  border-radius: 50%;
  position: absolute;
  left: 10%;
  transform: translateX(-50%);
  animation: moveCircle 5s linear infinite;
}


@media (max-width: 768px) {
  .sectionLogin{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0% 0% 1% 0%;
  }
  .espacioLogo{
    margin-bottom: 3%;
    display: flex;
    justify-content: end;
    padding: 4%;
  } 
  .img{
    width: 95px;
  }
  .carta{
    width: 100%;
  }
  .cartlogin{
    padding: 0%!important;
  }
}

@keyframes moveCircle {
  0% {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
  }
  100% {
      transform: translateX(-50%) translateY(calc(100vh + 100px)); /* Ajusta la distancia a la que se desplaza */
      opacity: 0;
  }
  
  /* Agregar movimiento aleatorio */
  50% {
      transform: translateX(calc(-50% + randomX())) translateY(calc(100vh + randomY()));
  }
}