:root {
    --button-color: #000000;
    --button-hover-color: #212121;
}

/* 1. Force the background color and remove all default images */
html, body.login-pf, .login-pf body {
    background-color: #efeff4 !important;
    background-image: none !important;
}

/* 2. Style the Login Box Card for visibility */
.card-pf, .login-pf .card-pf, .pf-v5-c-card {
    border-top: 4px solid #000000 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

/* 3. The Login Button - High specificity targeting PatternFly 5 (Keycloak 26) */
#kc-login,
button.pf-v5-c-button.pf-m-primary,
.pf-c-button.pf-m-primary,
button[name="login"] {
    background-color: var(--button-color) !important;
    background-image: none !important;
    color: #ffffff !important;
    font-size: 16px !important;
    border: none !important;
    border-radius: 8px !important; /* User requested 8px */
    cursor: pointer !important;
    padding: 9px 16px !important; /* User requested 9px 16px */
    transition: all 0.2s ease !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-shadow: none !important;
    width: 100% !important;
}

#kc-login:hover,
button.pf-v5-c-button.pf-m-primary:hover,
.pf-c-button.pf-m-primary:hover {
    background-color: var(--button-hover-color) !important;
    transform: translateY(-1px) !important;
}

/* 4. Header: show the TellusR logo in place of the realm name.
   login.css colours that text near-white for Keycloak's dark background
   image, which we replace with a light one above, so we hide the text and
   paint the logo instead. logo.svg is filled with --button-color (#000000);
   change both together if the button colour ever changes. */
#kc-header-wrapper {
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;   /* login.css sets 3px, which still adds width
                                       to the hidden text and pushes the logo off-centre */
    padding: 40px 10px 24px !important;
}

#kc-header-wrapper::before {
    content: "";
    display: inline-block;
    width: 160px;
    height: 36px;
    background: url("../img/logo.svg") no-repeat center center;
    background-size: contain;
}
