@import "fonts.css";
@import "forms.css";
@import "buttons.css";
@import "autocomplete.css";

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    color: #6d7680;
    font: 14px/1.5 Avenir, sans-serif;
    -webkit-font-smoothing: subpixel-antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    padding: 0;
}

h1 {
    color: #000;
    font: 700 28px/1.4 Avenir, sans-serif;
}

a {
    text-decoration: underline;
    color: #000;
}

a:hover {
    text-decoration: none;
}

.login-page-container {
    box-sizing: border-box;
    overflow: hidden;
    min-height: 100%;
    border-top: 8px solid #000;
    background: #f8fafb;
}

.login-page-block-outter {
    max-width: 800px;
    margin: 42px auto 55px;
    padding: 0 10px;
}

@media only screen and (max-width: 940px) and (min-width: 641px) {
    .login-page-block-outter {
        max-width: 668px;
    }
}

@media only screen and (max-width: 640px) {
    .login-page-block-outter {
        margin-top: 0;
        margin-bottom: 10px;
    }
}

.login-page-block {
    display: flex;
    align-items: stretch;
    margin: 10px 0;
    padding: 30px;
    border: 1px solid #dde4eb;
    border-radius: 4px;
    box-shadow: 0 1px 2px 0 rgba(20, 57, 93, .1);
    background-color: #fff;
}

@media only screen and (max-width: 640px) {
    .login-page-block {
        flex-direction: column;
        padding: 20px;
    }
}

.login-page-left,
.login-page-right {
    flex: 1;
}

.login-page-left {
    padding-right: 30px;
    border-right: 1px solid #dde4eb;
}

.login-page-right {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
    padding-left: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
}

@media only screen and (max-width: 640px) {
    .login-page-left {
        padding-right: 0;
        padding-bottom: 20px;
        border-right: none;
        border-bottom: 1px solid #dde4eb;
    }
    .login-page-right {
        padding-top: 20px;
        padding-left: 0;
    }
}

.login-page-logo-area {
    height: 132px;
    text-align: left;
    margin-bottom: 15px;
    line-height: 132px;
}

@media only screen and (max-width: 640px) {
    .login-page-logo-area {
        height: 70px;
        line-height: 70px;
    }
}

.login-page-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    vertical-align: middle;
}

.login-page-headline h1 {
    display: inline-block;
}
.login-page-label {
    color: #6D7680;
}

.login-page-form-message {
    flex: 1 0 auto;
    margin: 4px 0 10px;
    font-size: 12px;
    color: #464E56;
}

.login-page-form-message-item {
    position: relative;
    padding-left: 20px;
}

.login-page-form-message-item img {
    position: absolute;
    left: 0;
    top: 0;
}

.login-page-form-message-item a {
    color: inherit;
}

.login-page-form-message-error {
    color: #E54D42;
}

.login-page-form-message img {
    vertical-align: top;
}

.login-page-submit-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-page-submit-button, .login-page-submit-right {
    margin-top: 20px;
    text-align: center;
}

.login-page-submit-button {
    position: relative;
}

.login-page-submit-button.loading,
.login-page-submit-button.loading:hover,
.login-page-submit-button.loading:focus,
.login-page-submit-button.loading:active {
    color: transparent;
}

.login-page-submit-button.loading::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("assets/loading.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 32px;
    animation: spin 2s linear infinite;
}

@keyframes spin { 
    100% {transform:rotate(360deg);}
}

.login-page-submit-right {
    text-align: left;
}

.login-page-submit-right a {
    color: #464e56;
}

@media only screen and (min-width: 641px) {
    .login-page-submit-wrap {
        flex-direction: row;
        align-items: center;
    }

    .login-page-submit-right {
        margin-left: 20px;
    }
}

.login-page-footer {
    padding: 10px 30px;
    font-size: 12px;
    text-align: center;
}

.mobile-only {
    display: none;
}

@media only screen and (max-width: 640px) {
    .login-page-submit-button {
        width: 100%;
    }

    .mobile-only {
        display: block;
    }
}