
.modal-backdrop {
    background: rgba($color: $bgBlack, $alpha: 0.65);
    z-index: 9999;
}
.modal {
    z-index: 99999;
    .modal-xl {
        @media only screen and (min-width: $md_992) and (max-width: $lg_1199) {
            max-width: 970px;
        }
    }
    backdrop-filter: blur(5px);
    .btn-close {
        &:hover,&:focus {
            box-shadow: none;
        }
    }
    .modal-dialog {
        padding: 0 15px;
        &.modal-md {
            max-width: 650px;
        }
        &.modal-lg {
            max-width: 898px;
        }
        .modal-header {
            padding: 20px;
            @media only screen and (min-width: $lg_1200) {
                padding: 20px 30px;
            }
        }
        .modal-content {
            border: none;
            box-shadow: none;
            border-radius: $borderRadius10;
            .modal-body {
                padding: 20px;
                @media only screen and (min-width: $lg_1200) {
                    padding: 30px;
                }
            }
        }
    }
}

/* ================= FORM MY COMPANY MODAL ================= */
.ai-client-type-btn {
    @include aiDflex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 20px;
    border: 1px solid $borderColor;
    border-radius: $borderRadius10;
    background: rgba($color: $bgLightBlueV5, $alpha: 0.65);
    cursor: pointer;
    @include aiTransition;

    @media only screen and (max-width: $xs_575)  {
        padding: 16px;
        gap: 16px;
        align-items: flex-start;
    }
    
    &:hover {
        border-color: $textBlue;
        box-shadow: $boxShadow;
    }
    
    .ai-client-type-icon {
        flex-shrink: 0;
        min-width: 56px;
        height: 56px;
        @include aiDflexAlignItemsJustifyContentCenter;
        background: $bgLightBlue;
        border-radius: 8px;
        
        img {
            width: 32px;
            height: 32px;
        }
    }
    
    .ai-client-type-content {
        text-align: left;
        flex-grow: 1;

        .ai-head-20 {
            font-weight: $fontMedium;
            font-size: 18px;
        }
        
        p {
            font-size: 14px;
            color: $textGray;
            margin-bottom: 0;
        }
    }
}

/* ================= AUTH MODAL TABS ================= */

.ai-auth-modal-dialog {
    max-width: 720px;
}

.ai-auth-tabs {
    
    @include aiDflexWrap;
    gap: 4px;

    .ai-auth-tab-btn {
        flex: 1;
        padding: 4px 16px 12px;
        border: none;
        background: transparent;
        color: $textGray;
        font-weight: $fontRegular;
        font-size: $font18;
        cursor: pointer;
        white-space: nowrap;
        @include aiTransition;
        border-bottom: 2px solid transparent;
        
        &:hover {
            color: $textBlue;
        }
        
        &.ai-active {
            color: $textBlue;
            font-weight: $fontSemiBold;
            border-bottom-color: $textBlue;
        }
    }
}

.ai-auth-modal-header {
    @include aiDflexAlignItemsCenter;
    gap: 16px;
    border-bottom: 1px solid $borderColor;
    padding-bottom: 0 !important;

    .btn-close {
        margin: 0;
        align-self: flex-start;
    }
}

#aiAuthModal {
    .ai-signin-form {
        width: 100%;

        .ai-float-radio {
            border: none;
            height: auto;
            padding: 0;
            gap: 25px;

            .form-check {
                padding-top: 0;

                .form-check-input {
                    border: solid 2px $bgBlue;

                    &:checked {
                        background-color: $bgWhite;
                        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='1.85' fill='%232855AA'/%3E%3C/svg%3E");
                    }
                }

                .form-check-label {
                    color: $textBlue;
                    font-weight: $fontMedium;
                    font-size: $font16;
                }
            }
        }

        p {
            color: $textDark;
        }
    }

    .ai-register-back {
        min-width: auto;
        padding: 0;
        transform: rotateY(180deg);
        aspect-ratio: 1 / 1;
        background: $bgLightBlueV7;
        border-color: $bgLightBlueV3;

        &:hover {
            background: $bgBlue;
            border-color: $bgBlue;

            svg {
                path {
                    fill: $bgWhite;
                }
            }
        }

        svg {
            path {
                fill: $bgBlue;
            }
        }
    }
}

/* ================= AUTH TAB CONTENT ================= */
.ai-auth-tab-content {
    display: none;
    
    &.ai-active {
        display: block;
    }
}

.ai-register-steps {
    @include aiDflexAlignItemsCenter;
    gap: 12px;
    flex-wrap: wrap;
    
    @media only screen and (min-width: $md_992) {
        gap: 24px;
    }
    
    .ai-register-step {
        @include aiDflexAlignItemsCenter;
        gap: 12px;
        color: $textGray;
        font-size: 13px;
        
        &.ai-active {
            color: $textBlue;
            font-weight: $fontMedium;
            
            .ai-step-circle {
                color: $textBlue
            }
        }
        
        .ai-step-circle {
            @include aiStepNumber;
            color: $textGray;
        }
        
        .ai-step-arrow {
            width: 20px;
            height: 12px;
            @include aiDflex;
            justify-content: space-between;
            margin: 0 8px;
            
            img {
                width: 100%;
                height: 100%;
            }
        }
    }
}

.ai-auth-modal {
    .modal-header {
        .modal-title  {
            color: $textBlue;
        }
    }
}
