@import url('https://rsms.me/inter/inter-ui.css');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,500;1,500&display=swap');

body{
  display: flex;
  justify-content: center;
  align-items: center;

}

.background-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.background-container .background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(https://cdacenda.com/wp-content/uploads/2022/06/cenda-armenia.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  filter: blur(5px); /* Difumina la imagen de fondo */
  z-index: -1;
}

.main{
  width: 400px;
  height: 500px;
  overflow: hidden;
  box-shadow: 5px 10px 50px #000;
  border-radius: 10px;
  background: #224188;
  font-family: 'Jost', sans-serif;
  z-index: 1;
  margin-top: 30px;
}

#switch{
  display: none;
}

.recuperar-contraseña{
  width: 100%;
  height: 100%;
  position: relative;
}

label{
  text-align: center;
  font-size: 30px;
  font-weight: bold;
  color: #fff;
  display: flex;
  justify-content: center;
  margin: 30px;
  margin-bottom: 50px;
  cursor: pointer;
  transition: 1.5s ease-in-out;
}

input{
  width: 75%;
  height: 40px;
  background: #e0dede;
  display: flex;
  justify-content: center;
  margin: 20px auto;
  padding: 12px;
  border: none;
  outline: none;
  border-radius: 5px;
  font-size: 18px;
}

button{
  width: 60%;
  height: 40px;
  background: #4e6ebf;
  color: #fff;
  display: block;
  place-self: center;
  justify-content: center;
  font-size: 1em;
  font-weight: bold;
  margin-top: 30px;
  outline: none;
  border: none;
  border-radius: 5px;
  transition: .2s ease-in;
  cursor: pointer;
}

button:hover{
  background-color: #859CCB;
}

.login{
  transform: translateY(-130px);
  height: 460px;
  background: #eee;
  border-radius: 60% / 10%;
  transition: 1.5s ease-in-out;
}

.login label{
  color: #3A5496;
  transform: scale(.6);
}

#switch:checked~.login{
  transform: translateY(-460px);
}
#switch:checked~.login label{
  transform: scale(1);
}

#switch:checked~.recuperar-contraseña label{
  transform: scale(.6);
}

.eye-pass{
  display: flex;
  align-items: center;
}
#show-pass{
  position: absolute;
  right: 12%;
  width: 20px;
  cursor: pointer;
}
#hide-pass{
  position: absolute;
  right: 12%;
  width: 23px;
  cursor: pointer;
}


@media (max-width: 1440px){
  .background-container{
    margin-bottom: 25px;
  }
  .main{
    margin-top: 20px;
  }
}

@media (max-width: 1120px){
  .page{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .main{
    height: 435px;
  }
  .login{
    transform: translateY(-180px);
    height: 460px;
    background: #eee;
    border-radius: 60% / 10%;
    transition: 1.5s ease-in-out;
  }
  input{
    height: 25px;
    font-size: 14px;
  }

  button{
    height: 40px;
  }
  label{
    margin: 15px;
    font-size: 30px;
  }
  .login{
    transform: translateY(-95px);
  }

  #switch:checked~.login{
    transform: translateY(-405px);
  }
}

@media (max-width: 768px){
  .main{
    width: 350px;
    height: 380px;
  }
  label{
    font-size: 30px;
  }
  .login{
    transform: translateY(-90px);
  }
  .login{
    transform: translateY(-95px);
  }

  #switch:checked~.login{
    transform: translateY(-355px);
  }
}
@media (max-width: 480px){
  .background-container{
    width: 100%;
  }
  img{
    width: 150px;
  }
  .main{
    width: 85%;
    height: 380px;
  }
  label{
    font-size: 25px;
  }
  input{
    height: 20px;
  }

  button{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 45px;
  }
  .login{
    transform: translateY(-55px);
  }
  form{
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    align-self: center;
    flex-direction: column;
  }
  .eye-pass{
    width: 100%;
  }
  #switch:checked~.login{
    transform: translateY(-330px);
  }
}
