/* Fondo borroso */
.blur-bg {
    background-image: url("../images/fondo_ulagos.jpg");
    background-size: cover;
    background-position: center;
    filter: blur(6px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Contenedor principal */
.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1;
}

/* Caja principal dividida */
.login-container {
    display: flex;
    width: 900px;
    max-width: 100%;
    height: 520px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

/* IZQUIERDA: LOGIN */
.login-left {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

/* DERECHA: UNA SOLA IMAGEN - usando gradiente ULagos */
.collage-single {
    width: 50%;
    position: relative;
    background: linear-gradient(
        135deg,
        rgba(0, 61, 166, 0.95),
        rgba(0, 39, 96, 0.85)
    );
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.collage-img {
    width: 85%;
    max-width: 420px;
    border-radius: 18px;
    background: rgba(255,255,255,0.15);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.45);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.collage-img:hover {
    transform: scale(1.04);
}

/* Botón de login con colores ULagos */
.login-btn {
    background: linear-gradient(135deg, var(--ulagos-dark-blue, #002760) 0%, var(--ulagos-blue, #003DA6) 100%);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 61, 166, 0.3);
    background: linear-gradient(135deg, #001a4d 0%, var(--ulagos-dark-blue, #002760) 100%);
}

/* Enlaces de login */
.login-links a {
    color: var(--ulagos-blue, #003DA6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.login-links a:hover {
    color: var(--ulagos-dark-blue, #002760);
    text-decoration: underline;
}

/* Título de login */
.login-title {
    color: var(--ulagos-dark-blue, #002760);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Input focus con borde ULagos */
.form-control:focus {
    border-color: var(--ulagos-blue, #003DA6);
    box-shadow: 0 0 0 0.2rem rgba(0, 61, 166, 0.25);
}

/* ============================================ */
/* RESPONSIVE: Igual al home_selector.css */
/* ============================================ */
@media (max-width: 768px) {
    /* Reset del wrapper */
    .login-wrapper {
        position: relative !important;
        min-height: 100vh !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 20px !important;
        margin: 0 !important;
    }

    /* Contenedor principal igual que .selector-container */
    .login-container {
        display: flex !important;
        flex-direction: column !important;
        width: 95% !important;
        max-width: 95% !important;
        height: auto !important;
        background: rgba(255, 255, 255, 0.92) !important;
        border-radius: 20px !important;
        padding: 0 !important;
        gap: 0 !important;
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.25) !important;
        overflow: hidden !important;
    }

    /* Imagen arriba - similar a .selector-card */
    .collage-single {
        width: 100% !important;
        position: relative !important;
        order: -1 !important;
        background: linear-gradient(135deg, rgba(0, 61, 166, 0.95), rgba(0, 39, 96, 0.85)) !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 48px 24px !important;
        min-height: 280px !important;
        border-radius: 0 !important;
    }

    /* Login abajo - similar a .selector-card */
    .login-left {
        width: 100% !important;
        order: 2 !important;
        padding: 40px 32px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        background: transparent !important;
    }

    /* Imagen más pequeña y centrada */
    .collage-img {
        width: 65% !important;
        max-width: 240px !important;
        margin: 0 auto !important;
    }

    /* Ajustes de texto */
    .login-left h3 {
        font-size: 1.5rem !important;
    }

    .login-left .form-control-lg {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
    }

    .login-left .btn-lg {
        font-size: 1rem !important;
        padding: 0.75rem 1rem !important;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 480px) {
    .login-wrapper {
        padding: 12px !important;
    }

    .login-container {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px !important;
    }

    .collage-single {
        padding: 32px 16px !important;
        min-height: 220px !important;
    }

    .login-left {
        padding: 28px 20px !important;
    }

    .collage-img {
        width: 75% !important;
        max-width: 180px !important;
    }

    .login-left h3 {
        font-size: 1.25rem !important;
    }

    .login-left .mb-4 img {
        height: 80px !important;
    }
}

/* Ajuste para tablets pequeñas (entre 769px y 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .login-container {
        width: 95% !important;
        height: auto !important;
        min-height: 480px !important;
    }
    
    .login-left {
        padding: 30px !important;
    }
    
    .collage-single {
        padding: 20px !important;
    }
}