
:root {
    --primary-brand: #CC201A;
    --primary-white: #fff;
    --input-border-color: #5F5F8D;
    --text-color: #16313B;
    --primary-button: #F9D44A;
    --error-background: #FFDDDD;
    --primary-button-hover: #dfb823;
}

@font-face {
    font-family: 'Myriad Pro';
    src:
            url("../fonts/MYRIADPRO-REGULAR.woff") format("woff"),
            url("../fonts/MYRIADPRO-SEMIBOLD.woff") format("woff");
}

@font-face {
    font-family: 'Roboto';
    src:
            url("../fonts/Roboto-Regular.ttf") format("truetype"),
            url("../fonts/Roboto-Bold.ttf") format("truetype"),
            url("../fonts/Roboto-Medium.ttf") format("truetype");
}

body {
    font-family: 'Roboto';
    background: var(--primary-white);
}

/*LOGIN PAGE*/

#auth-container > .show-pass,
#auth-container > #registerButton{
    display: none !important;
}

.login-bg {
    background: var(--primary-white);
}

.bg-pattern.bg-pattern_vertical {
    position: fixed;
    background-image: linear-gradient(to right, rgba(255, 248, 209, 0.5) 16.2%, rgba(207, 19, 22, 0.5) 65.7%, rgba(205, 32, 26, 1) 100%), url(../images/bg-pattern.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 55vw;
    overflow: hidden;
}

.bg-pattern.bg-pattern_vertical::before,
.bg-pattern.bg-pattern_vertical::after {
    content: "";
    position: absolute;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.bg-pattern.bg-pattern_vertical::before {
    background-image: url(../images/top-decor.png);
    opacity: 0.7;
    z-index: 1;
    top: 0;
    right: -10%;
    width: 900px;
    height: 570px;
}

.bg-pattern.bg-pattern_vertical::after {
    background-image: url(../images/bottom-decor.png);
    opacity: 0.4;
    z-index: 1;
    bottom: 0;
    right: -35%;
    width: 1100px;
    height: 70%;
}

.login-wrapper {
    top: 20%;
    left: 55vw;
}

label {
    align-self: baseline;
    font-weight: 400;
    font-size: 12px;
}

form#user-form {
    position: relative;
}

.login-wrapper .box {
    width: 322px;
    padding: 5px;
    box-shadow: none;
}

.login-wrapper .box h6 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-family: 'Roboto';
    font-size: 22px;
}

.login-wrapper .logo {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    width: 343px;
    margin: 0 auto;
    margin-bottom: 61px;
    padding-left: 15px;
}

.login-wrapper .logo img {
    height: auto;
    width: 100%;
}

.login-wrapper input.form-control::placeholder {
    font-style: normal;
}

.login-wrapper .box input[type="text"], .login-wrapper .box input[type="password"] {
    height: 32px;
    border-color: var(--input-border-color);
    margin-bottom: 0;
    font-size: 12px;
}

.login-wrapper.register #step2-content input[type="text"],
.login-wrapper.register #step2-content .select2-container {
    height: 28px;
    border: 1px solid var(--input-border-color);
}

.login-wrapper .box input[type="text"]::placeholder, .login-wrapper .box input[type="password"]::placeholder {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 12px;
}

.login-wrapper .box .content-wrap {
    position: relative;
    width: 100%;
}

.login-wrapper .box .loginButton {
    margin-top: 48px;
    padding: 5px 30px;
    font-family: 'Roboto';
    font-size: 12px;
    font-weight: 500;
}

.login.btn-primary {
    max-width: 250px;
    font-style: normal;
    font-family: 'Roboto';
    font-size: 12px;
    font-weight: 500;
}

.identifier-login-block,
.step1-email-wrapper,
.step1-password-wrapper,
.step1-confirmpass-wrapper {
    text-align: start;
}

.password-field-wrapper {
    position: relative;
}

#loginEmail,
#newPassWrapper {
    margin-bottom: 32px;
}

.login-wrapper .box .error {
    position: absolute;
    width: 100%;
    margin-bottom: 0;
    z-index: 1;
}

.login-wrapper.register .no-padding .error{
    bottom: -32px;
}

.control-group.error .help-block{
    display: flex;
    align-items: center;
    margin: 0;
    padding: 8px;
    color: var(--primary-brand);
    width: 100%;
    height: 32px;
    background-color: var(--error-background);
    font-weight: 400;
}

.control-group.error .help-block::before{
    content: url("../icons/alert.svg");
    display: block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.login-wrapper .box a.reset {
    margin: 0;
    padding: 0;
    font-style: normal;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    color: var(--primary-brand);
}

.reset-buttons-wrapper {
    display: flex;
    justify-content: space-between;
    margin-top: 88px;
}

.login-wrapper .box a.reset {
    margin: 0;
    padding: 0;
}

.login-wrapper .btn-primary {
    float: unset !important;
}

.btn-primary {
    background-color: var(--primary-button) !important;
    color: var(--text-color) !important;
    height: 32px;
    border-color: transparent;
    float: right;
    font-family: 'Roboto';
    font-size: 12px;
    font-weight: 500;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-button-hover);
    border-color: transparent;
    color: var(--text-color);
}

.show-pass {
    position: absolute;
    display: block;
    right: 6px;
    height: 24px;
    cursor: pointer;
}

.show-pass.fa-eye,
.show-pass.fa-eye-slash {
    top: 50% !important;
    transform: translateY(-50%);
}

.show-pass.fa-eye {
    padding-top: 3px;
}

.fa-eye-slash::before {
    content: url("../icons/hide.svg");
    display: block;
}

.fa-eye:before {
    content: url("../icons/show.svg");
    display: block;
}

/*REGISTRATION PAGE*/

.login-wrapper.register {
    top: 10%;
    left: 55vw;
}

.register-box-container {
    padding: 0 3vw 0 3vw;
}

.login-wrapper.register .logo {
    width: 342px;
    padding-left: 15px;
    margin-bottom: 22px;
}

.login-wrapper.register .box {
    width: 100%;
    padding: 0;
    margin: 0;
}

.login-wrapper.register .box h6 {
    margin-bottom: 40px;
}

.login-wrapper.register input[type="checkbox"] {
    margin: 0;
}

.login-wrapper.register #registerButton {
    margin-top: 2.2vh;
    padding: 5px 30px;
    font-family: Roboto;
    font-size: 12px;
    font-weight: 500;
}

.step1-email-wrapper,
.step1-password-wrapper,
#usr_models_forms_WithTagRegisterForm_firstName,
#usr_models_forms_WithTagRegisterForm_lastName,
#usr_models_forms_WithTagRegisterForm_patronymic,
#s2id_usr_models_forms_WithTagRegisterForm_gender,
#s2id_usr_models_forms_WithTagRegisterForm_division,
#s2id_usr_models_forms_WithTagRegisterForm_jobTitle,
#s2id_usr_models_forms_WithTagRegisterForm_country,
#usr_models_forms_WithTagRegisterForm_location
{
    margin-bottom: 2vh;
}

#register-form {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/*select2 overrides*/

#register-form .select2-container .select2-choice {
    height: 28px;
    padding: 4px 6px;
    line-height: unset;
    border-color: var(--input-border-color);
}

#register-form .select2-container .select2-choice .select2-arrow {
    right: 4%;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 8px;
}

#register-form .select2-container .select2-choice .select2-arrow b{
    background: url(../icons/arrow_down.svg) no-repeat 0 1px;
}

#register-form .select2-default .select2-chosen {
    font-style: normal;
    font-size: 12px;
    font-family: 'Roboto';
    font-weight: 400;
}

#register-form .select2-chosen {
    font-size: 12px;
}

/*STEPS*/

.register #step1-content,
.register #step2-content,
.register #step3-content {
    position: absolute;
    left: 50%;
    transform: translate(-50%);
}

.step1-email-wrapper,
.step1-password-wrapper,
.step1-confirmpass-wrapper {
    position: relative;
    width: 100%;
}

/*step1*/

.register #step1-content {
    top: 11vh;
}

.login-wrapper .box .error.email,
.login-wrapper .box .error.password,
.login-wrapper .box .error.confirmPassword {
    bottom: -35px;
}

/*step2*/

.register #step2-content {
    top: 13vh;
}

.login-wrapper .box .error.firstName{
    top: 14%;
    bottom: auto;
}

.login-wrapper .box .error.lastName {
    top: 31%;
    bottom: auto;
}

/*step3*/
.register #step3-content {
    top: 20vh;
}

.register #step3-content .no-padding {
    display: flex;
    position: relative;
    width: 100%;
    justify-content: center;
}

.register #step3-content .error {
    bottom: 0;
    left: 0;
}

a.userAgreement {
    color: var(--primary-brand);
}

@media screen and (max-width: 620px) {
    .bg-pattern.bg-pattern_vertical {
        width: 0;
    }

    .login-wrapper,
    .login-wrapper.register {
        left: 0;
        padding: 0 20px;
    }

    .login-wrapper .logo {
        padding-left: 5px;
    }

    .register-box-container {
        padding: 0;
    }
}

@media screen and (min-width: 621px)  and (max-width: 900px) {
    .bg-pattern.bg-pattern_vertical {
        width: 45%;
        height: 110%;
    }

    .login-wrapper,
    .login-wrapper.register {
        left: 45%;
    }
}


@media screen and (min-width: 1600px) {
    .bg-pattern.bg-pattern_vertical {
        width: 60vw;
    }

    .login-wrapper,
    .login-wrapper.register {
        left: 60vw;
    }

    .register #register-form {
        position: relative;
        max-width: 27vw;
        margin: 0 auto;
    }
}

@media screen and (max-height: 900px) {
    .register #register-form {
        height: 70vh;
    }

    .register #step1-content {
        top: 50px;
    }

    .register #step2-content {
        top: 100px;
    }

    .register #step3-content {
        top: 140px;
    }
}

@media screen and  (max-height: 1039px) {
    .step1-email-wrapper,
    .step1-password-wrapper,
    #usr_models_forms_WithTagRegisterForm_firstName,
    #usr_models_forms_WithTagRegisterForm_lastName,
    #usr_models_forms_WithTagRegisterForm_patronymic,
    #s2id_usr_models_forms_WithTagRegisterForm_gender,
    #s2id_usr_models_forms_WithTagRegisterForm_division,
    #s2id_usr_models_forms_WithTagRegisterForm_jobTitle,
    #s2id_usr_models_forms_WithTagRegisterForm_country,
    #usr_models_forms_WithTagRegisterForm_location,
    #register-form .select2-container
    {
        margin-bottom: 1vh;
    }

    #register-form #s2id_usr_models_forms_WithTagRegisterForm_birthYear {
        margin-bottom: 2vh !important;
    }
}

/*SYSTEM INTERNAL STYLES*/

/*header*/

.navbar-inverse {
    background-color: var(--primary-brand) !important;
    height: 64px;
    max-height: 64px;
}

.navbar-header {
    padding-top: 0;
}

.navbar-inverse .menu #leftMenu {
    padding: 19px 17px !important;
    margin-right: 41px;
}

.navbar-inverse .navbar-brand {
    margin-right: 64px;
    padding: 10px 13px;
}

.navbar-inverse .menu a,
.navbar-inverse .menu a:hover,
.navbar-inverse .menu a:focus,
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus {
    background-color: transparent !important;
    border-color: transparent !important;
}

.nav li > a {
    padding: 12px 16px !important;
}

.navbar-inverse .navbar-nav {
    height: 100%;
}

.navbar-inverse .navbar-nav.pull-left[role="menu"] {
    padding-top: 5px;
}

.navbar li.active {
    position: relative;
}

.navbar li.title {
    height: 50px;
}

.navbar-brand > img {
    max-height: 43px;
}

.navbar li.title.active::after {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 4px;
    bottom: 13px;
    border-radius: 8px;
    background-color: var(--primary-white);
}

.navbar-inverse .nav > li.title > a {
    color: var(--primary-white);
}

.navbar-inverse .nav > li.title > a:hover {
    color: var(--primary-button);
    background: transparent;
}

.navbar-inverse .menu i {
    width: 24px;
    height: 20px;
    font-size: 21px;
}

.navbar-inverse .settings i {
    color: var(--primary-white);
}

.navbar-inverse .settings .tmx-question-circle {
    padding-left: 2px;
}

.navbar-inverse .settings a[role="button"] {
    width: 32px;
    height: 32px !important;
    padding: 5px !important;
    border-radius: 80%;
}

.navbar-inverse .settings a:hover > i::before {
    color: var(--primary-brand);
}

.navbar-inverse .settings.menu a:hover > i::before {
    color: var(--primary-white);
}

.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover,
.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus {
    background-color: var(--primary-brand);
}

.navbar-inverse .settings .dropdown-menu > li > a:hover i::before,
.navbar-inverse .settings .dropdown-menu > li > a:focus i::before {
    color: var(--primary-white) !important;
}

/*LEFT-SIDE MENU*/

.primary-sidebar {
    width: 242px !important;
    padding: 72px 6px 72px 16px;
    background-color: rgba(230, 231, 232, 0.5);
}

.list-group-item {
    padding: 15px 16px;
    margin-bottom: 0;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 8px !important;
    color: #837878 !important;
}

.list-group-item:hover,
.list-group-item:focus,
.list-group-item.active {
    background-color: rgb(230, 231, 232) !important;
    color: var(--text-color) !important;
    border-color: transparent !important;
}

@media (min-width: 768px) {
    .drawer-open-left {
        margin-left: 242px;
    }
}

/*MAIN CONTENT*/

.content-control > .breadcrumb {
    border: none !important;
    margin-top: 16px;
    padding: 0 22px;
}

.content-control .breadcrumb > li,
.content-control .breadcrumb > li > a {
    color: #9D5D5D;
}

.content-control .breadcrumb > .active {
    color: var(--primary-brand);
}

.content-control {
    border: none;
    margin-left: 0;
}

.container-fluid {
    border: none;
}

/*ORG MODULE*/

#addPerson.btn-primary {
    margin-right: 5px;
}

#searchPersonSimpleForm .col-sm-12 {
    width: 100% !important;
}

#searchPersonSimpleForm #search-simple {
    float: none !important;
}
/*GUI MODULE*/

.gui-module a > i.tmx-plus.fa {
    color: var(--text-color);
}

/*FONTS*/

#default-page h3 {
    font-family: 'Roboto';
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.sidebar-text {
    font-family: 'Roboto';
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.navbar-inverse .nav > li.title > a {
    font-family: 'Roboto';
    font-size: 14px;
    font-weight: 500;
    line-height: 1.36;
}

.content-control .breadcrumb > li,
.content-control .breadcrumb > li > a {
    font-family: 'Roboto';
    font-weight: 400;
    font-size: 12px !important;
    line-height: 1.7;
}

/*COMMON STYLES*/

.btn-primary {
    background-color: var(--primary-button) !important;
    color: var(--text-color) !important;
    border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-button-hover);
    border-color: transparent;
    color: var(--text-color);
}

.wizard-panel-heading.active .wizard-panel-icon {
    background-color: var(--primary-brand);
    border-color: transparent;
}

/*FORGET PASSWORD PAGE*/

.forget-password_wrapper {
    text-align: start;
}

.forget-password_description {
    margin: 0 0 20px;
    font-size: 14px;
    text-align: center;
}

#resetButton,
#saveButton {
    margin: 37px 0 24px 0;
    font-family: 'Roboto';
    font-size: 12px;
    font-weight: 500;
}

#forgetform a.reset,
#newpassform a.reset {
    display: flex;
    align-items: center;
    justify-content: center;
}

#forgetform a.reset::before,
#newpassform a.reset::before {
    content: url("../icons/arrow-left.svg");
    display: inline-block;
    margin-right: 5px;
    width: 8.5px;
    padding-bottom: 2px;
}

#newpassform .error {
    position: absolute;
    bottom: -32px;
}

.send-text_message {
    font-family: Roboto;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1.36;
    color: var(--text-color);
}

.login-wrapper .send a.reset {
    padding: 7px 24px !important;
    max-width: 200px;
    margin: auto;
    margin-top: 57px;
    height: 32px;
    background-color: var(--primary-button);
    font-family: Roboto;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-color);
}

.login-wrapper .send a.reset:hover,
.login-wrapper .send a.reset:focus {
    background-color: var(--primary-button-hover);
}
