﻿/* login-moderno.css - Diseño Emmanuel Biónico v2.0 */
:root {
    --primary-spike: #5d87ff;
    --bg-body: #f4f7f9;
    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
    --yellow-warning: #fff9c4;
    --red-error: #d32f2f;
}

body.login-cover {
    background-color: var(--bg-body) !important;
    background-image: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Roboto', sans-serif;
}

/* --- ESTRUCTURA RESPONSIVA (Mobile First) --- */
.login-form {
    display: flex !important;
    flex-direction: column; /* Móvil: una columna */
    width: 100% !important;
    max-width: 420px !important;
    margin: 20px auto !important;
    overflow: hidden;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-soft) !important;
    background: #fff !important;
}

@media (min-width: 768px) {
    .login-form {
        flex-direction: row; /* PC: dos columnas */
        width: 900px !important;
        max-width: 95% !important;
    }

        .login-form > .text-center:first-child {
            width: 45% !important;
            padding: 60px !important;
            border-right: 1px solid #f0f0f0;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

    #divContenidoControles {
        width: 55% !important;
        padding: 60px 45px !important;
    }
}

/* --- ALERTAS AMARILLAS / LETRAS ROJAS (Forzado) --- */
#divMensajeFlotanteRecuperarClave .alert,
#divVerificarAcceso .alert,
#divMensajeFlotanteNuevoUsuario .alert,
.alert-styled-left {
    background-color: var(--yellow-warning) !important;
    color: var(--red-error) !important;
    border: 1px solid #fbc02d !important;
    border-radius: var(--radius-md) !important;
    padding: 15px 20px !important;
    box-shadow: 0 4px 12px rgba(251, 192, 45, 0.2) !important;
    font-weight: 600 !important;
}

.alert strong, .alert i {
    color: #b71c1c !important;
}

/* --- CONTROLES E ICONOS (Ajuste de 10px / Aire) --- */
.form-control {
    border-radius: 10px !important;
    height: 45px !important;
    border: 1px solid #e0e0e0 !important;
    padding-left: 15px !important; /* El aire de Paolo */
    background-color: #fafcfe !important;
}

/* Ajuste específico para cuando hay iconos a la izquierda en el Login */
.has-feedback-left .form-control {
    padding-left: 45px !important;
}

.has-feedback-left .form-control-feedback {
    left: 10px !important; /* Despegado del borde */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 45px;
}

/* --- SELECT CON FLECHA AZUL (Forzado) --- */
select#slNuevoUsuarioTipoDocumento {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235d87ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 18px !important;
    padding-left: 15px !important;
}

/* --- MODALES: ATAQUE POR ID PARA FORZAR REDONDEO --- */
#modal_nuevo_postulante .modal-content,
#modal_recuperacion_clave_postulante .modal-content {
    border-radius: 20px !important;
    border: none !important;
    overflow: hidden !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2) !important;
}

#modal_nuevo_postulante .modal-header,
#modal_recuperacion_clave_postulante .modal-header {
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 20px !important;
}

/* --- BOTONES --- */
.btn {
    border-radius: 10px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

    .btn:active {
        transform: scale(0.98) !important;
    }

/* Botón Cerrar (Rojo) */
.modal-footer .btn-default {
    background-color: #ff5c5c !important;
    color: white !important;
    border: none !important;
}


div[id^="modal_"] .modal-content {
    border-radius: 25px !important;
    border: none !important;
    overflow: hidden !important;
}

/* FORZAR EL AIRE DE LOS INPUTS */
.form-control {
    padding-left: 15px !important;
    border-radius: 10px !important;
}

.has-feedback-left .form-control {
    padding-left: 45px !important;
}

/* EL SELECT CON LA FLECHA */
#slNuevoUsuarioTipoDocumento {
    background-position: right 15px center !important;
    padding-left: 15px !important;
}