/* Estilos para los modales */
/*LOGIN & REGISTER*/
#loginModal, #registerModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Fondo semitransparente */
    display: none;
    justify-content: center;
    align-items: center;
    font-family: 'Kanit', sans-serif;
    z-index: 100;
}
.modal-content {
    background-color: rgb(191, 243, 192);
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    max-width: 90%;
    max-height: 90vh; /* Limita la altura al 90% de la pantalla */
    overflow-y: auto; /* Agrega desplazamiento vertical si el contenido es demasiado grande */
    position: relative; /* Asegura que el botón 'close' se posicione en relación al modal */
}
.close {
    position: absolute; /* Posiciona el botón respecto al contenedor del modal */
    top: 10px;
    right: 10px; /* Lo ubica en la esquina superior derecha */
    display: inline-block;
    background-color: #043E04; /* Fondo del botón */
    color: #ffffff; /* Color de la X */
    padding: 0px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 24px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}
.close:hover {
    background-color: orangered; /* Fondo rojo al hacer hover */
    color: white; /* Color blanco de la X al hacer hover */
}
.modal-content h2{
    color: #043E04;
    text-align: center;
}
.modal-content p {
    color: #043E04;
    text-align: justify;
}

/* Estilo para el contenedor del formulario */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Separación entre elementos */
}
/* Hacer que los inputs y el botón ocupen el 100% del ancho */
.modal-content input{
    width: 100%;
    max-width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box; /* Incluye padding en el ancho total */
    padding: 10px 20px;
    font-size: 1em;
    border: 1px solid rgb(173, 169, 169);
    border-radius: 5px;
}
.modal-content .sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.modal-content .password-container {
    position: relative;
}

/*Recuperacion de contraseña*/
.modal-content a {
    display: block; /* Asegura que quede en una nueva línea debajo del input */
    margin: 0px 0px 5px 0px; /* Ajusta el espaciado entre el input y el enlace */
    font-size: 0.9em; /* Tamaño de fuente más pequeño, si prefieres */
    color: orangered; /* Cambia el color según tu preferencia */
    text-decoration: none;
    text-align: center;
}
.modal-content a:hover {
    color: rgb(45, 4, 223);
    text-decoration: underline;
}

/* Recordatorio de datos */
.modal-content .recordar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-family: 'Kanit', sans-serif;
    font-size: 0.9em; 
}
.modal-content .recordar input{
    margin: 0;
    padding: 0;
    width: 20px;
}
.modal-content .recordar label{
    margin-left: 5px;
    padding-top: 4px; /*Nivelar el remember me con el checkbox*/
    color: #043E04;
    display: block;
    margin-bottom: 5px;
    font-size: 1.2em;
}

/*Botones*/
.modal-content button{
    width: 100%;
    padding: 10px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    color: yellow;
    background-color: #043E04;
    font-size: 100%;
    cursor: pointer;
}
.modal-content button:hover{
    color: #ffffff;
    background-color: #459e45;
    font-weight: bold;
}

/*Caja para registrarse*/
.signup-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Centra verticalmente */
    gap: 5px; /* Espacio entre el texto y el enlace */
    margin-top: 10px;
}
.signup-container p,
.signup-container a {
    margin: 0;
    font-size: 1em;
    line-height: 1.5em; /* Asegura alineación vertical */
    display: flex;
    align-items: center; /* Corrige desnivel vertical */
}
.signup-container p {
    color: #043E04;
}
.signup-container a {
    font-weight: bold;
    color: orangered;
    text-decoration: none;
}
.signup-container a:hover {
    color: rgb(45, 4, 223);
    text-decoration: underline;
}

/*MOSTRAR Y OCULTAR CONTRASEÑA*/
.modal-content .toggle-password {
    position: absolute;
    top: 15%;
    right: 10px;
    cursor: pointer;
    transition: color 0.3s, filter 0.3s;
}
.modal-content .toggle-password.visible {
    filter: none; /* Deshaz cualquier filtro */
}
.modal-content .toggle-password:not(.visible) {
    filter: grayscale(100%); /* Hacer el ojo blanco y negro */
}
.modal-content .toggle-password::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    background: transparent;
    border-top: 3px solid rgb(127, 125, 125); /* Línea diagonal gris */
    transform: rotate(-45deg);
    transition: opacity 0.3s;
    opacity: 1;
}
.modal-content .toggle-password.visible::after {
    opacity: 0; /* Desaparece la línea diagonal cuando se muestra la contraseña */
}

/* Estilos para el select de cambio de roles */
#registerModal label{
    font-size: 1em;
    color: #043E04;
}
.modal-content .role{
    color: rgb(4, 62, 4);
    font-weight: bold; 
}
.modal-content form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid rgb(173, 169, 169);
    border-radius: 5px;
}
/* Estilo específico para el select */
.modal-content form select {
    background-color: #ffffff; /* Fondo blanco para el select */
    color: rgb(110, 104, 104);
    font-size: 100%;
    font-weight: bold; 
}

/*ESTILOS AL FORGOTPASSWORD Y AL RESETPASSWORD*/
.password-change {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url('/img/campo3.jpg');
    background-size: cover;
    background-position: center;
    min-height: calc(90vh - 97px); /* Ajuste para header y footer */
}
.password-change .form-container {
    background-color: rgba(255, 255, 255, 0.6);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    max-width: 400px;
    width: 100%;
    margin: 20px;
    text-align: center;
    font-family: 'Kanit', sans-serif;
}
.password-change .form-container h1 {
    font-size: 2.5em;
    color: rgb(4, 62, 4);
    margin: 0;
}
.password-change form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.password-change input, .password-change button {
    padding: 10px 20px;
    font-size: 1em;
    width: 100%;
    border-radius: 5px;
    border: 1px solid gray;
}
.password-change button {
    font-weight: bold;
    cursor: pointer;
    color: #ffff00;
    background-color: rgb(7, 43, 7);
    border: none;
}
.password-change button:hover {
    color: #ffffff;
    background-color: rgb(233, 91, 40);
}
.password-change .sr-only {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.password-change .password-container {
    position: relative;
}
.password-change .toggle-password {
    position: absolute;
    top: 17%;
    right: 10px;
    cursor: pointer;
    transition: color 0.3s, filter 0.3s;
}
.password-change .toggle-password.visible {
    filter: none; /* Deshaz cualquier filtro */
}
.password-change .toggle-password:not(.visible) {
    filter: grayscale(100%); /* Hacer el ojo blanco y negro */
}
.password-change .toggle-password::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    width: 100%;
    height: 100%;
    background: transparent;
    border-top: 3px solid rgb(127, 125, 125); /* Línea diagonal gris */
    transform: rotate(-45deg);
    transition: opacity 0.3s;
    opacity: 1;
}
.password-change .toggle-password.visible::after {
    opacity: 0; /* Desaparece la línea diagonal cuando se muestra la contraseña */
}
.password-change a {
    color: orangered;
}
.password-change a:hover {
    color: rgb(45, 4, 223);
}

/*-----------------------------------------------------------------------------------------------------------------*/

/* MEDIA QUERIES PARA RESPONSIVIDAD */

/* PARA TELÉFONOS -------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 767px) {

    /* Recordatorio de datos */
    .recordar label, .admin label{
        font-size: 4vw;
    }

    .password-change .form-container h1 {
        font-size: 1.8em;
    }
}
  