/**
 * Login GW360 - Estilos personalizados de login
 * Autor: Goweb360
 * URL: https://goweb360.com/
 */

/* Reset y estilos base */
body.login {
    background: #ffffff;
}

/* Contenedor del formulario */
#login {
    width: 360px;
    padding: 5% 0 0;
    margin: auto;
}

/* Logo */
#login h1 a,
.login h1 a {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 200px;
    height: 150px;
    margin: 0 auto 20px;
    display: block;
}

/* Título "Acceder" */
.login #login_error,
.login .message,
.login .success {
    border-left: 4px solid #2271b1;
    margin-bottom: 20px;
}

/* Formulario */
.login form {
    margin-top: 20px;
    margin-left: 0;
    padding: 26px 24px 34px;
    font-weight: 400;
    overflow: hidden;
    background: #fff;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Labels */
.login label {
    font-size: 14px;
    color: #3c434a;
    font-weight: 400;
}

/* Inputs */
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
    font-size: 16px;
    line-height: 1.5;
    width: 100%;
    padding: 10px 12px;
    margin: 8px 0 16px;
    border: none;
    border-bottom: 2px solid #c3c4c7;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    color: #2c3338;
    transition: border-color 0.2s ease;
}

.login input[type="text"]:focus,
.login input[type="password"]:focus,
.login input[type="email"]:focus {
    border-bottom-color: #2271b1;
    box-shadow: none;
    outline: none;
}

/* Checkbox "Recuérdame" */
.login .forgetmenot {
    margin-bottom: 16px;
}

.login input[type="checkbox"] {
    border: 2px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    color: #2271b1;
    width: 18px;
    height: 18px;
}

.login input[type="checkbox"]:checked {
    background: #2271b1;
    border-color: #2271b1;
}

/* Botón de acceso */
.login .button-primary {
    width: 100%;
    height: auto;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    background: #2271b1;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    text-shadow: none;
    box-shadow: none;
    transition: background-color 0.2s ease;
}

.login .button-primary:hover,
.login .button-primary:focus {
    background: #135e96;
    border: none;
    box-shadow: none;
}

.login .button-primary:active {
    background: #0a4b78;
}

/* Ocultar el icono del password reveal si existe */
.login .wp-pwd .button.wp-hide-pw {
    color: #8c8f94;
}

.login .wp-pwd .button.wp-hide-pw:hover {
    color: #2271b1;
}

/* Enlaces del formulario */
#nav,
#backtoblog {
    text-align: center;
    margin: 16px 0 0;
    padding: 0 24px;
}

#nav a,
#backtoblog a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

#nav a:hover,
#backtoblog a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* Selector de idioma */
.login .language-switcher {
    margin-top: 30px;
    text-align: center;
}

.login .language-switcher select {
    padding: 8px 12px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    font-size: 14px;
}

.login .language-switcher .button {
    padding: 8px 16px;
    background: #2271b1;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.login .language-switcher .button:hover {
    background: #135e96;
}

/* Mensajes de error */
#login_error {
    border-left-color: #d63638;
}

#login_error a {
    color: #d63638;
}

/* Privacy policy link */
.login .privacy-policy-page-link {
    text-align: center;
    margin-top: 20px;
}

.login .privacy-policy-page-link a {
    color: #8c8f94;
    font-size: 13px;
}

/* Responsive */
@media screen and (max-width: 480px) {
    #login {
        width: 90%;
        padding: 10% 5%;
    }

    .login form {
        padding: 20px 16px 26px;
    }

    .login h1 a {
        width: 150px;
        height: 100px;
    }
}

/* Esconder el enlace a WordPress.org */
.login #login h1 a {
    text-indent: -9999px;
}

/* Password toggle icon */
.login .button.wp-hide-pw {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 5px;
}

.login .wp-pwd {
    position: relative;
}
