body {
    background: #ffffff;
}

/* =============================================
   SAFE: Login-specific styles only
   ============================================= */

/* Password reveal button (scoped to login form) */
#fm1 .reveal-password.btn {
    height: 100%;
    width: 48px;
    line-height: 1;
    min-height: unset;
    position: relative;
    bottom: 37px;          /* your inline style – safe here */
    float: right;
    border: none;
    box-shadow: none;
    background: transparent;
}

#fm1 .reveal-password .mdi-eye,
#fm1 .reveal-password-icon {
    font-size: 1.25rem;
    line-height: 1;
    vertical-align: middle;
    color: black;
}

/* Caps lock warning */
#capslock-on {
    display: none;         /* hidden by default – only shown via JS */
}

/* Hero image centering */
#heroimg {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;       /* prevent overflow */
}

/* Login section layout (your card/form wrapper) */
.login-section {
    border-right: 1px solid rgba(0, 0, 0, .2);
    border-right: var(--cas-theme-border-light, 1px solid rgba(0, 0, 0, .2));
    padding: 2rem 2.5rem;
    flex: 1 1 auto;
}

/* Mobile responsive */
@media screen and (max-width: 767.99px) {
    .login-section {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, .2);
        border-bottom: var(--cas-theme-border-light, 1px solid rgba(0, 0, 0, .2));
        padding: 0 1.5rem;
    }
}

/* Banner / alert styles (used in login errors) */
.banner {
    padding: 0.1rem 0.5rem;
    border: 1px solid rgba(0, 0, 0, .2);
    border-radius: 4px;
    position: relative;
}

.banner-primary {
    border-color: var(--cas-theme-primary, #153e50);
}
.card, .row {
    margin-top: 0 !important;
}

.banner-danger {
    border-color: var(--cas-theme-danger, #b00020);
}

.banner-warning {
    border-color: var(--cas-theme-warning, #e6a210);
}

/* Submit button (if not using MDC default) */
#fm1 input[type="submit"],
#fm1 button[type="submit"] {
    /* your custom submit styles here if any */
}

/* Footer help links (very safe) */
.text-center.small a {
    color: #257bb2;
}
.cas-footer {
    background-color: #f5f5f5 !important;
	color: #000000;
	padding: 24px 0;
    text-align: center;
    font-size: 16px;                /* slightly smaller if needed */
    line-height: 1.4;
}

main.container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* If the gap is caused by MDC fixed top bar adjustment */
.mdc-top-app-bar--fixed-adjust {
    padding-top: 0 !important;
}

.login-section,
.card,
main > .row {
    margin-top: 0 !important;
}