/*
 * preloader.css
 *
 * Updated: Oct 6, 2016
 *
 * Copyright (c) 2016, CodeMettle
 */
.preloader {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background: #e0e0e0; /* Old browsers */
    width: 100%;
    height: 100vh;
}

.motd {
    font-family: 'Roboto', sans-serif;
    font-size: medium;
    color: #333;
    margin: 5px;
}

.loading-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    border-radius: 4px;
    animation: loading 1s ease-in-out infinite;
}
.loading-bar:nth-child(1) {
    background-color: #3498db;
    animation-delay: 0;
}
.loading-bar:nth-child(2) {
    background-color: #27ae60;
    animation-delay: 0.09s;
}
.loading-bar:nth-child(3) {
    background-color: #f1c40f;
    animation-delay: .18s;
}
.loading-bar:nth-child(4) {
    background-color: #c0392b;
    animation-delay: .27s;
}

@keyframes loading {
    0% {
        transform: scale(1);
    }
    20% {
        transform: scale(1, 2.2);
    }
    40% {
        transform: scale(1);
    }
}

.bottom-bar {
    height: 72px;
    width: 100%;
    position: fixed;
    bottom: 0px;
    background: rgb(38, 50, 56);
}

.top-bar {
    height: 50px;
    width: 100%;
    position: fixed;
    top: 0;
    background: rgb(38, 50, 56);
}

.fade_in {
    opacity: 0;
    transition: opacity 1s;
    transition-timing-function: ease;
}

.login-form-card {
    width: 500px;
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-height: 300px;
    max-height: 100%;
    overflow-y: auto;
}

.login-form-container {
    flex: 0 0 auto;
    width: 264px;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* for smaller media or windows, place the login card in a more-centered location */
@media (max-height: 1000px) {
    .login-form-card {
        top: calc(30% + 100px);
    }
}

@media (max-height: 500px) {
    .login-form-card {
        top: 50%;
    }
}

@media (max-width: 550px) {
    .login-form-card {
        width: 288px;
        top: 50%;
    }
}
