@font-face {
    font-family: 'iransans';
    src: url('../fonts/IRANSansWeb.eot');
    src: url('../fonts/Shabnam-Medium-FD.eot?#iefix') format('embedded-opentype'),
    url('../fonts/Shabnam-Medium-FD.svg#../../fonts/Shabnam-Medium-FD') format('svg'), url('../fonts/IRANSansWeb.ttf') format('truetype'), url('../fonts/IRANSansWeb.woff') format('woff'), url('../fonts/IRANSansWeb.woff2') format('woff2');
}

@font-face {
    font-family: 'yekan';
    src: url('../fonts/BYekan.eot');
    src: url('../fonts/BYekan.eot?#iefix') format('embedded-opentype'), url('../fonts/BYekan.woff') format('woff'), url('../fonts/BYekan.ttf') format('truetype'), url('../fonts/BYekan.svg#webfont') format('svg');
}

@font-face {
    font-family: 'shabnam';
    src: url('/fonts/ShabnamFDRegular.ttf');
}

* {
    box-sizing: border-box;
    outline: none;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: -20px 0 50px;
    direction: ltr;
    background-image: url("../images/bac.png");
    background-color: #666666;
}

h1 {
    font-weight: bold;
    margin: 0;
    color: white;
    direction: rtl;
    font-family: shabnam;
}

p {
    font-size: 14px;
    font-weight: 100;
    line-height: 20px;
    letter-spacing: 0.5px;
    margin: 20px 0 30px;
    font-family: iransans;
}

span {
    font-size: 12px;
    font-family: iransans;
}

a {
    color: #888;
    font-size: 14px;
    text-decoration: none;
    margin: 15px 0;
    direction: rtl;
    font-family: iransans;
}

button {
    border-radius: 20px;
    border: 1px solid #ff4b2b;
    background-color: #ff4b2b;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
    font-family: iransans;
}

button:active {
    transform: scale(0.95);
}

button:focus {
    outline: none;
}

button.ghost {
    background-color: transparent;
    border-color: #ffffff;
}

form {
    background-color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
    direction: rtl;
}

input:not([type='submit']) {
    background-color: #333 !important;
    border: none;
    padding: 5px 15px;
    margin: 6px 0;
    width: 100%;
    border-radius: 5px;
    font-family: iransans, 'Calibri';
    color: white;
    border: 1px solid rgba(0, 0, 0, 0);
    font-weight: normal;

}

input:not([type='submit']):focus {
    transyition: all ease-in .2s;
    border: 1px solid rgba(213, 141, 26, .9);
}


input[type='submit'] {
    cursor: pointer;
    background: rgba(255, 75, 43, .5);
    box-shadow: 0 0 5px rgba(213, 141, 26, .4);
    border: 1px dotted rgb(255, 75, 30);
    padding: 8px 15px;
    width: 100%;
    border-radius: 5px;
    font-family: iransans;
    color: white;
    margin-top: 15px;

}

input[type='submit']:hover {
    box-shadow: none;
    background: rgba(0, 0, 0, .3);
    color: rgba(255, 75, 43, 1);
    transition: all ease .3s;
}

.social-container {
    margin: 20px 0;
}

.social-container a {
    border: 1px solid #dddddd;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
}

.container {
    background-color: #212121;
    border-radius: 10px;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
    position: relative;
    overflow: hidden;
    width: 768px;
    max-width: 100%;
    min-height: 500px;
}

.form-container {
    background: #212121;
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
}

.container.right-panel-active .sign-in-container {
    transform: translateX(100%);
}

.container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {
    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;

}

.container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: #D28611;
    background: linear-gradient(to right, #D28611, #F7E189) 200%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #ffffff;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;

}

.overlay-left {
    transform: translateX(-20%);

}

.container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

.forgoten:hover {
    color: #fff;
    transition: all ease-in .1s;
    text-shadow: 0 0 3px rgba(255, 255, 255, .3);

}

.warning_login {
    display: block;
    font-size: .8rem;
    padding: 0;
    margin: 0;
    text-align: right;
    font-family: iransans;
}

.msgErr {
    background: rgba(255, 0, 0, .4);
    color: darkred;
    border: 2px solid #fff;
    text-align: right;
    font-size: .8rem;
    padding: 10px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    margin-bottom: 10px;
    border-radius: 10px;
    font-family: iransans;
}

.msgErr-768 {
    background: rgba(255, 0, 0, .4);
    color: darkred;
    border: 2px solid #fff;
    text-align: right;
    font-size: .8rem;
    padding: 10px 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, .3);
    margin-bottom: 10px;
    border-radius: 10px;
    font-family: iransans;
    display: none;
}

.msg {
    background: #c1c1c1;
    text-align: right;
    direction: rtl;
    border: 2px dotted #fff;
    padding: 20px 5px;
    border-radius: 5px;
    font-size: .9rem;
    margin-bottom: 10px;
    font-family: iransans;
}

.msg b {
    color: #D29A00;
}

.joinus {
    display: none;
}

@media only screen and (max-width: 768px) {
    .overlay-container {
        display: none;
    }

    .container {
        height: 550px;
        width: 95%;
    }

    .form-container {
        position: static;
        width: 100%;
        display: block;
        height: 500px;
    }

    .sign-up-container {
        opacity: 1;
    }

    .sign-in-container {
        opacity: 1;
        transform: translateY(-500px);
    }

    .joinus {
        color: #fff;
        transform: translateY(-95px);
        display: block;
        background: #D48B17;
        width: 130%;
        padding: 15px;
        border-bottom-left-radius: 50% 50%;
        border-bottom-right-radius: 50% 50%;
        cursor: pointer;
        font-size: 1rem;
        line-height: 6rem;
        box-shadow: 0 3px 10px rgba(255, 255, 255, .6), inset 0 -1px 5px rgba(0, 0, 0, .6);
        position: relative;
        height: 100px;
        transition: cubic-bezier(.81, -0.14, .35, 1.11) .9s;
    }



    .showlogin {
        position: relative;
        transform: translateY(10px);
        transition: cubic-bezier(.81, -0.14, .35, 1.11) .9s;
    }

    .showlogin .joinus {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: 50% 50%;
        border-top-right-radius: 50% 50%;
        transition: cubic-bezier(1, -0.01, .2, .92) .5s;
        line-height: 2rem;

    }


    @keyframes downdown {
        0% {
            bottom: -20px;
        }
        25% {
            bottom: -25px;
        }
        50% {
            bottom: -30px;
        }
        75% {
            bottom: -25px;
        }
        100% {
            bottom: -20px;
        }
    }
    @keyframes upup {
        0% {
            top: -20px;
        }
        25% {
            top: -25px;
        }
        50% {
            top: -30px;
        }
        75% {
            top: -25px;
        }
        100% {
            top: -20px;
        }
    }
    .msgErr-768 {
        background: rgba(255, 0, 0, .4);
        color: white;
        border: 2px solid #fff;
        text-align: right;
        font-size: .8rem;
        padding: 10px 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, .3);
        margin-bottom: 10px;
        border-radius: 10px;
        font-family: iransans;
        display: block;
        width: 95%;
        margin-bottom: 10px;
    }
}