/* Flexbox container for the login page */
.login-page {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
}

/* Left Image Section - Carousel */
.login-image-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

    .login-image-section img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .login-image-section h1 {
        color: #ffffff;
        font-size: clamp(1.5rem, 2.5vw, 2.5rem);
        margin: clamp(1rem, 1.5vh, 1.25rem) 0 clamp(0.5rem, 0.8vh, 0.625rem);
        text-align: center;
        font-weight: 700;
    }

    .login-image-section p {
        color: #ffffff;
        text-align: center;
        font-size: clamp(1rem, 1.5vw, 1.25rem);
        line-height: 1.6;
    }

/* Right Login Form Section */
.login-form-section {
    background-color: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1.5rem, 3vh, 3rem) clamp(1.25rem, 2vw, 2rem);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
}


/* Logo styling */
.logo img {
    height: auto;
    max-height: 5rem;
    width: auto;
    max-width: 100%;
}

/* Form section container */
.form-section {
    padding-left: 0;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
}

/* Form group labels */
.form-group label {
    color: #374151;
    font-weight: 600;
    display: block;
    margin-bottom: clamp(0.375rem, 0.5vh, 0.5rem);
    font-size: 14px;
}

/* Form controls */
.form-control {
    color: #1f2937;
    border: 1px solid #d1d5db;
    border-radius: clamp(0.375rem, 0.4vw, 0.4rem);
    margin-bottom: clamp(0.75rem, 1vh, 1rem);
    width: 100%;
    padding: clamp(0.625rem, 0.8vh, 0.75rem);
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #40a8c5;
    box-shadow: 0 0 0 clamp(0.1875rem, 0.25vw, 0.2rem) rgba(8, 112, 180, 0.1);
}

/* Form action buttons */
.form-actions .btn {
    width: 100%;
    padding: clamp(0.625rem, 0.8vh, 0.75rem) clamp(1rem, 1.3vw, 1.5rem);
    background-color: #40a8c5;
    border: none;
    border-color: #40a8c5;
    color: white;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.form-actions .btn:hover {
    background-color: #40a8c5;
    border-color: #40a8c5;
}

/* Login title */
.login-form-section .form-section h3 {
    font-size: 2rem !important;
    font-weight: 700;
    color: #40a8c5;
    margin: 0 0 2rem 0 !important;
    padding: 0;
}

.company-logo img {
    height: 4rem;
    transform: scale(2);
    width: auto;
    max-height: 100%;
}
.company-logo::-webkit-scrollbar {
    display: none;
}

/* Large Desktop Responsive Layout (1025px - 1440px) */
@media (min-width: 1025px)  {
    .login-page {
        flex-direction: row;
    }

    .login-image-section,
    .login-carousel {
        flex: 1;
        min-width: 50%;
        width: 50%;
    }

    .login-form-section {
        flex: 1;
        min-width: 50%;
        width: 50%;
        padding: clamp(2.5rem, 3.5vh, 3rem) clamp(2rem, 3vw, 2.5rem);
    }

    .form-section {
        max-width: 520px;
        margin: 0 auto;
    }

    .logo img {
        max-height: 5rem;
    }

    /* Carousel adjustments */
    .carousel-image-container {
        max-width: clamp(220px, 24vw, 280px);
        width: clamp(220px, 24vw, 280px);
        height: clamp(220px, 24vw, 280px);
    }

    .carousel-heading {
        font-size: clamp(2rem, 2.8vw, 2.5rem) !important;
    }

    .carousel-description {
        font-size: clamp(1.125rem, 1.4vw, 1.25rem);
    }

    .carousel-stat-value {
        font-size: clamp(2rem, 2.5vw, 2.5rem) !important;
    }

    .carousel-stat-label {
        font-size: clamp(1rem, 1.3vw, 1.25rem);
    }

    .company-logo img {
        height: 4rem;
        transform: scale(1.3);
        width: auto;
        max-height: 100%;
    }
}

/* Extra Large Desktop (1441px - 1920px) */
@media (min-width: 1441px) and (max-width: 1920px) {
    .login-page {
        flex-direction: row;
    }

    .login-image-section,
    .login-carousel {
        flex: 1;
        max-width: 50%;
    }

    .login-form-section {
        flex: 1;
        max-width: 50%;
        padding: clamp(3rem, 4vh, 3.5rem) clamp(2.5rem, 3.5vw, 3rem);
    }

    .form-section {
        max-width: 550px;
        margin: 0 auto;
    }

    .logo img {
        max-height: 5.5rem;
    }

    /* Carousel adjustments */
    .carousel-image-container {
        max-width: 300px;
        width: 300px;
        height: 300px;
    }

    .carousel-heading {
        font-size: 2.5rem !important;
    }

    .carousel-description {
        font-size: 1.25rem;
    }

    .carousel-stat-value {
        font-size: 2.75rem !important;
    }

    .carousel-stat-label {
        font-size: 1.25rem;
    }

    .company-logo img {
        height: 4.5rem;
        transform: scale(1.4);
        width: auto;
        max-height: 100%;
    }
}

/* Ultra Wide Desktop (>1920px) */
@media (min-width: 1921px) {
    .login-page {
        flex-direction: row;
        max-width: 1920px;
        margin: 0 auto;
    }

    .login-image-section,
    .login-carousel {
        flex: 1;
        max-width: 960px;
    }

    .login-form-section {
        flex: 1;
        max-width: 960px;
        padding: 3.5rem 3rem;
    }

    .form-section {
        max-width: 600px;
        margin: 0 auto;
    }

    .logo img {
        max-height: 6rem;
    }

    /* Carousel adjustments */
    .carousel-image-container {
        max-width: 320px;
        width: 320px;
        height: 320px;
    }

    .carousel-heading {
        font-size: 2.75rem !important;
    }

    .carousel-description {
        font-size: 1.375rem;
    }

    .carousel-stat-value {
        font-size: 3rem !important;
    }

    .carousel-stat-label {
        font-size: 1.375rem;
    }

    .company-logo img {
        height: 5rem;
        transform: scale(2);
        width: auto;
        max-height: 100%;
    }
}

/* Tablet Responsive Layout (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .login-page {
        flex-direction: row;
    }

    .login-image-section,
    .login-carousel {
        display: flex !important;
        flex: 1;
        min-width: 50%;
        width: 50%;
    }

    .login-form-section {
        flex: 1;
        min-width: 50%;
        width: 50%;
        padding: clamp(2rem, 3vh, 2.5rem) clamp(1.5rem, 2.5vw, 2rem);
    }

    .form-section {
        max-width: 480px;
        margin: 0 auto;
    }

    .logo img {
        max-height: 4.5rem;
    }

    /* Carousel adjustments for tablet */
    .carousel-image-container {
        max-width: clamp(180px, 22vw, 250px);
        width: clamp(180px, 22vw, 250px);
        height: clamp(180px, 22vw, 250px);
    }

    .carousel-heading {
        font-size: clamp(1.75rem, 2.8vw, 2.25rem) !important;
    }

    .carousel-description {
        font-size: clamp(1rem, 1.3vw, 1.125rem);
    }

    .carousel-stat-value {
        font-size: clamp(1.5rem, 2.2vw, 2.25rem) !important;
    }

    .carousel-stat-label {
        font-size: clamp(0.9375rem, 1.2vw, 1.125rem);
    }

    .company-logo {
        display: flex !important;
    }    

    .company-logo img {
        height: 4rem;
        transform: scale(1.05);
        width: auto;
        max-height: 100%;
    }

    .company-logo::-webkit-scrollbar {
        display: none;
    }
}

/* Mobile Responsive Layout (max-width: 768px) */
@media (max-width: 768px) {
    .login-page {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .login-image-section {
        flex: none;
        width: 100%;
        min-height: 40vh;
        max-height: 45vh;
        padding: clamp(1rem, 2vh, 1.5rem);
    }

    .login-form-section {
        flex: 1;
        width: 100%;
        padding: clamp(1.5rem, 3vh, 2rem) clamp(1.25rem, 4vw, 1.75rem);
        min-height: 55vh;
        justify-content: flex-start;
    }

    .form-section {
        max-width: 100%;
        width: 100%;
        padding-left: 0 !important;
        margin: 0 auto !important;
    }

    .logo img {
        max-width: clamp(120px, 40vw, 180px);
        max-height: 4rem;
    }

    .login-form-section .form-section h3 {
        font-size: 2rem !important;
        text-align: center;
        margin: 0 0 2rem 0 !important;
    }

    .form-group {
        margin-bottom: clamp(0.875rem, 1.2vh, 1rem);
    }

    .form-group label {
        font-size: 14px;
    }

    .form-control {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
        padding: clamp(0.625rem, 1vh, 0.75rem);
    }

    .form-actions .btn {
        font-size: clamp(0.9375rem, 3.8vw, 1.0625rem);
        padding: clamp(0.75rem, 1.2vh, 0.875rem) clamp(1rem, 2vw, 1.25rem);
    }

    .company-logo img {
        height: 4rem;
        transform: scale(1.05);
        width: auto;
        max-height: 100%;
    }
    .company-logo::-webkit-scrollbar {
        display: none;
    }

    .logo-header {
        margin-bottom: 3rem;
    }
}

/* Small Mobile Layout (max-width: 480px) */
@media (max-width: 480px) {
    .login-image-section {
        min-height: 35vh;
        max-height: 40vh;
    }

    .login-form-section {
        padding: clamp(1.25rem, 2.5vh, 1.5rem) clamp(1rem, 3vw, 1.25rem);
        min-height: 60vh;
    }

    .logo img {
        max-width: clamp(100px, 35vw, 150px);
        max-height: 3.5rem;
    }

    .login-form-section .form-section h3 {
        font-size: clamp(1.25rem, 5.5vw, 1.5rem) !important;
    }

    .form-section {
        padding: 0 !important;
    }

    .logo-header {
        margin-bottom: 2rem !important;
    }
}
