body {
    margin: 0;
    background: rgb(249, 249, 249) url(/config/loginimage) no-repeat top/cover;
"
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
    /* Background image looks weird in portrait mode on small screens. Disable it. */
    body {
        background: rgb(249, 249, 249);
    }
}

#banner {
    width: 100%;
    background: #3f2565;
    height: 51px;
    padding: 9px 20px;
}

/* Main content. Changes layout depending on size. */
#flex-content {
    margin: 0;
    padding: 50px;
}

#flex-content > div {
    margin: 0;
    justify-content: center;
}

@media screen and (min-width: 768px) and (max-width: 1280px) {
    #flex-content {
        padding: 100px;
    }
}

@media screen and (min-width: 1280px) and (max-width: 1920px) {
    #flex-content {
        padding: 160px;
    }
}

@media screen and (min-width: 1920px) {
    #flex-content {
        padding: 260px 320px 260px 320px;
    }
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
    #flex-content {
        margin: auto;
    }
}

/* Main content. Centered alternative. */
#center-content {
    margin: 0;
    padding: 100px;
    width: 100%;
}

#center-content > div {
    margin: 0;
    justify-content: center;
}


#login-alert {
    padding: 12px 28px 12px 28px;
}

.white-box {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
    .white-box {
        width: 95%
    }
}

#error-box {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.flex-btn {
    color: #fff;
    background-color: #7c6899;
    border-color: #3f2565;
    padding: 24px;
    margin: 12px 0 12px 0;
    height: auto;
    width: 100%;
    background-clip: padding-box;
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
    .flex-btn {
        margin: 24px 0 24px 0;
        padding: 36px;
    }
}

