body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    position: relative;
    overflow-x: hidden; /* Prevent horizontal scrollbar from animation */
}

.login-container {
    display: flex;
    min-height: 100vh;
}



#company-logo{
    /* Ensure the logo is a block element and centered horizontally */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55%;
    padding: 20px; /* Add some padding for smaller screens */
    background-color: #f8f9fa;
}

.form-signin {
    width: 100%;
    max-width: 400px;
    padding: 15px;
    margin: auto; /* Center the form within its container */
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    .login-branding, .login-form-container {
        width: 100%;
        min-height: 30vh;
    }
    .login-form-container {
        min-height: 70vh;
    }
}

/* Animated Background Container */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place it behind all other content */
    overflow: hidden;
    background: linear-gradient(to bottom, #f0f2f5, #e6e9ed);
}

/* Individual Shapes for Animation */
.animated-bg .shape {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(100, 100, 200, 0.15); /* A subtle blue tint */
    animation: animate 25s linear infinite;
    bottom: -150px; /* Start below the screen */
}

/* Varying sizes and positions for the shapes */
.animated-bg .shape:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.animated-bg .shape:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.animated-bg .shape:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.animated-bg .shape:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.animated-bg .shape:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.animated-bg .shape:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.animated-bg .shape:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.animated-bg .shape:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.animated-bg .shape:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.animated-bg .shape:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

/* The Animation Keyframes */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* Ensure the login card is above the background */
.container {
    position: relative;
    z-index: 1;
}

/* Make the card slightly transparent to see the background */
.card {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(5px);
}
