html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f5f5f5; /* Un fondo sutil para mejor contraste */
}

.login-title {
  color: #151717;
  font-weight: 600;
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-img {
  width: 280px; /* Ajusta este valor según el tamaño que necesites */
  height: auto;
}

.form-container {
  position: relative;
  width: 450px;
  height: 550px; /* Altura fija para contener los formularios */
  display: flex;
  justify-content: center;
  align-items: center;
}

.form {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #ffffff;
  padding: 30px;
  width: 450px;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
      Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* Centrar el formulario */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

::placeholder {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

.form button {
  align-self: flex-end;
}

.flex-column > label {
  color: #151717;
  font-weight: 600;
}

.inputForm {
  border: 1.5px solid #ecedec;
  border-radius: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  transition: 0.2s ease-in-out;
}

.input {
  margin-left: 10px;
  border-radius: 10px;
  border: none;
  width: 85%;
  height: 100%;
}

.input:focus {
  outline: none;
}

.inputForm:focus-within {
  border: 1.5px solid #2d79f3;
}

.flex-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.flex-row > div > label {
  font-size: 14px;
  color: black;
  font-weight: 400;
}

.span {
  font-size: 14px;
  margin-left: 5px;
  color: #2d79f3;
  font-weight: 500;
  cursor: pointer;
}

.button-submit {
  margin: 20px 0 10px 0;
  background-color: #151717;
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 500;
  border-radius: 10px;
  height: 50px;
  width: 100%;
  cursor: pointer;
}

.button-submit:hover {
  background-color: #252727;
}

.p {
  text-align: center;
  color: black;
  font-size: 14px;
  margin: 5px 0;
}

.btn {
  margin-top: 10px;
  width: 100%;
  height: 50px;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 500;
  gap: 10px;
  border: 1px solid #ededef;
  background-color: white;
  cursor: pointer;
  transition: 0.2s ease-in-out;
}

.btn:hover {
  border: 1px solid #2d79f3;
}

/* Ajustes para dispositivos móviles */
@media screen and (max-width: 768px) {
  .container-fluid {
    padding: 0 15px; /* Añade un poco de padding en los bordes */
  }

  .form-container {
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 450px; /* Máximo ancho para mantener la legibilidad */
    margin: 0 auto; /* Centra el contenedor */
    height: auto; /* Altura automática */
    padding: 20px; /* Añade padding */
  }

  .form {
    width: 100%; /* Ocupa todo el ancho del contenedor */
    position: static; /* Elimina posicionamiento absoluto */
    transform: none; /* Elimina transformación */
    top: auto;
    left: auto;
    margin: 0; /* Elimina márgenes */
    box-sizing: border-box; /* Incluye padding en el ancho */
  }

  .logo-img {
    width: 200px; /* Tamaño más pequeño para móviles */
    max-width: 100%; /* Asegura que no desborde */
  }

  .input {
    width: 80%; /* Ajusta el ancho del input */
  }
}

/* Para pantallas muy pequeñas */
@media screen and (max-width: 480px) {
  .form {
    padding: 20px 15px; /* Reduce padding */
  }

  .logo-img {
    width: 150px; /* Aún más pequeño */
  }

  .inputForm {
    height: 45px; /* Altura ligeramente reducida */
  }

  .button-submit {
    height: 45px; /* Altura ligeramente reducida */
  }
}

/* Clases para animaciones */
.hidden {
  display: none;
}

@keyframes slideOutLeft {
  from {
      transform: translate(-50%, -50%);
      opacity: 1;
  }
  to {
      transform: translate(-150%, -50%);
      opacity: 0;
  }
}

@keyframes slideInRight {
  from {
      transform: translate(50%, -50%);
      opacity: 0;
  }
  to {
      transform: translate(-50%, -50%);
      opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
      transform: translate(-50%, -50%);
      opacity: 1;
  }
  to {
      transform: translate(50%, -50%);
      opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
      transform: translate(-150%, -50%);
      opacity: 0;
  }
  to {
      transform: translate(-50%, -50%);
      opacity: 1;
  }
}

.slide-out-left {
  animation: slideOutLeft 0.3s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.3s ease-out forwards;
}

.slide-out-right {
  animation: slideOutRight 0.3s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.3s ease-out forwards;
}