/* ===== GENERAL LOGIN ===== */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background-color: white;
}

.login-panel {
    padding-left: 3%;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

.login-box {
    width: 85%;
    max-width: 400px;
}


/* ===== TÍTULO PRINCIPAL ===== */

.titulo-principal {
    font-size: 26px;
    font-weight: 600;
    color: #C1B58D;
    line-height: 1.6;       /* ← interlineado más amplio */ 
    text-transform: uppercase;
    margin-bottom: 35px;    /* ← lo baja un poco */
    text-align: center;
}


/* ===== INPUTS CON ICONOS ===== */

.input-group-text {
    background-color: #f8f9fa;
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    padding: 12px;
}

.form-control:focus {
    box-shadow: none !important;
    border-color: #ced4da !important;
    /* outline: none !important; */
}

/* ===== PARA EL ICONO DE CONTRASEÑA ===== */
.input-group.position-relative .form-control {
    border-left: none;
    border-radius: 0 8px 8px 0;
    box-shadow: none;
    padding: 12px;
    padding-right: 45px;
}
.toggle-password {
    cursor: pointer;
    background-color: transparent;
    border-left: none;
    border-radius: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password i {
    color: #6c757d;
}

.toggle-password:hover i {
    color: #495057;
}


/* ===== OLVIDASTE CONTRASEÑA ===== */

.forgot-link {
    font-size: 16px;
    color: #666;
    text-decoration: none;
}

.forgot-link:hover {
    color: #C1B58D;
}


/* ===== BOTÓN LOGIN ===== */

.btn-login {
    background-color: #1A2E35 !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
}

.btn-login:hover {
    background-color: #142328 !important;
}


/* ===== BOTÓN REGISTRO ===== */

.btn-register {
    background-color: #C1B58D !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    padding: 12px;
    border-radius: 8px;
}

.btn-register:hover {
    background-color: #b3a77e !important;
}

.captcha-container {
    display: flex;
    justify-content: center;
}

.g-recaptcha {
    transform: scale(0.92);
    transform-origin: 0 0;
}

.titulo-campo {
    font-size: 16px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 6px;
}

.texto-documentacion{
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #444;
    max-width: 600px;
    margin: auto;
}

/* Ajuste para pantallas grandes (Escritorio - Lógica de tu imagen) */
@media (min-width: 992px) {
    /* Quitamos el overflow-hidden del contenedor principal para evitar cortes */
    .container-fluid.min-vh-100 {
        overflow: hidden !important;
    }
    
    /* Ajustamos la columna de la imagen para que sea elástica */
    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
}

/* Ajuste para pantallas pequeñas (Celulares) */
@media (max-width: 991px) {
    .login-panel {
        min-height: 100vh;
        justify-content: center;
        padding: 24px 16px !important;
    }

    .login-box {
        width: 100%;
        max-width: 420px;
    }

    /* El formulario ahora toma el 100% del ancho */
    .col-12.col-lg-4 {
        width: 100% !important;
        padding: 20px !important;
    }

    /* Ocultamos la imagen decorativa en móviles para que no estorbe */
    .col-lg-8 {
        display: none !important;
    }

    /* Aseguramos que el logo no sea gigante en móvil */
    .text-center img {
        max-width: 150px !important;
    }

    .titulo-principal {
        font-size: 18px;
        line-height: 1.35;
        margin-bottom: 24px;
    }

    .forgot-link {
        font-size: 14px;
    }

    /* Ajustamos el tamaño del formulario para que sea scrollable si es necesario */
    .container-fluid.min-vh-100 {
        overflow-y: auto !important;
        height: auto !important;
    }
}
