body .standalone-auth-form {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 48px 22px;
    background:
        linear-gradient(90deg, rgba(5,9,16,0.88), rgba(17,27,41,0.72)),
        url('/assets/images/participation-hero.avif') center / cover no-repeat;
}

body .standalone-auth-box {
    width: min(620px, calc(100vw - 44px));
    background: rgba(255,251,244,0.97);
    border: 1px solid rgba(218,178,103,0.55);
    border-top: 6px solid #8e0710;
    box-shadow: 0 32px 80px rgba(0,0,0,0.38);
}

body .standalone-auth-box .crm-logo {
    content: url('/assets/images/crest.avif');
    display: block;
    width: 118px;
    height: 118px;
    object-fit: contain;
    margin: 0 auto 22px;
}

body .standalone-auth-box::before {
    content: "Officer Administration\A Priory of St. John the Baptist";
    display: block;
    white-space: pre-line;
    margin-bottom: 28px;
    color: #142033;
    font-family: Georgia, serif;
    font-size: 2rem;
    line-height: 1.12;
    text-align: center;
    letter-spacing: -0.03em;
}

body .standalone-auth-box::after {
    content: "Sovereign Military Order of the Temple of Jerusalem\A Authorized officers and administrators only.";
    display: block;
    white-space: pre-line;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid rgba(168,108,32,0.28);
    color: #4e5a68;
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: center;
}

body .standalone-auth-box crm-angular-js,
body .standalone-auth-box crm-login,
body .standalone-auth-box .crm-login,
body .standalone-auth-box form {
    display: block;
    width: 100%;
}

body .crm-login .input-wrapper {
    margin-bottom: 18px;
}

body .crm-login .form-label {
    display: block;
    margin-bottom: 6px;
    color: #8e0710;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body .crm-login .form-control {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid rgba(168,108,32,0.45);
    background: #fff;
    color: #142033;
    font: inherit;
    box-sizing: border-box;
}

body .crm-login .input-wrapper,
body .crm-login .login-or-forgot {
    width: 100%;
}

body .crm-login .form-control:focus {
    border-color: #8e0710;
    box-shadow: 0 0 0 3px rgba(142,7,16,0.12);
    outline: none;
}

body .crm-login .login-or-forgot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 8px;
}

body .crm-login .login-or-forgot a {
    order: 2;
    color: #4e5a68;
    font-size: 0.92rem;
    text-align: center;
}

body .crm-login .crm-button,
body .crm-login .btn-primary {
    order: 1;
    width: 100%;
    min-height: 50px;
    background: linear-gradient(180deg, #b20815, #7d050d);
    border: 1px solid rgba(218,178,103,0.55);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: 0 12px 24px rgba(0,0,0,0.22);
}

body .crm-login .crm-button:hover,
body .crm-login .btn-primary:hover {
    background: #6f040b;
}

@media (max-width: 640px) {
    body .standalone-auth-box {
        padding: 36px 24px;
    }

    body .standalone-auth-box::before {
        font-size: 1.55rem;
    }

    body .standalone-auth-box .crm-logo {
        width: 92px;
        height: 92px;
    }
}

#crm-container {
    padding: 0px;
}