 html, body { 
     height: 100%; 
     margin: 0; 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
} 

.container-fluid {
    display: flex;
    flex-direction: row;
    height: 100vh;
}


/* Left panel (carousel) */
.left-panel {
    flex: 1;
    overflow: hidden;
    border-radius: 15px;
    margin: 20px;
}

/* Carousel image */
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

footer {
    font-size: 0.8rem;
    color: #888;
    text-align: center;
    padding: 15px 0;
    width: 100%;
    margin-top: auto; /* pushes it to the bottom of flex column */
}

/* Right panel (login form) */
.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px;
    background-color: transparent;
     overflow-y: auto; 
}

/* Form box */
.form-box {
    width: 100%;
    max-width: 350px;
    flex-shrink: 0;
}

/* Buttons */
.btn-primary {
    width: 100%;
    border-radius: 8px;
}


/* Hide left panel on small screens */
@media (max-width: 768px) {
    .container-fluid {
        flex-direction: column;
        height: auto;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        flex: 1;
        width: 100%;
        padding: 20px;
    }

    .carousel-caption h2 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

/* Smaller devices adjustments */
@media (max-width: 480px) {
    .right-panel {
        padding: 10px;
    }

    .bold-heading {
        font-size: 30px;
    }

    .custom-signin-btn {
        width: 100%;
        font-size: 16px;
    }
}
