/*
 Theme Name:   Sprint Child Theme
 Theme URI:    https://sprint.ancorathemes.com/
 Description:  Sprint Child Theme
 Author:       AncoraThemes
 Author URI:   https://ancorathemes.com/
 Template:     sprint
 Version:      1.0.0
 Tested up to: 6.6
 Requires at least: 5.0
 Requires PHP: 7.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
 Text Domain:  sprint
*/


/* =Theme customization starts here
------------------------------------------------------------ */



/*
 * HOJA DE ESTILOS PARA LA PÁGINA DE LOGIN DE WORDPRESS
 */

/* --- 1. Diseño de Pantalla Dividida --- */

/* Fondo blanco para la columna del formulario */
body.login {
    background: #fff;
}

/* Columna de la imagen (derecha) */
body.login::after {
    content: '';
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 58%; /* Ajusta este ancho */
    height: 100vh;
    z-index: 1;
    background-image: url('https://dunkstreet.codivit.com/wp-content/uploads/2026/02/pantalones-cortos-de-baloncesto.jpg') !important;
    background-size: cover;
    background-position: center;
}

/* Contenedor del formulario (columna izquierda) */
#login {
    width: 42%; /* El restante de la columna de imagen */
    max-width: 500px;
    min-width: 320px;
    height: 100vh;
    margin: 0;
    padding: 0 4%; /* Espaciado interno */
    background: #fff;
    box-shadow: none;
    z-index: 10;
    position: relative;
    
    /* Centra el formulario verticalmente */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- 2. Ocultar Elementos por Defecto --- */

/* Oculta el logo de WordPress */
#login h1,
#login h1 a {
    display: none;
}

/* Oculta el selector de idioma (si está activo) */
.login .language-switcher {
    display: none;
}


/* --- 3. Estilos del Encabezado Personalizado --- */

.login-header-custom {
    margin-bottom: 24px;
}

.login-header-custom .welcome-back {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login-header-custom h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
}


/* --- 4. Estilos del Formulario --- */

#loginform {
    padding: 0;
    margin-top: 0;
    background: none;
    border: none;
    box-shadow: none;
}

/* Estilo de las etiquetas (Username, Password) */
#loginform label {
    font-size: 14px;
    color: #444;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

/* Estilo de los campos de texto */
#loginform input[type="text"],
#loginform input[type="password"] {
    font-size: 16px;
    padding: 12px 10px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Estilo del checkbox "Recuérdame" */
.login .forgetmenot {
    float: none;
    margin-top: 15px;
    margin-bottom: 25px;
}
.login .forgetmenot label {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 0;
}
.login .forgetmenot input[type="checkbox"] {
    border-radius: 4px;
    border-color: #ddd;
}

/* Estilo del botón "Acceder" (Log In) */
#loginform .wp-submit {
    width: 100%;
    height: auto;
    background: #000000;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: none;
    transition: background 0.2s ease-in-out;
}

#loginform .wp-submit:hover {
    background: #d95a4f; /* Color más oscuro al pasar el ratón */
}

/* Estilo del enlace "¿Has olvidado tu contraseña?" */
#login #nav {
    margin: 20px 0 0 0;
    padding: 0;
}

#login #nav a {
    color: #000000;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

#login #nav a:hover {
    color: #000000;
    text-decoration: underline;
}


/* --- 5. Responsividad (Móvil) --- */

@media (max-width: 768px) {
    /* Oculta la imagen de fondo en pantallas pequeñas */
    body.login::after {
        display: none;
    }

    /* Hace que el formulario ocupe toda la pantalla */
    #login {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 100vh;
        padding: 10% 8%;
    }
}