
/* ==========================================================================
   ESTILOS CONTROLADOS PARA LOGIN C5 (CORRECCIÓN DE MAQUETACIÓN)
   ========================================================================== */

@import url("https://fonts.googleapis.com/css?family=Roboto+Condensed:300,400,700|Roboto:300,400,500,700");

/* Pantalla completa del navegador: actúa como fondo gris neutro */
/* 1. Base del navegador fija */
body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden; /* Evita barras de navegación raras */
    position: relative;
}

/* 2. LA CAPA MÁGICA: Esta es la que se difumina de fondo */
body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Tu imagen de portada ocupando toda la pantalla */
    background-image: url('/img/portada.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    
    

}

/* 3. Contenedor centrado para el login */
.login-pantalla-completa {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    z-index: 1; /* Se superpone al fondo difuminado */
}

/* 4. LA VENTANA FLOTANTE (Ahora limpia y con una sombra suave sobre el fondo borroso) */
.login-wrapper {
    width: 100%;
    max-width: 420px; /* Ancho ideal para que el reCAPTCHA de Google no se corte */
    padding: 15px;    /* Margen interno antes de la tarjeta blanca */
    box-sizing: border-box;
}

/* 5. LA TARJETA BLANCA (Sólida, limpia e idéntica a tu index) */
.login-box {
    background: #ffffff !important; 
    border-radius: 8px !important;
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.3) !important; /* Sombra marcada para que flote */
    border: none !important;
    margin-bottom: 0 !important;
}
/* Encabezado */
.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-header h3 {
    font-family: 'Roboto Condensed', sans-serif;
    color: #2c3e50;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 5px 0;
    font-size: 22px;
}

.login-header p {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.linea-separadora {
    margin-top: 12px;
    border-top: 1px solid #eee;
}

/* ESTRUCTURA CORECTA: Forzamos a que vayan uno abajo del otro */
.form-group {
    display: flex !important;
    flex-direction: column !important; /* Hace que el input baje del label */
    margin-bottom: 15px;
    text-align: left;
}

.login-label {
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    font-size: 14px;
}

.login-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Bloque del CAPTCHA */
.captcha-container {
    display: flex !important;
    flex-direction: column !important;
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    margin-top: 15px;
    margin-bottom: 15px;
}

.captcha-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 13px;
}

.captcha-box {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px;
    background: #fff;
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#captcha-img {
    height: 35px;
    max-width: 70%;
}

.btn-refresh {
    background: #f0f0f0;
    border: 1px solid #ccc;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.captcha-input {
    width: 100%;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Botón de envío */
.btn-submit {
    width: 100%;
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px;
    font-weight: bold;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    display: block;
}

.btn-submit:hover {
    background-color: #219653;
}

/* Registro footer */
.register-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.register-footer p {
    color: #666;
    margin: 0 0 5px 0;
}

.register-link {
    color: #27ae60;
    font-weight: bold;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}


/* Estilo flotante tipo Toast para las alertas */
.dynamic-toast {
    border-radius: 6px !important;
    padding: 10px 15px !important;
    margin-bottom: 20px !important;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0px 4px 12px rgba(217, 83, 79, 0.2); /* Sombra rojiza sutil */
    
    /* Animación extra de pulso al aparecer */
    animation: slideDownIn 0.4s ease-out;
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




.footer_area_custom {
        background-color: #f5f7f9; /* Fondo gris claro sutil */
        padding: 40px 0 30px 0;
        text-align: center;
        width: 100%;
        display: block;
    }
    
    .footer_brand_logo {
        max-width: 110px;
        height: auto;
        margin-bottom: 20px;
    }

    .footer_social_list {
        display: flex !important;
        gap: 10px !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 0 20px 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .footer_social_list li {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .footer_social_list li a {
        width: 32px !important;          /* Círculo más compacto */
        height: 32px !important;         /* Círculo más compacto */
        line-height: 32px !important;    /* Centrado vertical exacto del icono */
        font-size: 13px !important;      /* Tamaño del icono reducido */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        background-color: #052c7d !important; /* El azul CRIO oficial */
        color: #ffffff !important;
        text-decoration: none !important;
        transition: background-color 0.3s ease, transform 0.2s ease;
    }

    .footer_social_list li a:hover {
        background-color: #2761d8 !important; /* Azul más claro al pasar el mouse */
        transform: scale(1.05);
    }

    .footer_copyright_text {
        font-family: "Roboto", sans-serif;
        font-size: 13px;
        color: #8f97a7;
        margin: 0;
        padding: 0;
    }
    
    .footer_copyright_text strong {
        color: #052c7d;
        font-weight: 700;
    }