/**
Theme Name: OphtiCare by CODIVIT
Author: CODIVIT
Author URI: https://codivit.com/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ophticare-by-codivit
Template: astra
*/

/*
 * 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://ophticare.com.ar/wp-content/uploads/2025/01/blue-light-rays-on-dark-blue-background-abstract-g-2023-12-01-04-46-35-RP2692F.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%;
    }
}