.fondo-login {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    margin: 0;
    background: linear-gradient(to top, #ceceee 50%, #7a8cf3 90%) no-repeat;
    min-height: 100vh;
    /*, #9090fa */
}

#email {
    margin-bottom: 1.2rem;
}
#password {
    margin-bottom: 1.2rem;
}

#password1 {
    margin-bottom: 1.2rem;
}

#password2 {
    margin-bottom: 1.2rem;
}

/* Estilos del botón de Google */
#google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 20px;
    font-size: 16px;
    width: 100%;
    margin: 0 0 2rem 0;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.google-login-title {
    color: #000;
    font-size: 1.5rem;
}
/* Estilos del logo de Google */
.google-logo {
    width: 30px;
    margin-right: 10px;
}

/* Efecto al pasar el mouse sobre el botón */
#google-login-btn:hover {
    background-color: #a7e7b8;
}

#google-login-btn:focus {
    outline: none;
}

#mylink {
    pointer-events: auto;
    color: #504f4f;

}

#mylink:hover {
    color: #000;
}


.logo-la-perla-digital {
    font-size: 3.5rem;
    font-family: var(--fuenteTerciaria);
}

input[type="checkbox"] {
    outline: none;
    appearance: none;
    /* Eliminar el estilo predeterminado del navegador */
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 3px;
    position: relative;
}

input[type="checkbox"]:checked::before {
    content: '✔';
    /* Tilde cuando está marcado */
    position: absolute;
    top: -4px;
    left: 0px;
    font-size: 16px;
}


#contenedor {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}



#central {
    max-width: 420px;
    width: 100%;
}

.titulo {
    color: #504f4f;
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.login {
    height: auto;
    width: 100%;
    padding: 30px 30px;
    background-color: #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
    border-radius: 1rem;
    box-sizing: border-box;


}



.login input {
    color: #494949;
    display: block;
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    box-sizing: border-box;
    border-radius: 3px;
}

input:focus {
    outline: 2px solid #57676e;
}

.login input::placeholder {
    font-family: 'Overpass', sans-serif;
    color: #aaa;
}

.login button {
    font-family: 'Overpass', sans-serif;
    color: #fff;
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 50px;
    background-color: #DD2529;
    margin-top: 2rem;
    cursor: pointer;
}

.login button:hover {
    background-color: #004085;
}

.pie-form {
    font-size: 0.9em;
    text-align: center;
    margin-top: 15px;
}

.pie-form a {
    text-decoration: none;
    color: #504f4f;
    margin-bottom: 3px;
}

.pie-form a:hover {
    color: #000;
}

.inferior {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    cursor: pointer;
}

.inferior a {
    font-family: 'Overpass', sans-serif;
    text-decoration: none;
    font-size: 1em;
    padding-top: 0.5rem;
}

.inferior a:hover {
    color: #000;
}

.form-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}

.form-inline-check {
    display: flex;
    align-items: center;
}

.form-inline label {
    font-size: 1.2rem;
}

.form-inline a {
    font-size: 1.2rem;
}

.form-inline input {
    width: 1.5rem;
    height: 1.5rem;
}

.form-inline label {
    padding-left: 0.5rem;
    margin: 0;
    cursor: pointer;
    color: #504f4f;
}

input[type="checkbox"],
input[type="radio"] {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.text-muted {
    color: #504f4f;
}

.font-weight-bold {
    margin-left: auto;
    color: #504f4f;
    cursor: pointer;
}

.font-weight-bold:hover,
.text-muted:hover {
    color: #000;
}

.button-secundario {
    color: #504f4f;
    width: 30%;
    border: 1px solid #504f4f;
    border-radius: 50px;
    margin-top: 2rem;
    cursor: pointer;
    background: none;
}

.button-secundario:hover {
    background-color: #004085;
    border: 1px solid #fff;
    color: #fff;
}


.check_email {
    border: 1px solid #ddd;
}

.check_password_login {
    border: 1px solid #ddd;
}

.check_password1 {
    border: 1px solid #ddd;
}


.check_password2 {
    border: 1px solid #ddd;
}


.message_email {
    display: none;
    background-color: rgb(214, 0, 0);
    color: #fff;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.2rem;
    border-radius: 0 0 2rem 2rem;
    text-align: center;
}

.message_password {
    display: none;
    background-color: rgb(214, 0, 0);
    color: #fff;
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.2rem;
    border-radius: 0 0 2rem 2rem;
    text-align: center;
}



#user-profile {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: auto;
    gap: 1rem;
    margin-right: 1rem;
}

#user-profile .circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;

}

#user-profile .circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#user-profile .name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}


/* Menú flotante oculto por defecto */
.context-menu {
    display: none;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    width: auto;
    /* Ajusta automáticamente según el contenido */
    max-width: 90%;
    /* Asegura que no sea más grande que el 90% del ancho de la pantalla */
    padding: 10px;
    z-index: 9999;
    overflow-wrap: break-word;
    /* Asegura que el contenido largo se ajuste */
}

.context-menu.visible {
    display: block !important;
}

.context-menu.hidden {
    display: none;
}

.context-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.context-menu ul li {
    padding: 8px;
}

.context-menu ul li a {
    text-decoration: none;
    color: #333;
    display: block;
}

.context-menu ul li a:hover {
    background-color: #f0f0f0;
}


.spinner {
    display: none;
    border: 5px solid rgba(0, 0, 0, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #7d47ff;
    margin: 0 auto;
    margin-top: 20px;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.disabled_button {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}

/************************************************************/
.password-container {
    position: relative;
    width: 100%;
    /* Ajuste flexible */
}

.password-input {
    width: 100%;
    /* Input flexible */
    padding-right: 40px;
    /* Espacio para el icono */
    height: 40px;
    /* Ajusta según tu diseño */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    /* Tamaño del ojo */
    height: 20px;
    cursor: pointer;
    opacity: 0.7;
    /* Transparencia ligera */
}

.toggle-password:hover {
    opacity: 1;
    /* Más visible al pasar el cursor */
}




/************************************************************************/

@media only screen and (min-width: 576px) {
    .logo-la-perla-digital {
        font-size: 4rem;
    }

    .google-login-title {
        color: #000;
        font-size: 1.6rem;
    }

    .form-inline label {
        font-size: 1.5rem;
    }

    .form-inline a {
        font-size: 1.5rem;
    }

    .titulo {
        font-size: 2.6rem;
    }



    #password-error {
        right: 90px;

    }
}

@media only screen and (min-width: 768px) {


    #password-error {
        right: 184px;

    }
}


@media only screen and (min-width: 900px) {
    #password-error {
        right: 289px;

    }
}

@media only screen and (min-width: 1200px) {
    .logo-la-perla-digital {
        font-size: 4.5rem;
    }
    
    #password-error {
        top: 36%;
        right: 392px;

    }
}