/*Dont move any referent to image, me costo un huevo*/
/*Set a image as background, Personal Note (MANI), later make this shit responsive for Gods Sake*/
body {
  height: 100vh; 
  display: flex;
  justify-content: center; 
  align-items: center; 
  background: 
    url("../img/riki_shinagawa2.jpg") no-repeat fixed center 95% / cover;
  background-color: #ffffff;
  margin: 0;
}

/* Login Form */
.form {
  display: flex;
  flex-direction: column;
  height: 600px;
  width: 400px;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: inset -5px -5px rgba(0, 0, 0, 0.5);
  border-radius: 25px;
}

.form h2 {
  color: white;
  font-size: 2rem;
  border-bottom: 4px solid rgba(255, 255, 255, 0.5);
  margin: 50px;
}

/* Campos generales */
.box {
  padding: 12px;
  margin: 20px;
  width: 65%;
  border: none;
  outline: none;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: inset -3px -3px rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1em;
}

/* Botón */
#submit {
  padding: 10px 20px;
  margin-top: 50px;
  width: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: inset -3px -3px rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  outline: none;
  border-radius: 20px;
  font-size: 1rem;
}

#submit:hover {
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

::placeholder {
  color: white;
}

/* Enlaces */
a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 20px;
  transition: all 0.3s ease;
}

a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* === CAMPO DE CONTRASEÑA CON OJO Y BARRA DE FUERZA === */
.password-container {
  position: relative;
  width: 83%;
  border-radius: 23px;
  display: flex;
  align-items: center;
  box-shadow: inset -3px -3px rgba(0, 0, 0, 0.5);
}

.password-container .box {
  padding: 12px;
  margin: 20px;
  width: 65%;
  border: none;
  outline: none;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  box-shadow: inset -3px -3px rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1em;
}

/* Ícono del ojo */
.toggle-password {
  right: 33px;
  cursor: pointer;
  color: #ff4d4d; /* Rojo cuando está oculta */
  font-size: 2.2rem;
  user-select: none;
  transition: all 0.3s ease;
}

.toggle-password:hover {
  transform: scale(1.3);
}

/* Estado cuando la contraseña es visible */
.toggle-password.visible {
  color: #00ff88; /* Verde brillante */
  transform: scale(1.25);
}

/* Barra de fuerza */
.strength-meter {
  width: 65%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  margin-top: 10px;
  overflow: hidden;
  box-shadow: inset -2px -2px rgba(0, 0, 0, 0.4);
}

#strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  transition: width 0.3s ease, background 0.3s ease;
}

/* Texto indicador */
#strength-text {
  color: white;
  font-size: 0.9rem;
  margin-top: 5px;
  text-align: center;
}
