@font-face {
    font-family: IranSans;
    src: local('☺'), local('IRANSans Light'), url('~/font/iransanslight.ttf') format('truetype');
}

.navbar-header {
    position: relative;
    top: -4px;
}

.navbar-brand > .icon-banner {
    position: relative;
    top: -2px;
    display: inline;
}

.icon {
    position: relative;
    top: -10px;
}

.logged-out {
    text-align: center
}

    .logged-out iframe {
        display: none;
        width: 0;
        height: 0;
    }

.page-consent .client-logo {
    float: left;
}

    .page-consent .client-logo img {
        width: 80px;
        height: 80px;
    }

.page-consent .consent-buttons {
    margin-top: 25px;
}

.page-consent .consent-form .consent-scopecheck {
    display: inline-block;
    margin-right: 5px;
}

.page-consent .consent-form .consent-description {
    margin-left: 25px;
}

    .page-consent .consent-form .consent-description label {
        font-weight: normal;
    }

.page-consent .consent-form .consent-remember {
    padding-left: 16px;
}

.grants .page-header {
    margin-bottom: 10px;
}

.grants .grant {
    margin-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid lightgray;
}

    .grants .grant img {
        width: 100px;
        height: 100px;
    }

    .grants .grant .clientname {
        font-size: 140%;
        font-weight: bold;
    }

    .grants .grant .granttype {
        font-size: 120%;
        font-weight: bold;
    }

    .grants .grant .created {
        font-size: 120%;
        font-weight: bold;
    }

    .grants .grant .expires {
        font-size: 120%;
        font-weight: bold;
    }

    .grants .grant li {
        list-style-type: none;
        display: inline;
    }

        .grants .grant li:after {
            content: ', ';
        }

        .grants .grant li:last-child:after {
            content: '';
        }

html,
body,
form,
table,
td {
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 16px !important;
}

body,
* {
    font-family: IranSans, Vazir, Calibri, Times New Roman;
    font-size: 1rem;
    box-sizing: border-box !important;
}

h2 {
    font-style: italic;
}

.login-header {
    margin-bottom: 2rem;
    color: #666;
    font-size: 80%;
}

.login-form {
    margin-top: 1rem;
    border-radius: .5rem;
    border: 1px solid #dadce0;
    padding: 4% 8%;
}

    .login-form #errorMsg {
        color: #ff003d;
        width: 100%;
    }

.validation-summary-errors li {
    display: block;
    text-align: right;
    font-size: 80%;
}

.login-form input[type=text],
.login-form input[type=password],
.login-form input[type=number],
.login-form input[type=number] {
    direction: ltr;
    font-size: 1rem;
    color: #555;
    padding: 0.5rem 1rem;
    width: 100%;
    margin: 5px;
    border-radius: 5px;
    border: 2px solid #2a64ce;
}

.login-form input:focus {
    outline: none;
    border-color: #95cfef;
}

.login-form .helper-links {
    clear: both;
    text-align: center;
}

    .login-form .helper-links a {
        font-size: .9rem;
    }

.login-form .submit-container {
    float: left;
    text-align: left;
    display: contents;
}

.login-form .sms-links {
    float: right;
    text-align: right;
    clear: both;
    padding-right:5px
}

    .login-form .sms-links a {
        font-size: .9rem;
        cursor: pointer;
    }

.submit-container button {
    min-width: 7rem;
    padding: .5rem 1rem;
    font-size: 1rem;
    margin: 1rem 0.5rem;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    background: #1a73e8;
    color: #fff;
    position: relative;
    margin-left: -45px;
}

.login-form input[type=submit]:hover {
    box-shadow: 0 1px 1px 0 rgba(66, 133, 244, 0.45), 0 1px 3px 1px rgba(66, 133, 244, 0.3);
}

.login-form input[type=submit]:active {
    background: #1f4da0;
}

.login-form a,
.login-form a:visited,
.login-form a:active,
.login-form a:focus,
.login-form a:hover {
    text-decoration: none;
    color: #0a65a0;
    border-radius: 5px;
    padding: .5rem 1rem;
}

    .login-form a:hover {
        background: #ecf1f5;
    }

    .login-form a:active {
        box-shadow: inset 0 1px 3px #21679e;
    }

.login-form .halfWidth {
    width: 45% !important;
}

.login-container:after {
    content: "دفتر فناوری اطلاعات حوزه علمیه خراسان";
    color: silver;
    font-size: .8rem;
    margin-top: .5rem;
    display: block;
}

.login-input {
    text-align: center;
}

.login-page {
    margin-top: calc(50vh - 235px);
}

    .login-page,
    .login-page * {
        transition: all 0.3s ease-in-out;
    }

.free-area {
    grid-area: free;
    background: red;
}

.free-area2 {
    grid-area: free2;
    background: green;
}

.free-area3 {
    grid-area: free3;
    background: green;
}

.free-area4 {
    grid-area: free4;
    background: blue;
}

.login-container {
    grid-area: main;
    padding: 10px;
    margin: 0 auto;
    text-align: center;
    max-width: 500px;
}

.login-table {
    width: 100%;
}

.clickable {
    cursor: pointer;
}

.notLogo .login-header {
    display: none;
}

.notLogo .login-container:after {
    content: "سامانه مکاتبات نهادهای حوزوی خراسان";
}

.TwoFAcontainer {
    --width: 360px;
    max-width: 98%;
    --height: 74px;
    --spacing: 21.2px;
    display: inline-block;
    position: relative;
    width: var(--width);
    height: var(--height);
    background-image: url('../pin2.png');
}



.pinEntry {
    padding-left: 116.5px !important;
    font-size: var(--spacing);
    height: var(--height);
    letter-spacing: var(--spacing);
    background-color: transparent;
    border: 0 !important;
    outline: none;
    clip: rect(0px, calc(var(--width) - 80px), var(--height), 0px);
    position: absolute;
    left: 0;
    width: 120% !important;
    margin: 3px 5px !important;
    transform: scale(2)
}

@media only screen and (max-width: 540px) {
    .TwoFAcontainer {
        --width: 300px;
        --spacing: 16.4px;
        background-image: url('../pinsmall.png');
        max-width:120%
    }

    .pinEntry {
        padding-left: 95px !important;
        clip: rect(0px, calc(var(--width) - 60px), var(--height), 0px);
        width: 120% !important
    }



    .login-form .sms-links  {
        padding-right: 0
    }
    .submit-container button {
        margin-left:5px;
        font-size: 0.9rem;
    }

}

@media only screen and (max-width: 490px) {


    .submit-container button {
        margin-left: 0;
    }
}
a.disabled {
    pointer-events: none;
    cursor: default;
    color: gray !important;
}

.login-page {
    direction: rtl;
    width: 100%;
}

.passIcon {
    float: right;
    z-index: 2;
    background-repeat: no-repeat no-repeat;
    width: 24px;
    height: 24px;
    cursor: pointer;
    position: relative;
    top: -40px;
    right: 20px;
}

.passShow {
    background-image: url('../eye2-24.png');
}

.passHide {
    background-image: url('../eye-24.png');
}
.smsMessage {
    font-size:100%
}
