@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto'), local('Roboto-Regular'), url("Roboto-Regular.woff2") format('woff2'), url("Roboto-Regular.woff") format('woff');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 500;
  src: local('Roboto Medium'), local('Roboto-Medium'), url("Roboto-Medium.woff2") format('woff2'), url("Roboto-Medium.woff") format('woff');
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: local('Roboto Bold'), local('Roboto-Bold'), url("Roboto-Bold.woff2") format('woff2'), url("Roboto-Bold.woff") format('woff');
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

a {
    cursor: pointer;
    color: #fff;
}

img, img:focus {
    outline: none;
}

.clear {
    clear: both;
}

.left {
    float: left;
}

.right {
    float: right;
}

.clearfix:after {
    content: '';
    clear: both;
    display: table;
}

ul {
    list-style: none;
}

textarea {
    resize: none;
}

html,
body {
    width: 100%;
    /*max-width: 800px;*/
    min-width: 320px;
    margin: 0 auto;
    font-size: 14px;
    height: 100%;
    color: #868686;
    position: relative;
    font-family: 'Roboto', sans-serif;
    background: #c4c7c9;
    background: -moz-linear-gradient(top, #c4c7c9 0%, #f7f7f7 100%);
    background: -webkit-linear-gradient(top, #c4c7c9 0%, #f7f7f7 100%);
    background: linear-gradient(to bottom, #c4c7c9 0%, #f7f7f7 100%);
}
html.eid-modal, html.eid-modal body {
    background: transparent;
}

.btn {
    background: #27ca8e;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    line-height: 38px;
    height: 38px;
    padding: 0 40px;
    border: none;
    display: inline-block;
    text-decoration: none;
}

.btn.cancel {
    border: solid #27ca8e;
    color: #27ca8e;
    line-height: 32px;
    background: transparent;
}

.eid_popup_error {
    background: #ff0000;
}

.main-text {
    font-size: 14px;
    line-height: 18px;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 20px;
}

.simple-text {
    font-size: 14px;
    line-height: 18px;
    margin-bottom: 20px;
}

.title {
    font-size: 20px;
    line-height: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.main-block {
    width:790px;
    margin: 0 auto;
    padding: 50px 80px;
    height: 430px;
    background: url("sm-star.png") center left no-repeat;
    background-color: #f7f7f7;
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    top: 150px;
    overflow: hidden;
}
.remember_me {
    margin-left:14px;
}
.unsafe_computer {
    margin-right:87px;
    text-align:right;
}

.main-block .red-bg {
    background: url("sm-bg.png") top left no-repeat;
    position: absolute;
    background-size: cover;
    top: 0px;
    right: 0px;
    height: 430px;
    left: 55%;
    z-index: 1;
}

.main-block .logo {
    position: absolute;
    top: 50px;
    left: 63%;
    width: 90px;
    z-index: 3;
}

.main-block .photo {
    position: absolute;
    top: 120px;
    left: 60%;
    z-index: 3;
}

.main-block .code {
    position: absolute;
    bottom: 66px;
    left: 161px;
    z-index: 3;
    width: 146px;
}

.wrap2 .main-block {
    min-height: calc(100vh - 140px);
    min-height: -webkit-calc(100vh - 140px);
}

.main-block .login-form {
    position: relative;
    z-index: 2;
    width: 385px;
}



.certification {
    text-transform: uppercase;
    color: #333333;
    font-size: 17px;
    line-height: 24px;
    font-weight: 500;
    margin-bottom: 35px;
    max-width: 290px;
}

.main-block .login-form form {
    width: 100%;
    margin-bottom: 20px;
}

textarea {
    border: none;
    background: #fafafa;
    color: #333333;
    width: 100%;
    font-size: 14px;
    line-height: 20px;
    height: 60px;
    margin-bottom: 15px;
    padding: 0 10px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
    resize: none;
}

input[type=text], input[type=password], input[type=email] {
    border: none;
    background: #fafafa;
    color: #333333;
    width: 100%;
    font-size: 14px;
    line-height: 38px;
    height: 38px;
    margin-bottom: 15px;
    padding: 0 10px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
    max-width:300px;
}

input.login {
    background: url("loginbg.png") 8px 0 no-repeat #fafafa;
    padding-left: 30px;
}

input.pass {
    background: url("passbg.png") 8px 0 no-repeat #fafafa;
    padding-left: 30px;
}

input[type=text].error, input[type=password].error {
    border: 1px solid #E61515;
}

p.error {
    color: #E61515;
    margin-top: -20px;
    font-size: 12px;
    line-height: 20px;
    margin-bottom: 10px;
}

button {
    background: #27ca8e;
    color: #fff;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 500;
    line-height: 38px;
    height: 38px;
    padding: 0 40px 0 20px;
    border: none;
    margin-right: 20px;
    margin-bottom: 20px;
}

button:disabled {
    background: silver;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

button span.spinner {
    position: relative;
    box-sizing: border-box;
    display: inline-block;
    padding: 0;
    margin-right: 10px;
    border-radius: 100%;
    border-style: solid;
    animation: spin 0.8s linear infinite;
    width: 12px;
    height: 12px;
    border-width: 1px;
    visibility: hidden;

    border-left-color: rgba(0, 0, 0, 0.1);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    border-right-color: rgba(0, 0, 0, 0.1);
}

button.without-margin-right {
    margin-right: 0px;
    padding: 0 11px;
}

.sign-in {
    margin-right: 20px;
    padding: 0 20px;
    margin-bottom: 20px;
}

input[type=checkbox].checkbox {
    position: absolute;
    z-index: -1000;
    left: -1000px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    height: 1px;
    width: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
}

input[type=checkbox].checkbox + label.css-label {
    padding-left: 25px;
    display: inline-block;
    line-height: 40px;
    background-repeat: no-repeat;
    background-position: 0 10px;
    font-size: 12px;
    font-weight: 400;
    vertical-align: middle;
    cursor: pointer;
    color: #868686;
}

input[type=checkbox].checkbox:checked + label.css-label {
    background-image: url("");
}
.or-divider {
    padding:0px 10px 0px 10px;
}
label.css-label {
    background-image: url("");
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.simple-text {
    color: #666666;
    font-size: 14px;
    line-height: 20px;
}

.links {
    position: absolute;
    bottom: 74px;
    left: 48%;
    text-align: left;
    z-index: 3;
    width: 150px;
}

.links.edit {
    width: 200px;
}

.links a {
    display: inline-block;
    color: #27ca8e;
    font-size: 15px;
    line-height: 20px;
    text-decoration: underline;
    font-weight: 400;
}

a.link {
    padding-top: 8px;
    display: inline-block;
    color: #666666;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.agreement a {
    display: inline-block;
    color: #666666;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

button.btn_logout {
    color: inherit;
    font-weight: bold;
    text-decoration: none;
    padding-left: 30px;
    margin: 0;
    background: none;
    text-transform: none;
}

.trust_page_notice {
    font-size: 12px;
    padding-bottom: 10px;
}

@media only screen and (min-width: 800px) and (max-height: 680px) {
    .main-block {
        top: calc((100vh - 430px) / 2);
        box-shadow: 0 5px 5px rgba(0, 0, 0, 0.2);
        /*width:100%;*/
    }
}
@media only screen and (max-width: 767px) {
    .popup .popup-container {
        top: 20px;
    }
    .main-block {
        width: 100%;
    }
    .main-block .red-bg {
        position: fixed;
        height: 560px;
    }

    .main-block {
        height: 100vh;
        border-radius: 0;
        box-shadow: none;
        padding: 20px;
        top: 0;
        bottom: 0;
        overflow: scroll;
        min-height: 320px;
    }

    .main-block .logo {
        left: 75%;
        top: 20px;
    }

    .main-block .photo {
        top: 110px;
        left: 70%;
    }

    .main-block .red-bg {
        left: 60%;
    }

    .links {
        position: absolute;
        bottom: 20px;
        left: 250px;
        text-align: right;
        z-index: 3;
        width: 150px;
    }

    .main-block .code {
        bottom: 8px;
        left: 20px;
        z-index: 3;
    }

    .trust-level-message {
        width: 120%;
    }
}
@media only screen and (max-width: 479px) {
    .or-divider {
        display: none;
    }
    input[type=text], input[type=password], input[type=email] {
        max-width:270px;
    }
    .certification {
        font-size: 14px;
        line-height: 24px;
        margin-bottom: 235px;
        width: 50%;
    }

    .main-block .red-bg {
        left: 50%;
        height: 479px;
    }

    .main-block .logo {
        left: 65%;
        top: 20px;
    }

    .main-block .photo {
        top: 110px;
        left: 20px;
    }

    .links {
        position: relative;
        bottom: auto;
        text-align: right;
        z-index: 3;
        left: 0;
        width: 100%;
    }

    .links a {
        padding-right: 40px;
    }

    .main-block .login-form {
        position: relative;
        z-index: 2;
        width: 100%;
    }

    .trust-level-message {
        width: 100%;
    }

    .main-block .code {
        display:none;
    }

    .sign-in {
        margin-right: 20px;
        padding: 0 5px;
    }
    .certification {
        margin-bottom: 235px;
    }
}
@media only screen and (max-width: 479px) and (max-height: 480px) {
    .certification {
        font-size: 12px;
        line-height: 20px;
        width: 50%;
    }

    .main-block .photo {
        top: 84px;
        left: 20px;
    }
}
