.pre-auth {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 9999;
    height: 100%;
    overflow: auto;
    
    background-color: #fff;
}

.pre-auth__inner {
    display: flex;
    flex-direction: column;
 }

.pre-auth__left-side { 
    order: 2;
    flex: 1;
    display: flex;

    background: #fff url("../img/background.jpg") no-repeat 50% 50%;
    background-size: cover;
}

.pre-auth__left-side-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    width: 100%;
    height: 100%;
    padding: 30px 30px;

    background-color: rgba(0, 0, 0, 0.42);
}

.pre-auth__right-side {
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    padding: 30px;

    background-color: #fff;
}

.pre-auth__news-heading {    
    margin-bottom: 15px;
}

.pre-auth__news-text {
    margin-bottom: 30px;
    
    color: #fff;
    font-size: 17px;
}

.pre-auth__news-title {
    line-height: normal;
    
    color: #fff;
    font-weight: 500;
    font-size: 30px;
}

.pre-auth__login-title {
    margin-bottom: 30px;
    
    color: #f9b33d;
    font-size: 24px;
    font-weight: 500;
    text-align: center;
}

.pre-auth__news-special {
    font-size: 20px;
    color: #f0ad4e;
}

.pre-auth__login {
    max-width: 350px;
    width: 100%;
}

.pre-auth__login-form {
    padding-top: 15px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    
    border-top: 1px solid #cbcbcb;
    border-bottom: 1px solid #cbcbcb;
}

.pre-auth__login-logo {
    display: block;
    margin: 0 auto 15px auto;
    
    -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
    -moz-animation: fadein 2s; /* Firefox < 16 */
    -ms-animation: fadein 2s; /* Internet Explorer */
    -o-animation: fadein 2s; /* Opera < 12.1 */
    animation: fadein 2s;
}

.pre-auth__login-logo--small {
    position: relative;
    bottom: 10px;
    max-height: 60px;
}

@media(min-width:768px) {
    .pre-auth__login-logo--small {
        position: absolute;
        top: 15px;
        right: 20px;
    }
}
.pre-auth__login-copyright {
    position: relative;
    bottom: 15px;
}

@media(min-width:768px) {
    .pre-auth__login-copyright {
        position: absolute;
        bottom: 20px;
    }
}

.pre-auth__news-button {
    padding: 10px 45px;
    height: 50px;
    
    border: 2px solid #fff;
    background-color: transparent;
    border-radius: 5px;
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    transition: all 200ms ease;
}

.pre-auth__news-button:hover {
    background-color: #fff;
    color: #4c4c4c;
    text-decoration: none;
}

.pre-auth__login-button-wrapper {
    display: flex;
    flex-direction: column;
}

.pre-auth__login-button {
    height: 40px;
    line-height: 40px;
    padding: 0 30px;
    margin-bottom: 5px;

    color: #fff;
    text-decoration: none;
    border: none;
    text-align: center;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
}

.pre-auth__login-button:hover {
    -webkit-transition: all .1s ease;
    transition: all .1s ease;
}

.pre-auth__login-button:hover:active {
    -webkit-transition: all 80ms ease;
    transition: all 80ms ease;
    border-bottom: 0;
    margin-top: 2px;
    margin-bottom: -2px;
}

.pre-auth__login-button:focus{
    outline: none;
}

.pre-auth__login-button--login {
    background-color: #85b700;
    border-bottom: 2px solid #648a01;
}

.pre-auth__login-button--login:hover{
    background-color: #8dbf06;
}

.pre-auth__login-button--helpdesk {   
    background-color: #f9b33d;
    border-bottom: 2px solid #d69928;
}

.pre-auth__login-button--helpdesk:hover{
    background-color: #ffba36;
    text-decoration: none;
    color: white;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}


.loader {
    margin: 20px auto;
    position: relative;
    width: 105px;
    height: 105px;
}

.loader__text{
    text-align: center;
    width: 100%;
    font-size: 30px;
    margin: auto;
    display: flex;
    justify-content: center;
}
.loader::after {
    -webkit-animation: grow-vertical 1.2s ease-out forwards;
    animation: grow-vertical 1.2s ease-out forwards;
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 3px;
    background-color: rgb(121, 132, 148);
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
}
.loader::before {
    -webkit-animation: grow-horizontal 1.2s 1.2s ease-out forwards;
    animation: grow-horizontal 1.2s 1.2s ease-out forwards;
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;
    width: 100%;
    background-color: rgb(121, 132, 148);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left;
    transform-origin: left;
}

.loader__block--horizontal {
    -webkit-animation: grow-horizontal .4s ease-out 1 forwards;
    animation: grow-horizontal .4s ease-out 1 forwards;
    position: absolute;
    bottom: 0;
    left: 3px;
    width: 33px;
    height: 3px;
    background-color: rgb(121, 132, 148);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left;
    transform-origin: left;
}
.loader__block--horizontal::before {
    -webkit-animation: grow-vertical .4s .4s ease-out 1 forwards;
    animation: grow-vertical .4s .4s ease-out 1 forwards;
    content: '';
    position: absolute;
    left: 33px;
    bottom: 0;
    height: 33px;
    width: 3px;
    background-color: rgb(121, 132, 148);
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
}
.loader__block--horizontal::after {
    -webkit-animation: grow-horizontal .4s .8s ease-out 1 forwards;
    animation: grow-horizontal .4s .8s ease-out 1 forwards;
    content: '';
    position: absolute;
    left: 33px;
    bottom: 33px;
    height: 3px;
    width: 33px;
    background-color: rgb(121, 132, 148);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left;
    transform-origin: left;
}

.loader__block--vertical {
    -webkit-animation: grow-vertical .4s 1.2s ease-out 1 forwards;
    animation: grow-vertical .4s 1.2s ease-out 1 forwards;
    position: absolute;
    bottom: 33px;
    left: 69px;
    width: 3px;
    height: 33px;
    background-color: rgb(121, 132, 148);
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
}
.loader__block--vertical::before {
    -webkit-animation: grow-horizontal .4s 1.6s ease-out 1 forwards;
    animation: grow-horizontal .4s 1.6s ease-out 1 forwards;
    content: '';
    position: absolute;
    left: -32PX;
    bottom: 33px;
    height: 3px;
    width: 65px;
    background-color: rgb(121, 132, 148);
    -webkit-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left;
    transform-origin: left;
}
.loader__block--vertical::after {
    -webkit-animation: grow-vertical .4s 2s ease-out 1 forwards;
    animation: grow-vertical .4s 2s ease-out 1 forwards;
    content: '';
    position: absolute;
    left: 33px;
    bottom: 33px;
    width: 3px;
    height: 36px;
    background-color: rgb(121, 132, 148);
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: bottom;
    transform-origin: bottom;
}

@-webkit-keyframes grow-vertical {
    from {
        -webkit-transform: scaleY(0);
        transform: scaleY(0);
    }
    to {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }
}

@keyframes grow-vertical {
    from {
        -webkit-transform: scaleY(0);
        transform: scaleY(0);
    }
    to {
        -webkit-transform: scaleY(1);
        transform: scaleY(1);
    }
}
@-webkit-keyframes grow-horizontal {
    from {
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
    }
    to {
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
    }
}
@keyframes grow-horizontal {
    from {
        -webkit-transform: scaleX(0);
        transform: scaleX(0);
    }
    to {
        -webkit-transform: scaleX(1);
        transform: scaleX(1);
    }
}

@media(min-width:768px) {
    .pre-auth__inner {
        flex-direction: row;

        height: 100%;
    }

    .pre-auth__news-special {
        margin-left: 5px;
    }

    .pre-auth__left-side {
        order: 1;
    }

    .pre-auth__login-button {
        margin-bottom: 0;
    }

    .pre-auth__left-side-inner {
        justify-content: center;
    }
    
    .pre-auth__login-button-wrapper {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .pre-auth__right-side {
        width: 400px;
        order: 2;
    }  
}

@media(min-width:1360px) {
    .pre-auth__left-side-inner {
        padding-left: 180px;
        padding-right: 180px;
    }

    .pre-auth__right-side {
        width: 600px;
    }
    
    .pre-auth__news-heading {
        display: flex;
        align-items: baseline;
    }
}