body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

.login-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-family: "Source Sans Pro", sans-serif;
}

.login-box {
    padding: 40px;
    width: 260px;
    height: 290px;
    text-align: center;
    overflow: hidden;
    position: relative;
    background-image: inherit;
    background-repeat: inherit;
    background-size: inherit;
    background-position: inherit;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.login-box:before {
    display: block;
    content: "";
    background-image: inherit;
    background-repeat: inherit;
    background-size: inherit;
    background-position: inherit;
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    transform: translate(calc(130px - 50vw), calc(185px - 50vh));
    filter: blur(5px);
}

.login-box:after {
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.1);
}

.login-box.maintenance {
    height: 150px;
    color: white;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.login-box.maintenance:before {
    transform: translate(calc(130px - 50vw), calc(115px - 50vh));
}

.login-box-body {
    position: relative;
    z-index: 2;
}

.login-logo {
    margin: 0;
}

.login-logo img {
    width: 60%;
}

#error {
    height: 20px;
    margin-bottom: 15px;
}

#error:not(:empty) {
    border-left: 3px solid red;
}

#error.success {
    border-left: 3px solid green;
}

.shadow-container,
.login-box-body button {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.login-box-body input {
    width: 100%;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    outline: none;
    padding: 11px;
    padding-left: 45px;
    border: none;
    box-sizing: border-box;
    background-color: rgba(255, 255, 255, 0.6);
    transition: background-color 0.15s;
    position: relative;
}

.login-box-body input:focus {
    background-color: rgba(255, 255, 255, 0.8);
}

.login-box-body input[name="username"] {
    border-radius: 4px 4px 0 0;
}

.form-control {
    position: relative;
}

.form-control:before {
    display: block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    position: absolute;
    z-index: 1;
    color: #555;
    top: 15px;
    left: 15px;
}

.form-control.username:before {
    content: "\f2c0";
}

.form-control.password:before {
    content: "\f084";
}

.login-box-body input[name="password"] {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) inset;
    border-radius: 0 0 4px 4px;
}

.login-box-body button {
    width: 100%;
    margin-top: 20px;
    font-family: "Source Sans Pro", sans-serif;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    color: #111;
    border-radius: 4px;
    padding: 10px;
    background-color: rgba(209, 12, 22, 0.8);
    cursor: pointer;
    outline: none;
    transition: background-color 0.15s;
    position: relative;
}

.login-box-body button:hover,
.login-box-body button:focus {
    background-color: #ca1a23;
}

.login-box-body button:active {
    transition: none;
    background-color: #a10911;
    transform: translateY(1px);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.login-box-body button:disabled {
    background-color: #7c6162;
}

.loader {
    overflow: auto;
    margin: 0 auto;
    font-size: 3px;
    position: relative;
    top: 50%;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(0, 0, 0, 0.2);
    border-right: 1.1em solid rgba(0, 0, 0, 0.2);
    border-bottom: 1.1em solid rgba(0, 0, 0, 0.2);
    border-left: 1.1em solid #000;
    -webkit-transform: translateY(-50%) translateZ(0);
    -ms-transform: translateY(-50%) translateZ(0);
    transform: translateY(-50%) translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.login-box-body button .loader {
    display: none;
    margin: 0;
    height: 15px;
    width: 15px;
    font-size: 3px;
    margin-bottom: -3px;
    margin-top: -3px;
    margin-left: -3px;
    margin-right: 6px;
    border-top-color: rgba(255, 255, 255, 0.2);
    border-right-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.2);
    border-left-color: #ffffff;
    position: absolute;
    left: 15px;
    top: 12px;
}

.loader,
.loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}

.login-box-body button:disabled .loader {
    display: inline-block;
}
