/* HEADER */
.login button {
    border: 2px solid #EB5669;
    background: none;
    color: #EB5669;
    border-radius: 4px;
    width: 100px;
    height: auto;
    line-height: 20px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    transition: 0.2s all ease;
}
.login button:hover {
    background: #eb566917;
}

/* BACKGROUND GALLERY */
.backgroundgallery li {
    opacity: 0;
    z-index: 0;
    -webkit-backface-visibility: hidden;
    -webkit-animation: imageAnimation 24s linear infinite 0s;
    -moz-animation: imageAnimation 24s linear infinite 0s;
    -o-animation: imageAnimation 24s linear infinite 0s;
    -ms-animation: imageAnimation 24s linear infinite 0s;
    animation: imageAnimation 24s linear infinite 0s; 
}
.backgroundgallery li:nth-child(2) {
    -webkit-animation-delay: 6s;
    -moz-animation-delay: 6s;
    -o-animation-delay: 6s;
    -ms-animation-delay: 6s;
    animation-delay: 6s; 
}
.backgroundgallery li:nth-child(3) {
    -webkit-animation-delay: 12s;
    -moz-animation-delay: 12s;
    -o-animation-delay: 12s;
    -ms-animation-delay: 12s;
    animation-delay: 12s; 
}
.backgroundgallery li:nth-child(4) {
    -webkit-animation-delay: 18s;
    -moz-animation-delay: 18s;
    -o-animation-delay: 18s;
    -ms-animation-delay: 18s;
    animation-delay: 18s; 
}
/* END BACKGROUND GALLERY */

/* ANIMATION FADE */
@-webkit-keyframes imageAnimation { 
    0% { opacity: 0; -webkit-animation-timing-function: ease-in; }
    8% { opacity: 1; -webkit-animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0.02 }
    100% { opacity: 0 }
}

@-moz-keyframes imageAnimation { 
    0% { opacity: 0; -webkit-animation-timing-function: ease-in; }
    8% { opacity: 1; -webkit-animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0.02 }
    100% { opacity: 0 }
}

@-o-keyframes imageAnimation { 
    0% { opacity: 0; -webkit-animation-timing-function: ease-in; }
    8% { opacity: 1; -webkit-animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0.02 }
    100% { opacity: 0 }
}

@-ms-keyframes imageAnimation { 
    0% { opacity: 0; -webkit-animation-timing-function: ease-in; }
    8% { opacity: 1; -webkit-animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0.02 }
    100% { opacity: 0 }
}

@keyframes imageAnimation { 
    0% { opacity: 0; -webkit-animation-timing-function: ease-in; }
    8% { opacity: 1; -webkit-animation-timing-function: ease-out; }
    17% { opacity: 1 }
    25% { opacity: 0.02 }
    100% { opacity: 0 }
}
/* END ANIMATION FADE */

/* HEADER */
.logo {
    position: absolute;
    left: 0;
    top: 0;
    padding: 10px;
    max-width: 200px;
    background: #ffffff;
}
/* END HEADER */
/* LOGIN */
.btn-login {
    background: #ffffff;
    color:#EB5669;
    border: none;
    box-shadow: 1px 2px 5px -1px #111;
}
/* END LOGIN */

/* REGISTRATION */
.wrapper-registration .registration .block-group-container {
    background: #F7F5F6;
    padding: 20px;
}
.registration .block-button-group .btn-group label input[type=radio] + span:before {
    border-color: #333333;
}
/* .registration .form-group-inner a {
    flex-wrap: wrap-reverse;
} */
.registration .block-field-group .form-group .required,
.registration .block-field-group .unknown-error-msg,
.required-radio {
    background: rgba(236, 61, 64, 0.85);
    color: #fff;
}
.registration .block .block.block-gender.has-error {
    padding-top: 45px;
}
.required-radio {
    position: absolute;
    top: 0;
    width: 208%;
    margin-left: -108%;
}

.headline-1 {
    margin: -118px 0 30px;
    font-size: 2.2rem;
    line-height: 44px;
    color: #EB5668;
    font-weight: bold;
    text-align: center;   
    text-shadow: 0px 0px 10px #333;
}
.login-form .registration .block-field-group .form-group .required {
    background: rgba(236, 61, 64, 0.85);
}
.login-form .registration .block-field-group .form-group .required:before {
    border-right-color: rgba(236, 61, 64, 0.85);
}
.registration .block-field-group .form-group.form-group-username .form-group-inner:before,
.registration .block-field-group .form-group.form-group-email .form-group-inner:before,
.registration .block-field-group .form-group.form-group-password .form-group-inner:before {
    content: "";
    position: absolute;
    top: 0;
    left: 15px;
    margin: auto;
    background-position: left center;
    background-repeat: no-repeat;
    width: 50px;
    height: 48px;
}
.registration .block-field-group .form-group.form-group-username input,
.registration .block-field-group .form-group.form-group-email input,
.registration .block-field-group .form-group.form-group-password input {
    padding-left: 50px;
}
.registration .block-field-group .form-group.form-group-username .form-group-inner:before {
    background-image: url(/img/_btns/icon_username.svg);
}
.registration .block-field-group .form-group.form-group-email .form-group-inner:before {
    background-image: url(/img/_btns/iconMail.svg);
}
.registration .block-field-group .form-group.form-group-password .form-group-inner:before {
    background-image: url(/img/_btns/iconKey.svg);
}
.login-success-footer {
    display: flex;
    flex-wrap: wrap-reverse;
    order: 1;
}
.registration-content2 {
    display: none !important;
}
.container {
    background: #F7F5F6;
}
.registration .block-group .btn-group {
    display: flex;
}
.gender .btn-group {
    flex-direction: row-reverse;
}
.block-button-group p {
    margin: 10px;
}
.registration .block-button-group .btn-group label {
    margin: 0 5px 10px 5px;
}
.registration .block-group .btn-group .btn-next {
    margin: 0px 25px;
}
.progress-bar-wrapper {
    margin: 20px 25px;
}
.registration .form-group-inner a {
    display: block;
}
.registration .block-field-group .form-group {
    padding: 10px 20px 0 20px;
    background: #F7F5F6; 
}
.block-field-group .form-group label {
    margin: 10px 0; 
}
.registration .block .block.legalwarning {
    background: #ffffff;
    border-radius: 3px;
    padding: 10px;
    font-size: 12px;
    text-align: center;
    margin: 20px;
}
.registration .block .block.legalwarning a {
    text-decoration: underline;
}

.registration .form-inner > .block + .block {
    display: block !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden;
    opacity: 0;
}
.registration .form-inner > .block + .block.show {
    height: auto !important;
    max-height: none !important;
    overflow: visible;
    opacity: 1;
}

/* FORM LOGIN */
.login-form .registration .block-field-group .form-group {
    padding: 0;
    background: transparent;
}
.login-form .registration .form-group-inner a {
    flex-wrap: wrap-reverse;
    display: flex;
}
.login-form .registration .block-field-group .form-group.form-group-username .form-group-inner:before,
.login-form .registration .block-field-group .form-group.form-group-email .form-group-inner:before,
.login-form .registration .block-field-group .form-group.form-group-password .form-group-inner:before {
    content: "";
    position: absolute;
    bottom: 0;
    top: auto;
    left: 15px;
    margin: auto;
    background-position: left center;
    background-repeat: no-repeat;
    width: 50px;
    height: 48px;
}
/* END FORM LOGIN */

/* PROGRESS BAR */
.progress-bar {
    background-color: transparent;
    border-radius: 0;
}
.progress-bar li {
    margin-right: 10px;
}
.progress-bar li.active ~ * {
    background-color: #E0E0E0;
}
.progress-bar li.visible {
    background-color: #EB5669;
}
.progress-bar li:before {
    width: 10px;
    height: 100%;
    border-radius: 0;
    background-color: transparent;
    right: -5px;
}
.progress-bar li.active:after {
    border-radius: 0;
    right: 0;
    top: 50%;
    background-color: #fff;
    width: 100%;
    height: 100%;
    border: none;
}
.progress-bar li:last-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    margin-right: 0;
}
.progress-bar li:first-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}
/* END GROGRESS BAR */

/* LOGIN SUCCSESS FORM  */
.login-success-form .login-success-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.login-success-form .login-success-box p {
    order: 1;
}
/* LOGIN SUCCSESS FORM  */

/* END REGISTRATION */

/* AREA */
.area-item {
    background-color: #E0E0E0;
}
.area-item:nth-child(2) {
    background-color: #EDEDED;
}
.area-item:nth-child(3) {
    background-color: #E8E8E8;
}
.area-item img {
    width: 45px;
    margin: 10px 0 15px;
}
/* END AREA */

/* FOOTER */
.text-footer {
    max-width: 260px;
    margin: 0 auto 10px;
    border-bottom: thin solid #555;
    padding-bottom: 25px;
}
.copyright span {
    margin: 0px 5px;
}
/* END FOOTER */
@media(min-width: 768px) {
    .login button {
        line-height: 34px;
        width: 100%;
        height: 40px;
    }
    .logo {
        position: relative;
        left: 0;
        padding: 5px;
        max-width: 360px;
    }
    .container {
        background: transparent;
    }
    .wrapper-registration .registration .block-group-container {
        padding: 0;
        background: none;
    }
    .registration .block-field-group.block-field-submit {
        position: relative;
        clear: both;
    }
    .registration .block-field-group .form-group .required,
    .registration .block-field-group .unknown-error-msg,
    .required-radio {
        position: absolute;
        left: calc(100% + 9px);
        top: 50%;
        transform: translateY(-50%);
        width: 350px;
        margin: 0;
    }
    .registration .block-field-group .unknown-error-msg {
        top: -37;
    }
    .login-form .registration .block-field-group .unknown-error-msg {
        top: auto;
        bottom: -8px;
    }
    .required-radio {
        top: 68px;
    }
    .registration .block .block.block-gender.has-error {
        padding-top: 0;
    }
    .registration .block-field-group .form-group .required:before,
    .registration .block-field-group .unknown-error-msg:before,
    .required-radio:before {
        content: "";
        position: absolute;
        left: -8px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid rgba(226, 81, 83, 0.85);
    }
    .headline-1 {
        font-size: 2.4rem;
        margin-top: 30px;
        text-shadow: none;
    }
    .login-form .registration .block-field-group .form-group .required,
    .login-form .registration .block-field-group .unknown-error-msg {
        width: 215px;
    }
    .login-form .registration .block-field-group .unknown-error-msg {
        left: calc(100% - 12px);
    }
    .login-success-footer .copyright, 
    .login-success-footer .legal__container {
        font-size: 13px;
    }
    .login-success-footer {
        flex-wrap: wrap;
        margin-bottom: 50px;
    }
    .login-success-footer .legal__container {
        margin-bottom: 5px;
    }
    .area {
        border-top: 50px solid #CFDCE5;
    }
    .registration .block-group .btn-group .btn-next {
        margin: 0 5px;
    }
    .progress-bar-wrapper {
        margin: 20px 5px;
    }
    .registration .block-field-group .form-group {
        background: transparent;
        padding: 0 5px;
    }
    .registration .block .block.legalwarning {
        margin: 5px;
    }
    .login-success-form .login-success-box {
        display: block;
    }
    .login-success-form .login-success-box a {
        float: right;
    }
}
@media(min-width: 992px) {
    .logo {
        max-width: 400px;
    }
    .headline-1 {
        font-size: 2.6rem;
    }
    .login-form .registration .block-field-group .unknown-error-msg {
        top: auto;
        bottom: 6px;
    }
    .login-form .registration .block-field-group .form-group .required,
    .login-form .registration .block-field-group .unknown-error-msg {
        width: 342px;
    }
    .area {
        border-top: none;
    }
    .login-success-footer { 
        margin-bottom: 20px;
    }
}

@media only screen and (max-height: 600px) and (min-width: 568px) {
    .login button {
        width: 100%;
        height: 40px;
    }
}

@media only screen and (max-height: 695px) and (min-width: 1200px) { 
    .wrapper-content {
        height: 105vh;
    }
    .login-form .registration .block-field-group .form-group .required,
    .login-form .registration .block-field-group .unknown-error-msg {
        width: 350px;
    }
}

@media only screen and (max-height: 320px) and (min-width: 500px) {
    .login-success-form {
        padding-top: 50px;
        padding-bottom: 50px;
    }
}

@media(max-width: 420px) {
    .logo {
        padding: 5px;
        max-width: 160px;
    }
    .headline-1 {
        font-size: 2em;
    }
    .wrapper-registration .registration .block-group-container {
        padding: 5px;
    }
    .registration .block-group .btn-group .btn-next {
        margin: 0 10px;
    }
    .progress-bar-wrapper {
        margin: 20px 10px;
    }
    .registration .block-field-group .form-group {
        padding: 5px;
    }
    .registration .block .block.legalwarning {
        margin: 5px;
    }

}
@media(max-width: 350px) {
    .headline-1 {
        margin: -103px 0 15px;
    }
}