#spw-pdf-analysis-result,
#spw-paper-scaling-warning,
#spw-pdf-proof {
    margin-top: 12px;
}

.spw-proof-wrap {
    margin-top: 16px;
}

.spw-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.spw-proof-tile {
    border: 1px solid #d0d0d0;
    background: #f3f3f3;
    padding: 10px;
    text-align: center;
    border-radius: 4px;
}

.spw-proof-page-bg {
    background: #e9e9e9;
    padding: 10px;
    border-radius: 3px;
}

.spw-proof-page-bg img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 0 1px #cfcfcf;
}

.spw-proof-page-label {
    font-size: 13px;
    margin-top: 6px;
}

.spw-message {
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.45;
}

.spw-message-success {
    border: 1px solid #46b450;
    background: #f0fff4;
}

.spw-message-error {
    border: 1px solid #dc3232;
    background: #fff5f5;
}

.spw-message-working {
    border: 1px solid #2271b1;
    background: #f0f6fc;
}

.spw-warning {
    margin: 12px 0;
    padding: 12px;
    border: 1px solid #dba617;
    background: #fff8e5;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.45;
}

.spw-transition-message {
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid #2271b1;
    background: #f0f6fc;
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.4;
}


/* Clean Archbishops portal login */

body .entry-title,
body h1.entry-title,
body .page-title {
    display: none !important;
}

body:has(.spw-login-page) .entry-content,
body:has(.spw-login-page) main,
body:has(.spw-login-page) article {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

.spw-login-page {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px 24px 42px;
    text-align: center;
}

.spw-login-main {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.spw-login-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-bottom: 18px;
    text-align: left;
}

.spw-login-school-logo {
    width: 92px;
    height: 92px;
    flex: 0 0 auto;
    display: inline-block;
    background: url("https://docs.thesustainableprintworks.co.uk/wp-content/themes/spw-print-portal-theme/assets/img/archbishops-logo-transparent.png") center / contain no-repeat;
    border-radius: 0;
}

.spw-login-kicker {
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #607066;
}

.spw-login-main h1 {
    margin: 0;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
    color: #1f2922;
}

.spw-login-subtitle {
    max-width: 620px;
    margin: 0 auto 26px;
    font-size: 21px;
    line-height: 1.48;
    color: #435047;
}

.spw-login-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 62px;
    padding: 0 42px;
    border-radius: 999px;
    background: #0072bc;
    color: #ffffff !important;
    font-size: 19px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 14px 30px rgba(0, 114, 188, 0.24);
}

.spw-login-primary-button:hover,
.spw-login-primary-button:focus {
    background: #005f9d;
    color: #ffffff !important;
}

.spw-login-admin-link {
    margin: 44px 0 0;
    font-size: 12px;
}

.spw-login-admin-link a {
    color: #607066;
    opacity: 0.42;
    text-decoration: underline;
}

.spw-login-admin-link a:hover,
.spw-login-admin-link a:focus {
    opacity: 1;
}

@media (max-width: 700px) {
    .spw-login-page {
        min-height: calc(100vh - 130px);
        padding: 54px 20px;
    }

    .spw-login-heading {
        display: block;
        text-align: center;
    }

    .spw-login-school-logo {
        margin: 0 auto 18px;
    }

    .spw-login-main h1 {
        font-size: 42px;
    }

    .spw-login-subtitle {
        font-size: 18px;
    }

    .spw-login-primary-button {
        width: 100%;
        max-width: 360px;
        padding: 0 22px;
        font-size: 17px;
    }
}
