/*
 * CAS8 compatibility layer for the existing INDS/ALRC visual theme.
 * Scope intentionally limited to login controls.
 */

/* CAS8 accessibility helper text must remain invisible visually. */
.sr-only,
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Our three compatibility icons. */
.cas8-compat-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    min-width: 22px;
    vertical-align: middle;
    margin-right: 5px;
    color: #000;
}

#loginProviders button .cas8-compat-icon {
    color: #fff;
    width: 23px;
    height: 23px;
    min-width: 23px;
}

.cas8-forgot-icon {
    margin-right: 3px;
}

/*
 * CAS8 may restore/autofill the password before MDC decides
 * whether its floating label should move. Keep it above the field.
 */
#passwordSection .mdc-floating-label--float-above {
    z-index: 2;
}

/* Final fix: prevent outlined border crossing Password floating label. */


/*
 * Forgot password already has its native CAS MDI icon:
 *   span.mdi.mdi-account-question
 * Hide only the extra SVG injected by cas8-compat.js.
 */
#pmlinks .cas8-forgot-icon {
    display: none !important;
}
