@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

/* Fondo de la página */
body {
  /*background: url("https://cdn.pixabay.com/photo/2023/10/30/05/53/highway-8351864_1280.jpg");*/
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
}

/* Centrado de la ventana modal */
body,
.modal {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: all 500ms ease;
  opacity: 0;
  visibility: hidden;
}

/* Mostrar la ventana modal cuando el checkbox está activado */
#btn-modal:checked ~ .modal {
  opacity: 1;
  visibility: visible;
}

.contenedor {
  width: 400px;
  height: 150px;
  margin: auto;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  border-bottom-right-radius: 15px;
  border-bottom-left-radius: 15px;

  background: #fff;
  box-shadow: 1px 7px 25px rgba(0, 0, 0, 0.6);
  transition: all 500ms ease;
  position: relative;
  transform: translateY(-30%);
  backdrop-filter: blur(8px);
  background-color: rgba(255, 255, 255, 0.1);
 
}


 .toggle-password {
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        cursor: pointer;
        color: #aaa; /* Color del icono */
  }

.input-container {
  width: 300px;
  position: relative;
  display: inline-block; /* O el display que necesites */
}

#password {
  padding-right: 30px; /* Espacio para el icono */
  position: relative; /* Para que el icono se posicione dentro */
}



/* Animación de aparición */
#btn-modal:checked ~ .modal .contenedor {
  transform: translateY(0%);
}

.contenedor header {
  padding: 10px;
  background: #158b4a;
  color: #fff;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
}

.contenedor label {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.contenido {
  width: 100%;
  padding: 10px;
}

.contenido h3 {
  margin-bottom: 10px;
}

.contenido p {
  margin-bottom: 7px;
}

#btn-modal {
  display: none;
}

/* Botón para abrir el modal */
.lbl-modal {
  background: #fff;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
}

/* Responsive */
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .contenedor {
    width: 95%;
  }
}