/* =========================================
   1. ESTILOS GENERALES (AL INICIO DEL CSS)
========================================= */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    /* Dejamos la imagen fija para computadoras */
    background: url('../img/poner1.jpg') no-repeat left center fixed;
    background-size: cover;
    position: relative;
}

/* Capa que hace el corte de color en computadoras */
.siec-bg-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, #f0f4f8 50%);
    backdrop-filter: none;
    z-index: 1;
}
/* Contenedor que empuja la tarjeta hacia el lado derecho */
.siec-centered-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Cambiamos 'center' por 'flex-end' para mandar la tarjeta a la derecha */
    justify-content: flex-end; 
    /* Agrega espacio para que la tarjeta respire y no se pegue al borde derecho */
    padding: 24px 8% 24px 24px; 
    z-index: 10;
}
/* =========================================
   TARJETA CORPORATIVA CENTRAL (THE CARD)
========================================= */
.siec-login-card {
    width: 100%;
    max-width: 430px;
    background-color: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    /* Sombra mucho más suave y difuminada ideal para fondos claros */
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08), 0 1px 10px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Área del Logotipo */
.brand-logo {
    margin-bottom: 30px;
}

.brand-logo img {
    max-width: 210px;
    height: auto;
}

/* Textos SIEC */
.siec-welcome-header {
    margin-bottom: 35px;
}

.siec-welcome-header h2 {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.siec-welcome-header h2 span {
    color: #003366; /* Tu azul característico */
    font-weight: 800;
}

.siec-welcome-header p {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

/* =========================================
   DISEÑO DE LOS INPUTS COMODOS
========================================= */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input {
    height: 54px;
    font-size: 15px;
    border: 1px solid #cbd5e1;
    padding-left: 52px;
    border-radius: 10px;
    background-color: #f8fafc; /* Gris muy claro interno */
    color: #1e293b;
    transition: all 0.2s ease-in-out;
}

/* Efecto focus iluminado al hacer clic */
.form-group input:focus {
    border-color: #003366;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.15);
    color: #0f172a;
    outline: none;
}

/* Iconos de FontAwesome */
.form-group::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #94a3b8;
    z-index: 10;
    transition: color 0.2s ease;
}

/* Ilumina el icono cuando el input está activo */
.form-group:focus-within::before {
    color: #003366;
}

.form-group#user-group::before { content: "\f007"; }
.form-group#contrasena-group::before { content: "\f023"; }

/* =========================================
   BOTÓN PREMIUM DE INGRESO
========================================= */
/* BOTÓN: Exactamente con el azul rey de tu barra de altas de clientes */
.btn-siec-submit {
    width: 100%;
    height: 54px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #004a99; /* El color exacto de tu barra corporativa */
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 74, 153, 0.3);
    transition: all 0.25s ease;
    margin-top: 15px;
}
.btn-siec-submit:hover {
    background: #003670; /* Se oscurece un poco al pasar el mouse */
    box-shadow: 0 6px 20px rgba(0, 74, 153, 0.45);
    transform: translateY(-1px);
}

.btn-siec-submit:active {
    transform: translateY(1px);
}

/* =========================================
   2. RESPONSIVE (AL FINAL DE TU CSS)
========================================= */
@media screen and (max-width: 992px) {
    
    /* TRUCO INMORTAL PARA COBRIR LA IMAGEN EN HUAWEI:
       Creamos una capa virtual sobre el body que tapa la foto por completo */
    body::after {
        content: "";
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: #f0f4f8 !important; /* Tu color gris claro limpio */
        z-index: 1; /* Se sitúa encima de la foto rebelde */
        display: block !important;
    }

    /* Ocultamos por completo la capa del degradado viejo */
    .siec-bg-overlay {
        display: none !important;
        z-index: -1 !important;
    }

    /* Mandamos el contenedor por encima de nuestra capa gris tapajuntas */
    .siec-centered-container {
        position: relative !important;
        z-index: 10 !important; /* Indispensable para que puedas presionar los inputs */
        background: transparent !important;
        justify-content: center !important; 
        padding: 16px !important;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    /* Ajuste de la tarjeta blanca para pantallas de celulares */
    .siec-login-card {
        background-color: #ffffff !important;
        padding: 35px 20px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05) !important;
        border: 1px solid #cbd5e1 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Optimización de los textos de bienvenida */
    .siec-welcome-header h2 {
        font-size: 22px !important;
    }
    
    .siec-welcome-header p {
        font-size: 11px !important;
    }
}