/* Estilo general del modal */
.modal {
    display: none; /* Inicialmente oculto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    justify-content: center;
    align-items: center;
    grid-template-rows: 100%;
    
    /* padding: 20px;  */
}

/* Contenido del modal */
.modal-content {
    background-color: #ffffff;
    width: 300px; /* Ancho máximo del modal en pantallas grandes */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra */
    border-radius: 8px;
    position: relative; /* Para posicionar la "x" de cierre */
    box-sizing: border-box;
}

/* Botón de cerrar */
.close {
    position: absolute;
    right: 10px;
    top: 0;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.back-to-login {
    position: absolute;
    left: 20px;
    top: 20px;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.ginput_container.ginput_container_email {
    display: grid !important;
}

.ginput_container.ginput_container_email input {
    width: 90% !important;
    margin: 0 auto 10px !important;
}

#gform_6 .gform_footer.before input {
    background-color: #CF460D !important;
    font-size: 14px;
}

#gform_6 {
    position: relative;
    top: 1.33em;
}

.gform_confirmation_message_6.gform_confirmation_message {
    text-align: center !important;
    font-size: 14px !important;
    margin: 2em !important;
}

.disclousure {
    margin-top: 10px;
    font-size: 15px; 
    margin: 10px; 
    color: #696868
}

.login-title {
    margin: 20px;
}

/* Estilo del logo en el modal */
.login-image-container {
    width: 100%;
    background-color: #E7E6E7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 10px 10px;
}

.login-image-container img {
    padding: 1em;
}

/* Estilo del formulario */
.modal-content form {
    display: flex;
    flex-direction: column;
}

/* Estilo de los campos de entrada */
.inputs {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.5em;
    margin: 0 auto;
}

input[type=email],
input[type=password] {
    margin-bottom: 10px;
    padding: 0.6em 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box;
}

/* Estilo del botón de envío */
input.submit[type=submit] {
    background-color: #CF460D;
    color: white;
    padding: 1em;
    border-radius: 4px;
    font-size: 1em;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

input.submit[type=submit]:hover {
    background-color: #CF561C;
}

/* Enlace de contraseña olvidada */
.modal-content a {
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
}

.modal-content a:hover {
    text-decoration: underline;
}


@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        height: 100%;
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        padding: 20px;
    }

    .close {
        right: 10px;
        top: 10px;
    }
    .modal{
        grid-template-columns: 100%;
    }
}
