/* Login Popup Modal */
.login-modal {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999 !important;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex !important;
}

/* WHEN VISIBLE */
.login-modal.show {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.login-modal[style*="flex"] {
    display: flex !important;
}

.login-modal-content {
    background-color: #fff;
    margin: auto;
    border-radius: 8px;
    width: 90%;
    height: 70%;
    max-width: 900px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: popupFade 0.3s ease;
    display: flex;
    overflow: hidden;
}

.close-login-modal,
.close-signup-modal {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: #0F93FE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    color: #fff;
    z-index: 10;
    line-height: 1;
}

.close-login-modal:hover,
.close-signup-modal:hover {
    background: #0284C7;
}

/* Left Side */
.modal-left {
    flex: 1;
    padding: 40px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}


/* Carousel Container */
.carousel-slides {
    position: relative;
    width: 350px;
    height: 240px;
    margin: 0 auto;
}


/* Individual Slides */
.carousel-slides .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 350px;
    height: 220px;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slides .slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
}

.carousel-slides .slide.prev {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateX(-50px);
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.carousel-nav {
    width: 32px;
    height: 32px;
    border: 1px solid #94A3B8;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-nav:hover {
    background: #E2E8F0;
}

.login-modal-content .dots {
    display: flex;
    gap: 8px;
}

.login-modal-content .dot {
    width: 10px;
    height: 10px;
    background: #66D9FF;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-modal-content .dot.active {
    background: #0EA5E9;
    width: 40px;
    height: 8px;
    border-radius: 16px;
}

.promo-text {
    font-size: 12px;
    color: #002633;
    text-align: center;
    font-weight: 600;
    margin: 0;
    max-width: 300px;
    transition: opacity 0.5s ease;
}

.promo-text.fade {
    opacity: 0.5;
}

/* Right Side */
.modal-right {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.login-modal-content .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #0F93FE;
    margin: 0;
}

.login-modal-content .modal-subtitle {
    font-size: 12px;
    color: #002633;
    margin: 0 0 35px 0;
}

.login-modal-content .form-group {
    margin-bottom: 20px;
}

.login-modal-content .form-control {
    width: 100%;
    padding: 12px 0px;
    border: none;
    border-bottom: 2px solid #0F93FE;
    border-radius: 0;
    font-size: 14px;
    color: #0F172A;
    background: transparent;
    transition: all 0.3s;
}

.login-modal-content .form-control::placeholder {
    color: #0F93FE;
    font-weight: 500;
    font-size: 14px;
}

.login-modal-content .form-control:focus {
    outline: none;
    box-shadow: none;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 4px;
}



input[type=checkbox]:checked::before {
    background-color: #0F93FE !important;
    border: 1px solid #0F93FE !important;
    border-radius: 4px !important;
    width: 15px !important;
    height: 15px !important;
    content: "\2713" !important;
    color: #fff !important;
    font-size: 12px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 0px #fff !important;
}


.remember-me label {
    font-size: 14px;
    color: #334155;
    cursor: pointer;
    margin: 0;
}

.btn-continue {
    width: 100%;
    padding: 14px;
    height: 40px;
    background: #0F93FE;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.btn-continue:hover {
    background: #0284C7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-continue .arrow {
    font-size: 18px;
}

.signup-link {
    text-align: center;
    font-size: 13px;
    color: #747474;
}

.signup-link a {
    color: #0F93FE;
    text-decoration: none;
    font-weight: 700;
}

.signup-link a:hover {
    text-decoration: underline;
}

.terms-text {
    font-size: 12px;
    color: #747474;
    text-align: center;
}

.terms-text a {
    font-size: 13px;
    color: #0F93FE;
    text-decoration: underline;
}

.terms-text a:hover {
    text-decoration: underline;
}

.login-error {
    color: #F33;
    font-size: 12px;
    margin: -10px 0 15px 0;
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .login-modal-content {
        flex-direction: column;
        max-width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .modal-left {
        padding: 40px 20px 30px;
    }

    .modal-right {
        padding: 30px 20px 40px;
    }

    .carousel-slides {
        width: 200px;
        height: 200px;
    }

    .carousel-slides .slide {
        width: 200px;
        height: 200px;
    }

    .modal-title {
        font-size: 26px;
    }
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.phone-input {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #0F93FE;
    padding-bottom: 6px;
}

.phone-input .country-prefix {
    font-size: 14px;
    font-weight: 500;
    color: #002633;
    margin-right: 6px;
    white-space: nowrap;
}

.phone-input .form-control {
    border: none;
    flex: 1;
    padding: 8px 0;
}

.phone-input .form-control::placeholder {
    color: #0F93FE;
}


/* opt section */

/* OTP Section Styles */
#otpSection {
    display: none;
}

#otpSection .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #0F93FE;
    margin: 0;
}

#otpSection .modal-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: #002633;
    margin: 0 0 24px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

#otpSection .modal-subtitle #displayPhone {
    color: #002633;
    font-weight: 600;
}

.back-button {
    background: none;
    border: none;
    color: #0F93FE;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: transform 0.2s;
}

.back-button:hover {
    transform: translateX(-2px);
}

.edit-button {
    background: none;
    border: none;
    color: #0F93FE;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    font-size: 14px;
    font-weight: 600;
}

.edit-button:hover {
    color: #0284C7;
}

.otp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

#otp_input {
    width: 100%;
    padding: 12px 0px;
    border: none;
    border-bottom: 2px solid #0F93FE;
    border-radius: 0;
    font-size: 14px;
    color: #0F172A;
    background: transparent;
    transition: all 0.3s;
    letter-spacing: 4px;
    font-weight: 500;
}

#otp_input::placeholder {
    color: #888;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: normal;
}

#otp_input:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: #0284C7;
}

.resend-text {
    font-size: 13.5px;
    color: #002633;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.otp-timer {
    color: #0F93FE;
    font-weight: 600;
    margin-left: 4px;
}

.resend-button {
    background: none;
    border: none;
    color: #0F93FE;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
}

.resend-button:disabled {
    color: #94A3B8;
    cursor: not-allowed;
    opacity: 0.5;
}

.resend-button:disabled svg path {
    fill: #94A3B8;
}

.resend-button:not(:disabled):hover {
    color: #0284C7;
}

.resend-button svg {
    flex-shrink: 0;
}

.resend-button:hover {
    color: #0284C7;
}

.otp-terms {
    margin-top: 20px;
}

/* Responsive for OTP Section */
@media (max-width: 768px) {
    #otpSection .modal-subtitle {
        font-size: 11px;
    }

    .otp-header {
        gap: 6px;
    }

    .back-button {
        font-size: 18px;
    }
}

/* sign up css */

.profile-input-group {
    margin-bottom: 20px;
}

.profile-input-group .form-control {
    width: 100%;
    padding: 12px 0px;
    border: none;
    border-bottom: 2px solid #0F93FE;
    border-radius: 0;
    font-size: 14px;
    color: #0F172A;
    background: transparent;
    transition: all 0.3s;
}

.profile-input-group .form-control::placeholder {
    color: #0F93FE;
    font-weight: 500;
    font-size: 14px;
}

.profile-input-group .form-control:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: #0284C7;
}

.name-fields {
    display: flex;
    gap: 16px;
}

.name-fields .form-control {
    flex: 1;
}



@media (max-width: 992px) {
    #authModal .modal-left {
        display: none !important;
    }

    #authModal .modal-right {
        width: 100% !important;
        padding: 20px !important;
    }

    #authModal .login-modal-content {
        flex-direction: column;
        padding: 15px;
    }
}

