/* ----------------------------------------------------------
   GENERAL
---------------------------------------------------------- */

body.login {
    background: url('../img/background.jpg') no-repeat center center fixed !important;
    background-size: cover !important;
    font-family: 'Work Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    padding: 0 !important;
}

/* Ocultamos language switcher y el enlace "← Ir a..." de WordPress */
body.login .language-switcher {
    display: none !important;
}

body.login #backtoblog {
    display: none !important;
}

/* Contenedor general: tarjeta con dos columnas */
.rw-login-wrapper {
    position: relative;
    width: 850px;
    max-width: 100%;
    margin: 0 !important;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 25px 80px rgba(0,0,0,0.35);
}

/* Columna izquierda (logo grande + made with ♥) */
.rw-login-left {
    width: 35%;
    background: #394852;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    padding: 60px 30px;
}

/* Logo Refinería grande */
.rw-login-left::before {
    content: "";
    display: block;
    width: 175px;
    height: 115px;
    background: url('../img/refineria-logo.svg') no-repeat center;
    background-size: contain;
    margin-bottom: 28px;
}

/* Made with ♥ en blanco, no emoji rojo */
.rw-login-left::after {
    content: "Made with \2665";
    font-size: 14px;
    opacity: 0.95;
}

/* Columna derecha (formulario) */
.rw-login-right {
    width: 60%;
    background: rgba(182, 220, 225, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    box-sizing: border-box;
}
.rw-login-wrapper,
.rw-login-left,
.rw-login-right,
body.login #loginform {
    border-radius: 0 !important;
}
/* Reset del contenedor #login de WP para integrarlo en la tarjeta */
body.login #login {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent;
    box-shadow: none !important;
    width: 100% !important;
    max-width: none !important;
}

/* Logo estándar de WP dentro de #login lo ocultamos;
   ya usamos el logo en la columna izquierda */
body.login #login h1,
body.login #login .wp-login-logo {
    display: none !important;
}

/* ----------------------------------------------------------
   FORM
---------------------------------------------------------- */

body.login #loginform {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* p del formulario */
body.login #loginform p {
    margin-bottom: 18px;
}

/* Labels: los mantenemos para accesibilidad, pero los escondemos visualmente */
body.login label[for="user_login"],
body.login label[for="user_pass"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip: rect(0 0 0 0);
    overflow: hidden;
}

/* Campos de texto */
body.login .input,
body.login input[type="text"],
body.login input[type="password"] {
    background: transparent;
    border: none !important;
    border-bottom: 2px solid #323e48 !important;
    border-radius: 0 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    padding: 10px 5px 10px 32px !important; /* padding izquierda por los iconos */
    box-shadow: none !important;
    color: #323e48 !important;
}

/* Iconos dentro de los inputs */
body.login #user_login,
body.login #user_pass {
    background-repeat: no-repeat;
    background-position: 6px center;
    background-size: 18px 18px;
}

/* Icono usuario */
body.login #user_login {
    background-image: url('../img/icon-user.svg');
}

/* Icono candado */
body.login #user_pass {
    background-image: url('../img/icon-lock.svg');
}

/* Placeholder */
body.login ::placeholder {
    color: #323e48;
    opacity: 0.8;
}

/* Botón del "ojo" de contraseña */
body.login .wp-pwd .button.wp-hide-pw {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute;
    right: 0;
    bottom: 6px;
    padding: 0 !important;
}

body.login .wp-pwd .dashicons {
    color: #323e48;
}

/* Agrupación botón + recuérdame en una sola fila */

body.login #loginform .submit,
body.login #loginform .forgetmenot {
    width: 50%;
    box-sizing: border-box;
}

/* Botón a la IZQUIERDA */
body.login #loginform .submit {
    text-align: left;
    margin-top: 14px;
}

/* "Recuérdame" a la DERECHA */
body.login #loginform .forgetmenot {
    margin-top: 24px;
    font-size: 14px !important;
}

/* Limpiar floats del form */
body.login #loginform::after {
    content: "";
    display: block;
    clear: both;
}

/* Checkbox */
body.login #loginform .forgetmenot input[type="checkbox"] {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 6px;
}

body.login #loginform .forgetmenot label {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #323e48 !important;
}

/* Botón ACCEDER */
body.login #wp-submit {
    background: #ffffff !important;
    color: #323e48 !important;
    border-radius: 999px !important;
    padding: 11px 30px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border: none !important;
    text-shadow: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
}

body.login #wp-submit:hover {
    transform: translateY(-1px);
    color: #fff !important;
    background-color: #323e48 !important;

}
.login .button-primary{
    float: left;
}
/* Enlace "¿Has olvidado tu contraseña?" */
body.login #nav {
    margin-top: 28px;
    text-align: left;
    padding-left: 0;
}

body.login #nav a {
    color: #323e48 !important;
    text-decoration: underline !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */

.refineria-login-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 24px;
    text-align: center;
    font-size: 13px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    z-index: 100;
}

.refineria-login-footer a {
    color: #ffffff !important;
    font-weight: 500;
    text-decoration: underline;
}

/* ----------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------- */

@media (max-width: 900px) {
    .rw-login-wrapper {
        flex-direction: column;
        max-width: 90%;
        margin-top: 60px;
    }

    .rw-login-left,
    .rw-login-right {
        width: 100%;
    }

    .rw-login-left {
        padding: 30px 20px;
    }

    .rw-login-right {
        padding: 30px 25px;
    }
}

@media (max-width: 600px) {
    body.login #loginform .submit,
    body.login #loginform .forgetmenot {
        width: 100%;
        float: none;
    }

    body.login #loginform .forgetmenot {
        margin-top: 10px;
    }

    .refineria-login-footer {
        font-size: 12px;
        padding: 0 10px;
    }
}
