/* Login Container */
.login-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
}

.row {
    margin: 0;
    flex-wrap: nowrap;
}

.login-container .container-fluid {
    padding: 0;
}


/* Left Section - Carousel */
.left-section {
    background: #003134;
    color: white;
    padding-right: 50px;
    padding-left: 50px;
    padding-bottom: 48px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    width: 420px;
}

/* Overlay Image */
.overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.carousel-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 25px;          /* exact spacing between carousel + progress bars */
  height: 50%;
  justify-self: center;
}


/* Carousel Content */
.carousel-content {
    flex: 0 0 auto;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.slide {
    position: absolute;
    width: 100%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
}

.slide.active {
    opacity: 1;
}

.slide-icon {
    display: flex;
    width: 235.623px;
    height: 280.396px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.slide-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slide h2 {
    font-size: 28px;
    font-weight: 600;
    font-style: italic;
    margin: 0 0 10px 0;
    color: white;
    line-height: 1.3;
}

.slide span {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 320px;
    margin: 0;
    color: white;
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    gap: 12px;
    z-index: 2;
    position: relative;
    margin-bottom: 100px;
}

.progress-bar-item {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    flex: 1;
    overflow: hidden;
    position: relative;
}

.progress-bar-item.active .progress-fill {
    animation: fillProgress 2s linear forwards;
}

.progress-fill {
    height: 100%;
    background: #c5e84e;
    width: 0;
}

@keyframes fillProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* Right Section - Form */
.right-section {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding: 246px 103px;
}

/* Steps Indicator */
.right-section>.d-flex {
    margin-bottom: 40px;
    align-items: center;
    gap: 10px;
    max-width: 500px;
    width: 100%;
}

.right-section hr {
    flex: 1;
    margin: 0 10px;
    border-top: 2px solid #dee2e6;
    opacity: 1;
}

/* Login Form */
.login-form {
    width: 100%;
}

.login-form h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #212529;
}

.login-form p {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 15px;
}

/* Phone Input */
.phone-number {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.phone-number:focus {
    outline: none;
    border-color: #c5e84e;
    box-shadow: 0 0 0 3px rgba(197, 232, 78, 0.1);
}

.login-form #otp {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

.login-form .otp-box {
    display: flex;
    height: 48px;
    padding: 10px 16px;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex: 1 0 0;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, #C7EE4E 10.42%, #A2D409 101.04%);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #212529;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 20px;
    margin-bottom: 15px;
}

.btn-login:hover {
    background: #b5d63e;
    color: #212529;
}

.login-form small {
    color: #6c757d;
    font-size: 13px;
}

.login-form small a,
.login-form .btn-1 {
    color: #74950E;
    font-family: Manrope;
    font-size: 16px;
    font-weight: 700;
    border: none;
    background-color: transparent;
    text-decoration: underline;
}

.login-form small a:hover {
    text-decoration: underline;
}

.login-form h3 {
    color: #003134;
    text-align: center;
    font-family: Manrope;
    font-size: 28px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    /* 33.6px */
    letter-spacing: 0.14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .row {
        flex-wrap: wrap;
    }

    .login-container {
        flex-direction: column;
    }

    .left-section {
        height: 475px;
        width: 100%;
        flex-shrink: 0;
        padding-left: 16px;
        padding-right: 17px;
        padding-top: 80px;
        padding-bottom: 25px;
        border-radius: 0 0 14px 12px;
    }

    .overlay-image {
        width: 100%;
        left: 25%;
        top: -25px;
        height: auto;
    }

    .slide {
        align-items: center;
        gap: 16px;
    }

    .slide h2 {
        color: #E4E9E9;
        text-align: center;
        font-family: "DM Serif Text";
        font-size: 28px;
        font-style: italic;
        font-weight: 400;
        line-height: 120%;
        /* 33.6px */
        letter-spacing: 0.14px;
    }

    .slide span {
        color: var(--Dark-Mode-Body-Text, #BCC);
        text-align: center;

        /* Web Body Regular */
        font-family: Manrope;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 160%;
        /* 25.6px */
        letter-spacing: 0.16px;
    }

    .slide-icon {
        width: 100%;
        height: auto;
        align-items: center;
    }

    .slide-icon img {
        display: flex;
        width: 168px;
        height: 199.924px;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .progress-indicator {
        margin-bottom: 0;
    }

    .right-section {
        padding: 0;
        padding-top: 25px;
        justify-content: flex-start;
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 200px;
    }

    .login-form h3 {
        color: #003134;
        text-align: center;

        /* Mobile Body Large */
        font-family: Manrope;
        font-size: 20px;
        font-style: normal;
        font-weight: 600;
        line-height: 160%;
        /* 32px */
        letter-spacing: 0.1px;
        margin: 0;
    }

    .login-form span {
        color: var(--Deep-Teal, #003134);
        font-family: Manrope;
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        /* 125% */
        letter-spacing: 0.16px;
    }

    .mt-6 {
        margin-top: 6rem !important;
        /* ~96px */
    }

    .mt-7 {
        margin-top: 8rem !important;
        /* ~128px */
    }
}

/* Select2 Overrides for Country Code */
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 50px !important;
    border: 1px solid #ced4da !important;
    border-radius: 8px !important;
    padding: 10px 0 !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    padding-left: 15px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 48px !important;
    top: 1px !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #c5e84e !important;
    box-shadow: 0 0 0 3px rgba(197, 232, 78, 0.1) !important;
}

/* Form spacing */
.login-form form .row {
    margin-bottom: 20px;
}

/* Additional alignment fixes */
.d-flex.flex-column.align-items-center {
    text-align: center;
}

@media (min-width: 768px) {
    .md-align-items-start {
        align-items: flex-start !important;
        text-align: left !important;
    }
}