/**=====================
    Auth scss
==========================**/
.log-in-section {
    width: 100%;
    margin: 0 auto;
    overflow: auto;
    position: relative;
    height: 100vh;

    .login-content {
        height: 100%;

        >div {
            @media (min-width: 1400px) {
                &:first-child {
                    width: 46%;
                }

                &:last-child {
                    width: calc(100% - 46%);
                }
            }
        }

        .auth-right-side {
            min-height: 100vh;

            .swiper {
                min-height: 100vh;

                .swiper-pagination {
                    .swiper-pagination-bullet {
                        background-color: $border-color;
                        border-radius: 100px;
                        transition: all 0.3s;

                        &-active {
                            width: 30px;
                            background-color: var(--theme-color);
                        }
                    }
                }
            }

            .auth-service-box {
                position: relative;

                img {
                    @include pseudowh($width: 100%, $height: 100vh);
                    object-fit: cover;
                }

                .auth-service-content {
                    position: absolute;
                    bottom: 0;
                    left: 0;
                    width: 100%;
                    color: $white;
                    margin: 0;
                    padding: calc(42px + (50 - 42)*((100vw - 320px) /(1920 - 320))) calc(15px + (22 - 15)*((100vw - 320px) /(1920 - 320))) calc(47px + (54 - 47)*((100vw - 320px) /(1920 - 320)));
                    z-index: 0;
                    overflow: hidden;
                    background: linear-gradient(0deg, $title-color 5%, rgba($title-color, 0) 100%);

                    &::before {
                        @include pos;
                        top: 0;
                        left: 0;
                        @include pseudowh;
                        z-index: -1;
                        backdrop-filter: blur(10px);
                        mask-image: linear-gradient(0deg, #222222 5%, rgba(34, 34, 34, 0) 100%);
                    }

                    h3 {
                        font-size: calc(30px + (37 - 30)*((100vw - 1199px) /(1920 - 1199)));
                        margin-bottom: calc(10px + (13 - 10)*((100vw - 1199px) /(1920 - 1199)));
                        letter-spacing: 0.4px;

                        body.dark & {
                            color: $white;
                        }
                    }

                    p {
                        font-size: calc(16px + (18 - 16)*((100vw - 1199px) /(1920 - 1199)));
                        line-height: 1.5;
                        color: rgba($white, 0.8);
                    }
                }
            }
        }
    }
}

.image-contain {
    background-color: var(--theme-color);
    padding: 50px;
    text-align: center;
    flex-direction: column;
    @include flex_common;
    height: 100%;

    .logo {
        height: 50px;
        margin: 0 auto;
        display: flex;
        margin-bottom: 30px;
    }

    .auth-image {
        width: 40%;
    }

    .auth-content {
        color: $white;
        margin-top: 50px;

        h2 {
            text-transform: uppercase;
            line-height: 41px;
            font-weight: 700;
        }

        p {
            font-size: 16px;
            line-height: 20px;
        }

        .app-install {
            margin-top: 30px;
            @include flex_common;
            gap: 16px;

            img {
                height: 50px;
            }
        }
    }
}

.login-main {
    @include flex_common;
    height: 100%;
    position: relative;

    .login-card {
        padding: calc(15px + (35 - 15) * ((100vw - 320px) / (1920 - 320))) calc(15px + (104 - 15) * ((100vw - 320px) / (1920 - 320)));
        margin: auto;
        width: 100%;

        @media (max-width: 1199.98px) {
            max-width: 785px;
            text-align: center;
        }

        .auth-logo {
            display: block;
            text-align: center;
            margin-bottom: calc(10px + (40 - 10) * ((100vw - 320px) / (1920 - 320)));

            img {
                width: calc(180px + (210 - 180) * ((100vw - 320px) / (1920 - 320)));
            }
        }

        .login-title {
            width: 100%;
            padding-top: 13px;

            body.dark & {
                h2 {
                    color: $white;
                }

                p {
                    color: rgba($white, 0.6);
                }
            }

            h2 {
                font-weight: 700;
                font-size: calc(26px + (34 - 26) * ((100vw - 320px) / (1920 - 320)));
                letter-spacing: calc(0.2px + (0.5 - 0.2) * ((100vw - 320px) / (1920 - 320)));
            }

            p {
                color: $light-color;
                padding-top: 6px;
                font-size: calc(15px + (18 - 15) * ((100vw - 320px) / (1920 - 320)));
                line-height: 1.5;
                margin: 0;

                span {
                    color: $title-color;
                    font-weight: 600;
                }
            }
        }

        .login-detail {
            width: 100%;
            margin: calc(18px + (24 - 18) * ((100vw - 320px) / (1920 - 320))) 0 0;

            .form-group {
                position: relative;

                @media (max-width: 1199.98px) {
                    text-align: left;

                    [dir="rtl"] & {
                        text-align: right;
                    }
                }

                label {
                    body.dark & {
                        color: $white;
                    }
                }

                i {
                    --Iconsax-Size: calc(18px + (20 - 18) * ((100vw - 320px) / (1920 - 320)));
                    --Iconsax-Color: #808B97;
                    position: absolute;
                    @include center(vertical);
                    left: 15px;

                    [dir="rtl"] & {
                        left: unset;
                        right: 15px;
                    }
                }

                .toggle-password {
                    position: absolute;
                    @include center(vertical);
                    right: 15px;
                    left: unset;
                    cursor: pointer;

                    [dir="rtl"] & {
                        left: 15px;
                        right: unset;
                    }

                    i {
                        position: relative;
                        inset: unset;
                        transform: unset;
                    }

                    .eye-slash {
                        display: none;
                    }

                    &.eye {
                        i.eye {
                            display: block;
                        }

                        i.eye-slash {
                            display: none;
                        }
                    }

                    &.eye-slash {
                        i.eye-slash {
                            display: block;
                        }

                        i.eye {
                            display: none;
                        }
                    }
                }

                .form-control {
                    border-radius: calc(6px + (8 - 6) * ((100vw - 320px) / (1920 - 320)));
                    padding: calc(9px + (12 - 9) * ((100vw - 320px) / (1920 - 320))) calc(9px + (12 - 9) * ((100vw - 320px) / (1920 - 320))) calc(9px + (12 - 9) * ((100vw - 320px) / (1920 - 320))) 45px;
                    background-color: $section-bg;
                    color: rgba($title-color, 0.8);
                    border: 1px solid $border-color;

                    [dir="rtl"] & {
                        padding: calc(9px + (12 - 9) * ((100vw - 320px) / (1920 - 320))) 45px calc(9px + (12 - 9) * ((100vw - 320px) / (1920 - 320))) calc(9px + (12 - 9) * ((100vw - 320px) / (1920 - 320)));
                    }

                    &.pr-45 {
                        padding-right: 45px !important;

                        [dir="rtl"] & {
                            padding-inline: 45px !important;
                        }
                    }

                    &:focus {
                        box-shadow: none;
                    }

                    &::placeholder {
                        color: $light-color;
                    }

                    body.dark & {
                        background-color: #323640;
                        border-color: #454851;
                        color: $white;

                        &::placeholder {
                            color: rgba($white, 0.6);
                        }

                        &:-webkit-autofill,
                        &:-webkit-autofill:hover,
                        &:-webkit-autofill:focus {
                            -webkit-box-shadow: 0 0 0px 1000px #323640 inset !important;
                            -webkit-text-fill-color: #fff !important;
                        }
                    }
                }
            }

            .forgot-pass {
                margin-top: calc(8px + (12 - 8)*((100vw - 320px) /(1920 - 320)));
                text-align: end;

                a {
                    font-size: calc(14px + (16 - 14)*((100vw - 320px) /(1920 - 320)));
                    line-height: 1.4;
                    font-weight: 500;
                }
            }

            .btn {
                margin-top: 25px;
                border-radius: calc(6px + (8 - 6)*((100vw - 320px) /(1920 - 320)));
                width: 100%;
                justify-content: center;
                font-size: calc(16px + (18 - 16)*((100vw - 320px) /(1920 - 320)));

                &:focus {
                    box-shadow: none;
                }
            }

            .not-member {
                font-size: calc(14px + (16 - 14)*((100vw - 320px) /(1920 - 320)));
                font-weight: 500;
                line-height: 1.3;
                position: relative;
                text-align: center;
                padding-top: 16px;
                color: rgba($title-color, 0.78);

                body.dark & {
                    color: $white;
                }

                a {
                    color: var(--theme-color);
                    font-weight: 600;
                    text-decoration: underline;
                }
            }

            .phone-details {
                .form-group {
                    position: relative;

                    label {
                        &.error {
                            position: absolute !important;
                            bottom: -30px;
                            left: 0;
                        }
                    }
                }
            }

            .category-list-box {
                text-align: left;

                [dir="rtl"] & {
                    text-align: right;
                }

                label {
                    font-size: 16px;
                    font-weight: 400;
                    line-height: 1.3;
                    margin-bottom: 6px;
                    position: relative;
                    color: rgba($title-color, 0.769);

                    body.dark & {
                        color: $white;
                    }

                    &.error {
                        margin-bottom: 0;
                        margin-top: 10px;
                        font-weight: 400;
                        font-size: 13px;
                        opacity: 0.8;
                        color: $decline-color !important;

                        &:before {
                            display: none;
                        }
                    }
                }

                .phone-detail {
                    .select2 {
                        width: 120px !important;

                        &.select2-container--default {
                            .selection {
                                .select2-selection--single {
                                    background-color: transparent;
                                    border: 1px solid $border-color;
                                    border-width: 0 1px 0 0;
                                }
                            }
                        }
                    }

                    >.form-control {
                        padding: 10px 16px;
                        color: $white;

                        &::placeholder {
                            color: rgba($white, 0.6);
                        }

                        [dir="rtl"] & {
                            text-align: right;
                        }
                    }

                    body.dark & {
                        .select2 {
                            background-color: #323640;
                        }

                        .form-control {
                            background-color: #323640;
                        }
                    }
                }
            }
        }

        .otp-box {
            background-color: transparent;
        }

        .other-options {
            width: 100%;
            padding: calc(14px + (24 - 14)*((100vw - 320px) /(1920 - 320))) 0 0;
        }

        .options {
            position: relative;
            margin: 0 auto;
            color: $light-color;
            font-size: calc(14px + (16 - 14)*((100vw - 320px) /(1920 - 320)));
            width: 100%;
            text-align: center;
            z-index: 0;

            &:before {
                @include pos;
                @include center(vertical);
                left: 0;
                z-index: -1;
                border-top: 1px dashed rgba($light-color, 0.4);
                @include pseudowh($width: 100%, $height: 1px);
                @include center(vertical);
            }

            span {
                text-transform: capitalize;
                background-color: $white;
                padding-inline: calc(8px + (12 - 8)*((100vw - 320px) /(1920 - 320)));

                body.dark & {
                    background-color: #171B27;
                }
            }
        }

        .social-media {
            @include flex_common;
            gap: calc(10px + (16 - 10)*((100vw - 320px) /(1920 - 320)));
            margin-top: calc(12px + (20 - 12) * ((100vw - 320px) / (1920 - 320)));

            @media (max-width: 565px) {
                flex-direction: column;
            }

            li {
                width: 100%;
            }

            .social-icon {
                background-color: $section-bg;
                border: 1px solid $border-color;
                @include flex_common;
                gap: calc(8px + (10 - 8)*((100vw - 320px) /(1920 - 320)));
                padding: 12px;
                border-radius: 6px;

                span {
                    font-size: calc(14px + (16 - 14)*((100vw - 320px) /(1920 - 320)));
                    color: $title-color;
                    font-weight: 500;
                }

                img {
                    width: calc(20px + (25 - 20)*((100vw - 320px) /(1920 - 320)));
                    min-width: calc(20px + (25 - 20)*((100vw - 320px) /(1920 - 320)));
                }

                body.dark & {
                    background-color: #323640;
                    border-color: #454851;

                    span {
                        color: $white;
                    }
                }
            }
        }
    }
}

.terms {
    p {
        font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (1920 - 320)));
        margin: 0;
        color: $light-color;
    }
}

.terms {
    position: relative;
    padding-bottom: 25px;

    label {
        position: absolute;
        bottom: -22px;

        &.error {
            color: #FF4B4B !important;
        }
    }
}

.login-img {
    width: 250px;
    padding-top: 30px;
}

.otp-field {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;

    input {
        position: relative;
        @include pseudowh($width: 100%, $height: auto);
        padding: 11px;
        font-size: 16px;
        border-radius: 8px;
        text-align: center;
        background-color: $section-bg;
        color: $title-color;
        border: 1px solid $border-color;

        &::placeholder {
            color: $light-color;
        }

        body.dark & {
            background-color: #252934;
            border-color: #454851;
            color: $white;

            &::placeholder {
                color: $white;
            }
        }
    }

    label {
        &.error {
            position: absolute !important;
            bottom: -30px !important;
            left: 0;
        }
    }
}

.service-list-section {
    .row {
        [class*="col-"] {
            &:has(.no-cart-found) {
                &:first-child {
                    width: 100%;
                }
            }
        }
    }
}