﻿:root {
    --mainColorLogin: #7875B5;
    /*--real-vh: 100vh;*/ /* مقدار پیش‌فرض برای مرورگرهایی که جاوااسکریپت فعال نیست */
    /*--errorColor: #b2001a;*/
}

* {
    /*    box-sizing: border-box;
    margin: 0;
    padding: 0;*/
    /*    font-family: Raleway, sans-serif;*/
}

#LoginBody {
    background: #e0e5e9;
    direction: rtl;
    height: 100dvh;
}

    #LoginBody .wrapper {
        min-height: 100vh;
        background-size: cover;
        background-repeat: no-repeat;
        display: flex;
        align-items: center;
    }

    #LoginBody .inner {
        padding: 20px;
        background: #fff;
        max-width: 850px;
        margin: auto;
        display: flex;
        flex-direction: row-reverse;
        border-radius: 3px;
        position: relative;
    }

        #LoginBody .inner .image-holder {
            width: 50%;
        }

            #LoginBody .inner .image-holder img {
                max-width: 100%;
                min-height: 388px;
                object-fit: cover
            }

        #LoginBody .inner .form {
            width: 100%;
            flex: 1;
            /* padding: 10px; */
            max-height: 388px;
        }

            #LoginBody .inner .form .login__input {
                width: 100%;
                border: unset;
                line-height: 2;
                padding: 5px;
                border-bottom: 1px solid #000;
                padding-left: 25px;
                font-size: medium !important;
                /*                transition: all linear 0.5s*/
            }

                #LoginBody .inner .form .login__input:focus {
                    outline: unset;
                    border-color: var(--mainColorLogin);
                    border-width: 2px;
                }

            #LoginBody .inner .form .login__field {
                position: relative;
                width: 80%;
                margin: 0 auto;
                height: 75px;
                direction: ltr;
                color: var(--mainColorLogin);
            }

                #LoginBody .inner .form .login__field svg {
                    position: absolute;
                    /* top: 20px; */
                    left: 4px;
                    height: 14px;
                    bottom: 60%;
                }

                #LoginBody .inner .form .login__field .toggle-password {
                    all: unset;
                    position: absolute;
                    right: 25px;
                    bottom: 56%;
                    cursor: pointer;
                }

                #LoginBody .inner .form .login__field .fa-arrows-rotate {
                    all: unset;
                    width: 17px;
                    height: 17px;
                    vertical-align: sub;
                }

            #LoginBody .inner .form .formTitle {
                text-align: center;
                padding: 5px;
                font-weight: 600;
                font-size: larger;
            }

            #LoginBody .inner .form .error {
                font-family: inherit;
                font-size: small;
                color: #b2001a;
            }

    #LoginBody .login__submit {
        border: none;
        width: 164px;
        height: 51px;
        margin: auto;
        margin-top: 30px;
        cursor: pointer;
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        justify-content: center;
        padding: 0;
        /*        background: #333;*/
        background: var(--mainColorLogin);
        font-size: 15px;
        color: #fff;
        vertical-align: middle;
        -webkit-transform: perspective(1px) translateZ(0);
        transform: perspective(1px) translateZ(0);
        -webkit-transition-duration: 0.3s;
        transition-duration: 0.3s;
        font-family: 'iranyekan';
    }

        #LoginBody .login__submit:hover svg {
            webkit-animation-name: hvr-icon-wobble-horizontal;
            animation-name: hvr-icon-wobble-horizontal;
            -webkit-animation-duration: 1s;
            animation-duration: 1s;
            -webkit-animation-timing-function: ease-in-out;
            animation-timing-function: ease-in-out;
            -webkit-animation-iteration-count: 1;
            animation-iteration-count: 1;
        }

@keyframes hvr-icon-wobble-horizontal {
    16.65% {
        -webkit-transform: translateX(6px);
        transform: translateX(6px);
    }

    33.3% {
        -webkit-transform: translateX(-5px);
        transform: translateX(-5px);
    }

    49.95% {
        -webkit-transform: translateX(4px);
        transform: translateX(4px);
    }

    66.6% {
        -webkit-transform: translateX(-2px);
        transform: translateX(-2px);
    }

    83.25% {
        -webkit-transform: translateX(1px);
        transform: translateX(1px);
    }

    100% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
}

#LoginBody span.button__text {
    font-size: larger;
    padding: 0;
    margin: 0;
}

#LoginBody .login__submit svg {
    margin-left: 10px;
    font-size: larger;
    margin-top: 5px;
}

#LoginBody .securityCode .captchaSection {
    position: absolute;
    top: 0;
    right: 0;
    border: 1px solid lightgray;
    background: lightgray;
    border-radius: 5px;
}

    #LoginBody .securityCode .captchaSection .btn-refresh-captcha {
        color: var(--mainColorLogin);
    }

#LoginBody .remember-meSec {
    all: unset;
    width: 100%;
    display: flex;
    justify-content: end;
    flex-direction: row-reverse;
    gap: 13px;
    width: 78%;
    margin: 0 auto;
    margin-top: 0 !important;
}

    #LoginBody .remember-meSec .remember-me {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 17px;
        height: 17px;
        border: 2px solid #555;
        border-radius: 4px;
        background-color: #fff;
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease-in-out;
        align-self: center;
    }

        #LoginBody .remember-meSec .remember-me:checked {
            background-color: var(--mainColorLogin);
            border-color: var(--mainColorLogin);
        }

        #LoginBody .remember-meSec .remember-me::after {
            content: "✔";
            color: white;
            font-size: 14px;
            position: absolute;
            left: 1px;
            top: -4px;
        }

    #LoginBody .remember-meSec .remember-me,
    #LoginBody .remember-meSec .remember-me-label {
        cursor: pointer;
        font-weight: 400;
    }

#LoginBody .license {
    font-size: .65rem;
    color: #000;
    text-align: center;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    position: absolute;
    bottom: -46px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 5px;
    background: #ffffff;
    font-weight: 600;
}

    #LoginBody .license a {
        display: inline-block;
        transition: transform 0.3s ease;
    }

        #LoginBody .license a:hover {
            transform: scale(1.08);
        }

#LoginBody .mehrLicenseMob {
    display: none;
}

/* پراپرتی هایی که زمان اتوفیل بصورت یوزر ایجنت توسط مرورگر داده میشن رو عوض کردیم */
#LoginBody input:-webkit-autofill {
    box-shadow: 0 0 0px 1000px white inset !important;
    -webkit-box-shadow: 0 0 0px 1000px white inset !important;
    /*    background-color: unset !important;
    color: black !important;
    transition: background-color 5000s ease-in-out 0s;*/
}

@media (max-width: 768px) {
    #LoginBody .inner {
        width: 455px;
        padding: 20px;
        flex-direction: column-reverse;
        gap: 20px;
        height: 100%;
        padding-bottom: 70px
    }

        #LoginBody .inner .image-holder {
            width: 100%;
        }

        #LoginBody .inner .form .login__field {
            width: 100%;
        }

    #LoginBody .remember-meSec {
        width: 95%;
    }

    #LoginBody .license {
        bottom: 3px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    #LoginBody .remember-meSec .remember-me::after {
        all: unset;
    }

    #LoginBody .remember-meSec .remember-me:checked {
        /*        background-color: var(--mainColorLogin);*/
        border-color: inherit;
    }

    #LoginBody .mehrLicenseMob {
        display: block;
    }

    #LoginBody .mehrLicenseDes {
        display: none;
    }
}
