@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat Alternates', sans-serif;
}

body {
  background: url('../images/FondoInicioSesion.jpg') center/cover no-repeat;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#cuadro {
  width: 300px;
  min-width: 100px;
  height: 100%;
  position: absolute;
  border-right: 2px rgba(255, 255, 255, 0.5) solid;
  backdrop-filter: blur(2.5px);

  top: 0;
  left: -100%;
  display: flex;
  flex-direction: column;
  justify-content: top;
  align-items: center;
  animation: abrirBarra 1s forwards;
  opacity: 0;
  background-color: rgba(250, 250, 250, 0.1);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

@keyframes abrirBarra {
  0% {
    left: -100%;
    /* posición inicial fuera del contenedor */
    opacity: 0;
  }

  100% {
    left: 0;
    /* posición final dentro del contenedor */
    opacity: 1;
  }
}

.inicio-sesion {
  text-align: center;
}

.inicio-sesion td {
  padding: 5px;
  padding-bottom: 20px;
}

.inicio-sesion input {
  text-align: center;
  font-family: 'Montserrat Alternates', sans-serif;
  font-weight: bold;
  padding: 5px;
  width: 250px;
  height: 35px;
  border: none;
  box-shadow: 2px 2px 4px rgba(72, 88, 165, 0.5);
  background-color: white;
  outline: none;
  border-radius: 25px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.inicio-sesion input::placeholder {
  color: #94a3b8;
}

.inicio-sesion input:focus, .inicio-sesion input:hover {
  outline: none;
  background-color: #fff;
  box-shadow: 4px 4px 10px rgba(72, 88, 165, 0.7); /* Aumenta la intensidad de la sombra */
  transform: scale(1.05); /* Agranda el input ligeramente */
}


.logo-img {
  width: 200px;
  position: fixed;
  margin: 50px;
}

.btnInicio {
  border: none;
  padding: 10px;
  width: 125px;
  height: 40px;
  background-color: #4858a5;
  color: #fff;
  border-radius: 50px;
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3), 
              0px 7px 13px rgba(0, 0, 0, 0.2), 
              0px -3px 0px rgba(255, 255, 255, 0.1) inset; /* Sombra realista */
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;

}

.btnInicio:hover {
  box-shadow: 0px 6px 9px rgba(0, 0, 0, 0.4), 
              0px 10px 20px rgba(0, 0, 0, 0.3), 
              0px -4px 0px rgba(255, 255, 255, 0.15) inset; /* Sombra más intensa al hacer hover */
  transform: translateY(-2px); /* Efecto de "flotar" */
}

.btnInicio:active {
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.3), 
              0px 6px 12px rgba(0, 0, 0, 0.2), 
              0px -2px 0px rgba(255, 255, 255, 0.1) inset; /* Sombra al presionar */
  transform: translateY(1px); /* Efecto de "presionado" */
}

.btnInicio span{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: top 0.5s;
}

.btn-text-one {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-weight: bold;
}

.btn-text-two {
  position: absolute;
  width: 100%;
  top: 150%;
  left: 0;
  transform: translateY(-50%);
  font-weight: bold;
}

.btnInicio:hover .btn-text-one {
  top: -100%;
}

.btnInicio:hover .btn-text-two {
  top: 50%;
}

.forum {
  width: 250px;
  min-height: 300px;
  bottom: 5px;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.recovery {
  display: inline-block;
  color: #ffffff;
  background-color: #4858a5;
  padding: 10px 10px;
  text-align: center;
  text-decoration: none;
  font-family: 'Montserrat Alternates', sans-serif;
  font-size: 11px;
  border-radius: 25px;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0px 4px 8px rgba(72, 88, 165, 0.4);
}

.recovery:hover {
  background-color: #3b4791;
  box-shadow: 0px 6px 12px rgba(72, 88, 165, 0.6);
}
/* CODIGO REESTABLECER*/

.contenedor-recovery {
  position: relative;
  width: 25%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  border: 2px #ffffff80 solid;
  background-color: rgba(250, 250, 250, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

.title-recovery {
  width: 100%;
  padding: 10px;
  text-align: center;
  color: white;
  border-bottom: 2px solid #ffffff80;
}

.insert-code {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.contenedor-code-recovery {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 100%;
}

.code {
  font-size: 50px;
  width: 80%;
  text-align: center;
  outline: none;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  background-color: white;
}

.password-change {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.boton-recovery {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  width: 100%;
  border-top: 2px solid #ffffff80;
}

.boton-recovery button {
  background-color: white;
  font-weight: bold;
  color: black;
  border: 0px;
  width: 50%;
  padding: 10px;
  font-size: 15px;
  border-radius: 50px;
}

.boton-recovery button:hover {
  background-color: rgb(180, 180, 180);

}

.new-password-conteiner {
  position: relative;
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 25px;
  text-align: center;
  justify-content: center;
  margin: 5px;
}

.password {
  position: relative;
  outline: none;
  text-align: center;
  width: 80%;
  height: 25px;
  border: none;
  border-radius: 25px;
}

.showPassword {
  position: absolute;
  width: 18px;
  right: 10px;
  margin-left: 10px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.showPassword:hover {
  width: 20px;
}

.password-container {
  position: relative;
  display: flex;
  line-height: 30px;
  align-items: center;
}

.inputPassword {
  border-color: transparent;
  background-color: white;
  padding: 5px;
  width: 80%;
  height: 45px;
  text-align: center;
  outline: none;
  padding-right: 30px;
  line-height: 30px;
  padding: 0 5rem;
  padding-left: 3rem;
  border: 2px solid transparent;
  border-radius: 10px;
  outline: none;
  background-color: #f8fafc;
  color: #0d0c22;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.inputPassword::placeholder{
  color: #94a3b8;
}

.inputPassword:focus, .inputPassword:hover {
  outline: none;
  border-color: rgb(0, 0, 0);
  background-color: #fff;
  box-shadow: 0px 4px 15px rgb(0, 0, 0), 0px 7px 15px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.55); /* Escala los íconos cuando el input se agranda */

}




.icon, .showPassword {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease, scale 0.3s ease; /* Añade escala a la transición */
}

.inputPassword:focus ~ .icon, .inputPassword:hover ~ .icon,
.inputPassword:focus ~ .showPassword, .inputPassword:hover ~ .showPassword {
  transform: translateY(-50%) scale(1.55); /* Escala los íconos cuando el input se agranda */
}


.btnInicio:disabled{
  cursor: not-allowed;
  background-color: antiquewhite;
}