.login-pf body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(0, 14, 25, 0.3), rgba(0, 14, 25, 0.3)),
        url("../img/stata-pacs-backg03.png") no-repeat center center fixed;
    background-size: cover;
}

.pf-v5-c-login__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: min(calc(100% - 2rem), 500px);
    max-width: 500px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 1.25rem 0;
}

.pf-v5-c-login__header {
    width: 100%;
    margin: 0 0 2.75rem;
    padding: 0;
    text-align: center;
}

#kc-header-wrapper {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.75);
}

.pf-v5-c-login__main,
.pf-c-login__main,
.card-pf {
    width: 100%;
    max-width: 500px;
    border-top: 4px solid #1473e6;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

#stata-footer-link {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 1000;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    transform: translateX(-50%);
}

#stata-footer-link:hover,
#stata-footer-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .login-pf body {
        background-attachment: scroll;
    }

    #kc-header-wrapper {
        font-size: 1.5rem;
    }

    .pf-v5-c-login__container {
        width: min(calc(100% - 1.5rem), 500px);
        padding-top: 1rem;
    }

    .pf-v5-c-login__header {
        margin-bottom: 1.5rem;
    }
}
