/* Author     : Oregoom
    WP LOGIN   : DESIGN PREMIUM
    Version    : 1.3.2 (Mobile Fix)
*/

body.login {
    font-family: "Roboto",sans-serif !important;
}

body.login div#login h1 a {

    color: #444;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 auto 25px;
    padding: 0;
    text-decoration: none;
    text-indent: -9999px;
    outline: 0;
    overflow: hidden;
    display: block;

    background-image: var(--wporlogin-logo);
    background-size: var(--background-size);

    background-position: var(--background-position);
    background-repeat: no-repeat !important; 

    width: var(--wporlogin-width);
    height: var(--wporlogin-height);   
        
}

body.login div#login h1 a:hover {
    color: #ffffff !important;
}
body.login div#login h1 a:focus {
    box-shadow: none !important;
}

body.login div#login form#loginform p.forgetmenot input#rememberme{
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    position: relative;
    cursor: pointer;
    border-radius: 4px !important;
}
body.login div#login form#loginform p.forgetmenot input#rememberme:focus{
    border-color: var(--wporlogin-color-principal-marca);
    box-shadow: 0 0 0 1px var(--wporlogin-color-principal-marca);
}
body.login div#login form#loginform p.forgetmenot input#rememberme:checked::before {
    content: "✔"; 
    position: absolute;
    left: 2px;
    top: 12px;
    font-size: 16px;
    color: var(--wporlogin-color-principal-marca);
    border-color: var(--wporlogin-color-principal-marca);
    font-weight: bold;
    border-radius: 4px !important;
}

/*PC*/
@media (max-width: 782px){

    .login-action-confirm_admin_email #login{
        width: 90vw !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.login div#login form#loginform p.forgetmenot input#rememberme{
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 18px;
        height: 18px;
        position: relative;
        cursor: pointer;
    }
    body.login div#login form#loginform p.forgetmenot input#rememberme:focus{
        border-color: var(--wporlogin-color-principal-marca);
        box-shadow: 0 0 0 1px var(--wporlogin-color-principal-marca);
    }
    body.login div#login form#loginform p.forgetmenot input#rememberme:checked::before {
        content: "✔"; 
        position: absolute;
        left: -2px;
        top: 13px;
        font-size: 16px;
        color: var(--wporlogin-color-principal-marca);
        border-color: var(--wporlogin-color-principal-marca);
        font-weight: bold;
    }

} /* @media (max-width: 782px) */


/* --- AQUÍ ESTÁ LA CORRECCIÓN MÓVIL PRINCIPAL --- */
/* Extra small devices (portrait phones, less than 576px)*/
/* MOVIL */
@media (max-width: 575.98px) {

    /* CUANDO EL USUARIO USA GRATIS / Movil */
    .login_oregoom{
        display: none !important;
    }

    body.login-action-login, 
    body.login-action-register, 
    body.login-action-lostpassword,
    body.login-action-confirm_admin_email {
        background-image: var(--wporlogin-img-fondo);
        background-position: center;
        background-size: cover; 
        background-attachment: fixed;
    
        /* Vesión 1.2 */
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    body.login-action-confirm_admin_email #login{
        margin-top: 0px !important;
    }

    /* CORRECCIÓN: Usamos % y max-width para que no rompa en pantallas de 320px */
    body.login-action-lostpassword div#login,
    body.login-action-login div#login,
    body.login-action-register div#login {                   
        width: 96% !important;      /* Se adapta al ancho del teléfono */
        max-width: 350px !important; /* Nunca pasa de 350px */
        border-radius: 5px;
        margin: 0 auto !important;   /* Centrado perfecto */
    }

    body.login-action-confirm_admin_email div#login {
        width: 90% !important;
        max-width: 350px !important;
        border-radius: 5px;
        margin: auto !important;
    }
}
/* ------------------------------------------------ */

@media (min-width: 576px) {

    .login_oregoom{
        display: none !important;
    }

    body.login {
        background-image: var(--wporlogin-img-fondo);
        background-position: center;
        background-size: cover; 
        background-attachment: fixed;
    
        display: flex !important;
        flex-direction: column !important;
        /*justify-content: center;*/
        align-items: center !important;
    }

    body.login-action-confirm_admin_email #login{
        margin-top: auto !important;
    }

    body.login-action-lostpassword div#login,
    body.login-action-login div#login,
    body.login-action-register div#login,
    body.login-action-confirm_admin_email div#login {
        width: 350px !important;
        padding: 2px !important;
        margin: auto !important;
    }

}

body.login div#login div.message {
    color: #3c434a !important;
    max-width: 360px !important;
    border-radius: 5px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    border-left: 5px solid var(--wporlogin-color-principal-marca) !important;
    background-color: #ffffff !important;  
}

body.login div#login p.message a {
    color: #ffff00;
}

body.login div#login div#login_error {
    color: #ffffff !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background-color: rgba(255, 0, 0, 0.5) !important;
    border-radius: 5px !important;
    border-left-color: #ff0000 !important;
}
body.login div#login div#login_error p a{
    color: var(--wporlogin-color-principal-marca);
}
body.login div#login div#login_error p a:hover{
    color: var(--wporlogin-color-hover-marca);
}


body.login div#login form#loginform,
body.login div#login form#registerform,
body.login div#login form#lostpasswordform {
    border: none !important;
    box-shadow: none !important;
    padding-bottom: 10px !important;
    padding-top: 30px !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    background-color: #ffffff !important;
    border-radius: 5px 5px 0 0 !important;
    margin-top: 10px !important;
    margin: 24px 0 0 !important;    
}
body.login div#login form.admin-email-confirm-form {
    border: none !important;
    box-shadow: none !important;
    padding-bottom: 20px !important;
    padding-top: 30px !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    background-color: #ffffff !important;
    border-radius: 5px !important;
    margin-top: 10px !important;    
}

body.login div#login form.admin-email-confirm-form div.admin-email__actions div.admin-email__actions-primary input{
    margin: auto !important;
}

body.login div#login form.admin-email-confirm-form h1{
    font-size: 22px !important;
    line-height: 24px !important;
}


body.login div#login form#loginform p {}

body.login div#login form#loginform p label,
body.login div#login form#registerform p label,
body.login div#login form#registerform p#reg_passmail,
body.login div#login form#lostpasswordform p label {
    color: #000000 !important;
}
body.login div#login form#loginform p input {}

body.login div#login form#loginform input#user_login,
body.login div#login form#registerform input#user_login,
body.login div#login form#registerform input#user_email,
body.login div#login form#lostpasswordform input#user_login {
    background-color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.33333333 !important;
    width: 100% !important;
    margin: 0 6px 16px 0 !important;
    min-height: 40px !important;
    max-height: none !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 0 !important;
    padding-left: 5px !important;
}
body.login div#login form#loginform input#user_login:focus,
body.login div#login form#registerform input#user_login:focus,
body.login div#login form#registerform input#user_email:focus,
body.login div#login form#lostpasswordform input#user_login:focus {
    background-color: #ffffff !important;
    outline: 0 none !important;
    border: 2px solid var(--wporlogin-color-principal-marca) !important;
    box-shadow: none !important;
}

body.login div#login form#loginform div.user-pass-wrap label {
    color: #000000 !important;
}

body.login div#login form#loginform input#user_pass {
    background-color: #ffffff !important;
    font-size: 14px !important;
    line-height: 1.33333333 !important;
    width: 100% !important;
    margin: 0 6px 16px 0 !important;
    min-height: 40px !important;
    max-height: none !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 0 !important;
    padding-left: 5px !important;
}
body.login div#login form#loginform input#user_pass:focus {
    background-color: #ffffff !important;
    outline: 0 none !important;
    border: 2px solid var(--wporlogin-color-principal-marca) !important;
    box-shadow: none !important;
}

body.login div#login form#loginform button.button-secondary:focus {
    border: none !important;
    box-shadow: none;
}
body.login div#login form#loginform button.button-secondary span.dashicons {
    color: var(--wporlogin-color-principal-marca);
}

body.login div#login p#nav {                
    text-align: center !important;
    margin: 0 !important;

    background-color: #ffffff !important;
    border-radius: 0 0 5px 5px;
    padding-bottom: 20px;
    padding-top: 8px;
}
body.login div#login p#nav a,
body.login div#login div.privacy-policy-page-link a.privacy-policy-link, 
body.login div#login form.admin-email-confirm-form p a,
body.login div#login form.admin-email-confirm-form div.admin-email__actions div.admin-email__actions-secondary a {
    color: var(--wporlogin-color-principal-marca);
    font-size: 14px !important;
    font-family: "Roboto",sans-serif !important;
}
body.login div#login p#nav a:hover,
body.login div#login div.privacy-policy-page-link a.privacy-policy-link:hover,
body.login div#login form.admin-email-confirm-form p a:hover,
body.login div#login form.admin-email-confirm-form div.admin-email__actions div.admin-email__actions-secondary a:hover {
    color: var(--wporlogin-color-hover-marca);
}
body.login div#login p#nav a:focus
body.login div#login div.privacy-policy-page-link a.privacy-policy-link:focus, 
body.login div#login form.admin-email-confirm-form p a:focus,
body.login div#login form.admin-email-confirm-form div.admin-email__actions div.admin-email__actions-secondary a:focus  {
    box-shadow: none !important;
}

/* ESTE BLOQUE SE MANTIENE EXACTAMENTE COMO EL ORIGINAL */
body.login div#login p#backtoblog {
    max-width: 300px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;

    background-color: #ffffff !important;
    border-radius: 0 0 5px 5px;
    margin-top: 0;
    padding: 8px 0 8px 0;
    box-shadow: 0px 15px 10px -18px #111 inset;
}
body.login div#login p#backtoblog a {
    color: #000000 !important;
}
body.login div#login p#backtoblog a:hover {
    color: var(--wporlogin-color-hover-marca) !important;
}
body.login div#login p#backtoblog a:focus {
    box-shadow: none !important;
}

/*
CUANDO EL USUARIO USA GRATIS
*/
.login_oregoom{
    color: #ffffff !important;
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 7px 15px !important;
    margin-bottom: 7px !important;
    background-color: rgba(0, 0, 0, 0.4)!important;
}
.login_oregoom a{
    text-decoration: none !important;
    color: #ffff00;
}
.login_oregoom a:hover{
    color: #ffdf00;
}   

body.login div#login form#loginform button.button-secondary {
    color: #1a73e8 !important;        
}
body.login div#login form#loginform button.button-secondary:hover {
    border-color: transparent !important;        
}

body.login div#login form#loginform p.forgetmenot {}
body.login div#login form#loginform p.forgetmenot input#rememberme {}
body.login div#login form#loginform p.submit {}

body.login div#login form#loginform p.submit input#wp-submit,
body.login div#login form#registerform p.submit input#wp-submit,
body.login div#login form#lostpasswordform p.submit input#wp-submit {
    background-color: var(--wporlogin-color-principal-marca);
    border: solid 1px var(--wporlogin-color-principal-marca);
    color: var(--wporlogin-color-principal-marca-text-submit) !important;
    float: none !important;
    width: 100% !important;
    height: 50px !important;
    font-size: 16px !important;
    margin-top: 10px !important;
    border-radius: 6px !important;
    font-family: "Roboto",sans-serif !important;
}
body.login div#login form#loginform p.submit input#wp-submit:hover,
body.login div#login form#registerform p.submit input#wp-submit:hover,
body.login div#login form#lostpasswordform p.submit input#wp-submit:hover {
    background-color: var(--wporlogin-color-hover-marca);
    border: solid 1px var(--wporlogin-color-hover-marca);
}
body.login div#login form#loginform p.submit input#wp-submit:focus,
body.login div#login form#registerform p.submit input#wp-submit:focus,
body.login div#login form#lostpasswordform p.submit input#wp-submit:focus {
    box-shadow: none !important;
}

body.login div.privacy-policy-page-link{
    margin-top: 30px !important;
}
body.login div.privacy-policy-page-link a.privacy-policy-link{
    color: #ffffff !important;
}

body.login div#login form.admin-email-confirm-form div.admin-email__actions div.admin-email__actions-primary input{
    background-color: var(--wporlogin-color-principal-marca);
    border: solid 1px var(--wporlogin-color-principal-marca);
    color: var(--wporlogin-color-principal-marca-text-submit) !important;
    font-family: "Roboto",sans-serif !important;
}
body.login div#login form.admin-email-confirm-form div.admin-email__actions div.admin-email__actions-primary input:hover{
    background-color: var(--wporlogin-color-hover-marca);
    border-color: var(--wporlogin-color-hover-marca);
}
body.login div#login form.admin-email-confirm-form div.admin-email__actions div.admin-email__actions-primary input:focus{
    box-shadow: none !important;
}

body.login div#login form.admin-email-confirm-form div.admin-email__actions div.admin-email__actions-primary a {
    border-color: var(--wporlogin-color-principal-marca);
    color: var(--wporlogin-color-principal-marca);
    background-color: #ffffff !important;
}
body.login div#login form.admin-email-confirm-form div.admin-email__actions div.admin-email__actions-primary a:hover {
    border-color: #000000 !important;
    color: #ffffff !important;
    background-color: #000000 !important;
}

body.login div.language-switcher form#language-switcher input{
    background-color: var(--wporlogin-color-principal-marca);
    border: solid 1px var(--wporlogin-color-principal-marca);
    color: var(--wporlogin-color-principal-marca-text-submit) !important;
    font-family: "Roboto",sans-serif !important;
}
body.login div.language-switcher form#language-switcher input:hover {
    background-color: var(--wporlogin-color-hover-marca);
    border: solid 1px var(--wporlogin-color-hover-marca);
}
body.login div.language-switcher form#language-switcher input:focus {
    box-shadow: none !important;
}

body.login div.language-switcher form#language-switcher select#language-switcher-locales{
}  
body.login div.language-switcher form#language-switcher select#language-switcher-locales:hover{
    color: var(--wporlogin-color-principal-marca) !important;
}    
body.login div.language-switcher form#language-switcher select#language-switcher-locales:focus {
    border-color: var(--wporlogin-color-principal-marca) !important;
    color: var(--wporlogin-color-principal-marca) !important;
    box-shadow: 0 0 0 1px var(--wporlogin-color-principal-marca) !important;
}    
body.login div.language-switcher form#language-switcher select#language-switcher-locales:active {
    border-color: var(--wporlogin-color-principal-marca) !important;
    box-shadow: none !important;
}