/* Shared footer on the help pages and FTP forms. */
.site-footer {
    box-sizing: border-box;
    height: 64px;
    min-height: 64px;
    padding: 8px 24px;
    border-top: 4px solid #2DC373;
    background: #004673;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    color: #fff;
    flex-shrink: 0;
}

.site-footer__copyright {
    margin: 0;
    color: #fff !important;
    font: 400 14px/1.5 "Nunito Sans", Arial, sans-serif;
}

.main-panel {
    display: flex;
    flex-direction: column;
}

.main-panel > .navbar {
    flex: 0 0 64px;
    min-height: 64px;
}

.main-panel > .content {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.main-panel > .content > .container-fluid {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.main-panel > .content > .container-fluid > .site-footer {
    margin: auto -30px -30px;
}

.main-panel > .content > .site-footer {
    margin: auto -15px -30px;
}

body.ftp-form-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.ftp-form-page .login-page {
    margin: 0 auto;
    padding-top: 2%;
}

body.ftp-form-page .pomoc {
    margin-bottom: 16px;
}

body.ftp-form-page > .site-footer {
    width: 100%;
    margin-top: auto;
}

body.ftp-form-page--embedded {
    min-height: 0;
    display: block;
}

body.ftp-form-page--embedded .login-page {
    width: min(360px, calc(100% - 24px));
    padding-top: 16px;
}

body.ftp-form-page--embedded .form {
    margin: 0 auto 16px;
}

@media (max-width: 600px) {
    .site-footer {
        justify-content: center;
        text-align: center;
    }
}
