﻿@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: bold;
    src: url('../fonts/eot/IRANSansWeb_Bold.eot');
    src: url('../fonts/eot/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb_Bold.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb_Bold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb_Bold.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/eot/IRANSansWeb_Medium.eot');
    src: url('../fonts/eot/IRANSansWeb_Medium.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb_Medium.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/eot/IRANSansWeb_Light.eot');
    src: url('../fonts/eot/IRANSansWeb_Light.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb_Light.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb_Light.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb_Light.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: 200;
    src: url('../fonts/eot/IRANSansWeb_UltraLight.eot');
    src: url('../fonts/eot/IRANSansWeb_UltraLight.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb_UltraLight.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb_UltraLight.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb_UltraLight.ttf') format('truetype');
}

@font-face {
    font-family: IRANSans;
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/eot/IRANSansWeb.eot');
    src: url('../fonts/eot/IRANSansWeb.eot?#iefix') format('embedded-opentype'), /* IE6-8 */
    url('../fonts/woff2/IRANSansWeb.woff2') format('woff2'), /* FF39+,Chrome36+, Opera24+*/
    url('../fonts/woff/IRANSansWeb.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/ttf/IRANSansWeb.ttf') format('truetype');
}

input:disabled {
    color: #eaeaea;
    border-color: #eaeaea;
}

body {
    background: #a0a0a0; /* Old browsers */
    background: radial-gradient(ellipse at center, #fff 0,#a0a0a0 87%); /* W3C */
    background-attachment: fixed;
    margin: 0;
    line-height: 20px;
    font-family: IRANSans;
    font-size: 15px;
}

* {
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    outline: none;
}

.DMain {
    height: 600px;
    margin: calc(50vh - 300px) auto;
    width: 350px;
    background-color: white;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}


.DBG {
    background-image: url('../MasterImages/BG.png');
    background-position: top left;
    background-repeat: repeat;
    background-size: 100%;
    position: relative;
    width: 150%;
    height: 250px;
    border-radius: 300px / 90px;
    background-color: #607d8d;
    top: -40px;
    overflow: hidden;
    left: -25%;
    max-height: 30vh;
    margin-bottom: -135px;
}

.DLogo {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
    background-color: #f4f4f4;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-content: center;
}

    .DLogo:before {
        width: 140px;
        height: 140px;
        border: 2px dashed #607d8d;
        content: '';
        position: absolute;
        top: 5px;
        left: 5px;
        bottom: 5px;
        right: 5px;
        box-sizing: border-box;
        border-radius: 50%;
    }

    .DLogo img {
        display: block;
        width: 100px;
        height: auto;
        margin: auto;
    }

.DForm, .DBtn {
    padding: 0 40px;
}

    .DForm > div {
        position: relative;
        margin-top: 15px;
        display: flex;
        flex-direction: column;
    }

.DForm {
    display: none;
}

    .DForm.Show {
        display: block;
    }

.DText {
    direction: rtl;
    font-size: 13px;
    color: #333;
}

label {
    font-size: 15px;
    margin: 0 auto;
    display: table;
    position: relative;
    margin-bottom: -25px;
    margin-top: 25px;
    transition: 0.3s ease-in-out;
    order: 1;
    color: #cfcfcf;
    z-index: 1;
}

input:focus ~ label, input ~ label.Show {
    margin-top: 0px;
    margin-bottom: 0;
    transition: 0.3s ease-in-out;
    color: #738e99;
}

input {
    padding: 2px 10px;
    width: 100%;
    box-sizing: border-box;
    line-height: 30px;
    font-size: 15px;
    border: none;
    letter-spacing: 1px;
    background-color: transparent;
    border-bottom: 2px solid #ddd;
    text-align: center;
    margin-top: 5px;
    order: 2;
    position: relative;
    z-index: 2;
}

    input ~ span {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background: #ff015b;
        display: block;
        transition: 0.5s ease-in-out;
        z-index: 3;
    }

    input:focus ~ span, input.ValErr ~ span {
        width: 100%;
        left: 0;
        transition: 0.5s ease-in-out;
    }

.DBtn {
    margin-top: 30px;
    position: relative;
    height: 42px;
}

    .DBtn > * {
        position: absolute;
        top: 0;
        margin: 0 40px;
        width: calc(100% - 80px);
        left: 0;
    }

    .DBtn > div {
        height: 42px;
        overflow: hidden;
        display: none;
    }

    .DBtn img {
        margin: -19px auto 0;
        display: table;
    }

button {
    background-color: #ff015b;
    border-radius: 5px;
    display: block;
    border: none;
    color: white;
    width: 100%;
    line-height: 40px;
    font-family: IRANSans;
    transition: all 300ms;
    cursor: pointer;
}

    button:hover {
        background-color: #de0350;
        transition: all 300ms;
    }

.DMA {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-content: center;
    width: 100%;
}

    .DMA > div {
        background-color: #607d8b;
        border-radius: 5px 5px 0 0;
        padding: 5px 10px;
    }

        /*.DMA > div > * {
            display: inline-block;
            vertical-align: middle;
            font-size:13px;
            color: white;
            margin: 0 5px;
            line-height:18px;
        }*/

        .DMA > div > img {
            max-height: 20px;
            display: block;
            vertical-align: top;
        }

.DMessage {
    position: fixed;
    background-color: #ff015b;
    width: calc(100% - 40px);
    right: 0;
    left: 0;
    color: white;
    border-radius: 5px;
    margin: 0 auto;
    line-height: 24px;
    direction: rtl;
    padding: 10px;
    box-sizing: border-box;
    max-width: 350px;
    opacity: 0;
    top: 0;
    transition: all 300ms;
}


    .DMessage.Show {
        top: 40px;
        opacity: 1;
        transition: all 300ms;
    }
    .DMessage.DS {
        background-color: #20d626;
    }
    .DMessage.DA {
        background-color: #f96f1f;
    }

@media(max-width:640px) {
    .DMain {
        height: 100vh;
        margin: 0;
        width: 100vw;
        border-radius: 0;
    }

    .DMA {
        position: fixed;
    }

    html, body {
        height: 100vh;
    }
}

@media(min-hieght:570px) {
    .DMA {
        position: absolute;
    }
}


.DivBG {
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;
    position: fixed;
    /*background: linear-gradient(to bottom, rgba(255,255,255,0.8) 0,rgba(255,255,255,0.8) 1%,rgba(255,255,255,1) 45%,rgba(255,255,255,1) 55%,rgba(255,255,255,0.8) 100%);*/ /* W3C */
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(250,250,250,0.9);
    box-shadow: inset 0 0 100px rgba(100,100,100,0.5);
    display: none;
}

.ProgressDiv {
    width: 100%;
    bottom: 47%;
    left: 0;
    position: fixed;
    padding: 20px 0;
    z-index: 1005;
    text-align: center;
    direction: rtl;
    display: none;
}

.PDiv {
    display: table;
    padding: 20px 30px 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin: 0 auto;
    background-image: url(../PanelImages/Loading.gif);
    background-position: center bottom 10px;
    background-repeat: no-repeat;
    background-color: #e0e0e0;
    box-shadow: inset 0 0 20px rgba(50,50,50,0.1);
}

.DForgotPassword, .DResendCode {
    display: table;
    margin: 20px auto;
    cursor: pointer;
    color: rgba(255,1,91,0.8);
    font-size: 13px;
    transition: all 150ms;
}

    .DForgotPassword:hover, .DResendCode:hover {
        color: #607d8d;
        font-size: 15px;
        transition: all 150ms;
    }

.Hide {
    display: none;
}
