﻿@font-face {
    font-family: 'fontv';
    src: url('fonts/vazir.ttf') format('truetype');
}

@font-face {
    font-family: 'fonty';
    src: url('fonts/byekan.ttf') format('truetype');
}

@font-face {
    font-family: 'fontt';
    src: url('fonts/btitr.ttf') format('truetype');
}

body {
    margin: 0;
}

#main {
    border-radius: 7px;
    width: 100%;
    height: 500px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#mainadminbartop {
    opacity: 0.7;
    width: inherit;
    height: 5px;
    background-color: blue;
    border-radius: 7px 7px 0 0;
    display: none;
}

#mainadminbarbottom {
    opacity: 0.7;
    width: inherit;
    height: 5px;
    background-color: blue;
    border-radius: 0 0 7px 7px;
    position: absolute;
    bottom: 0px;
    display: none;
}

#mainbackground {
    background-image: url(img/logo/logo.png);
    background-repeat: repeat-y;
    background-position-x: center;
    opacity: 0.05;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    overflow: hidden;
    z-index: -1;
}

#maingod {
    font: 600 10px fontv;
    line-height: 40px;
    direction: rtl;
    text-align: center;
}

#mainlogo {
    width: 100px;
    height: 100px;
    margin: 10px auto 15px auto;
    background-image: url(img/logo/logo.png);
    background-size: cover;
}

#maintitle {
    font: 700 24px fontt;
    line-height: 40px;
    direction: rtl;
    text-align: center;
    margin-bottom: 20px;
}

.mainuserbox {
    width: 90%;
    height: 40px;
    text-align: right;
    direction: rtl;
    margin: 10px auto;
    box-sizing: border-box;
}


#txtusername {
    border: 1px solid #b1adad;
    line-height: 40px;
    width: 100%;
    height: 40px;
    text-align: right;
    direction: rtl;
    border-radius: 5px;
    box-sizing: border-box;
    font: 700 12px fontv;
    padding-right: 5px;
}

    #txtusername:focus {
        outline: none !important;
        border: 2px solid blue;
        box-shadow: 0 0 2px blue;
        transition: ease-in-out;
    }

#txtpassword {
    border: 1px solid #b1adad;
    line-height: 40px;
    width: 100%;
    height: 40px;
    text-align: right;
    direction: rtl;
    border-radius: 5px;
    box-sizing: border-box;
    font: 700 12px fontv;
    padding-right: 5px;
}

    #txtpassword:focus {
        outline: none !important;
        border: 2px solid blue;
        box-shadow: 0 0 2px blue;
        transition: ease-in-out;
    }

#chkSavelogin {
    height: 20px;
    width: 20px;
    float: right;
}

#lblLabelSavelogin {
    margin: 3px 0;
    line-height: 40px;
    vertical-align: central;
    text-align: right;
    direction: rtl;
    font: 600 12px fontv;
    float: right;
}

#btnlogin {
    text-align: center;
    width: 100%;
    height: 100%;
    border-radius: 5px;
    font: 700 14px fonty;
    border: none;
    box-shadow: #dcdcdc 0 1px,#dcdcdc 1px 0px;
    outline: none !important;
}

    #btnlogin:hover {
        background-color: #ebeaea;
    }

.mainforgetpass {
    position: absolute;
    bottom: 5px;
    width: auto;
    height: 30px;
    line-height: 30px;
    font: 700 12px fontv;
    direction: rtl;
}





@media only screen and (min-height: 500px) {
}




@media only screen and (min-width: 500px) {

    #main {
        border: 1px solid #b1adad;
        width: 400px;
    }

    #mainadminbarbottom {
        display: block;
    }

    #mainadminbartop {
        display: block;
    }
}



















