/* This file is auto loaded by cas. */
@import "../../assets/core-4-1/css/core.css";
@import "/cas/css/uvicstyles-a2a3af0d5217dac49f86d244725cc963.css";
@import "/cas/css/uvicstylesie-cc5e1ceef2adfd9cdfcaa49bebc7b16a.css";

/* override cas.css lines 49–52 */
main a:visited, main a:active {
    /* we don't use visited or active link styles */
    /* must scope to main to to avoid white footer links */
    color: var(--bs-link-color);
}

/* added for  7.1.x */

/* override cas.css lines 33–35 and 930–932 */
body {
    /* CAS wants a fixed header and footer */
    /* We don't. */
    height: auto;
    min-height: 100vh;
    overflow-y: auto; /* -x already covered by core.css */
}

/* override cas.css */
.mdc-drawer-app-content {
    overflow: visible; /* don't show scrollbars */
}

/* hide 'proceed' button on interrupt page : not proceed to [netlink] button */
button[id="proceed"] {
    display:none;
}

dd {
    margin-left: revert;
}

/* override cas.css lines 82-84 */
div#content {
    /* CAS used this as a hack to join together multiple body "cards"; not needed with our layout */
    /* Preserved CAS id in case it's used by JS. Used in layout.html */
    box-shadow: none;
    padding: unset !important;
}

/* override above if #content is also an alert (error pages) */
div#content.alert {
    padding: var(--bs-alert-padding-y) var(--bs-alert-padding-x) !important;
}

h1.text-center {
    text-align: left !important;
}

label .mdc-notched-outline {
    display: inline;
    position: static;
}

label .mdc-notched-outline .mdc-floating-label {
    color: inherit;
    display: inline;
}

label.mdc-text-field.mdc-text-field--outlined {
    height: auto;
    padding: 0;
}

label.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading {
    display: none;
}

label.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__trailing {
    display: none;
}

.card {
    border: unset;
    box-shadow: unset;
    --bs-card-spacer-y: unset;
}

.fa-eye.mdi {
    width: 2rem;
}

/* set passphrase hide icon */
.fa-eye.mdi.mdi-eye-off::before {
    content: "\f070";
}

.mdc-button {
    border-radius: 6px;
    box-shadow: unset;
    height: unset;
    text-transform: unset;
}

.mdc-button--outline:not(:disabled, .reveal-password) {
    background-color: #005493;
    border-radius: 6px;
    filter: unset;
}

.mdc-button--raised:not(:disabled, .reveal-password) {
    background-color: #005493;
    border-radius: 6px;
    box-shadow: unset;
    filter: unset;
    text-transform: unset;
}

.mdc-button--raised:not(:disabled, .reveal-password):hover {
    background-color: #002754;
    border-radius: 6px;
    box-shadow: unset;
    text-transform: unset;
    transform: unset;
}

.mdc-button span.mdc-button__label {
    letter-spacing: 0
}

.mdc-card {
    box-shadow: unset;
}

.mdc-top-app-bar {
    position: relative;
    background-color: white;
}

.mdc-top-app-bar--fixed-adjust {
    padding-top: unset;
}

.mdc-notched-outline__leading {
    border: none;
}

.mdc-notched-outline__notch {
    border: none;
}

.mdc-notched-outline__trailing {
    border: none;
}

.mdc-text-field .mdc-floating-label {
    top: 90%;
}

.mdc-text-field__input {
    height: unset;
}

.mdc-text-field--outlined {
    ! height: unset;
}

/* remove shield icon from form heading and submit button */
.mdi-login::before {
    content: none;
}

.mdi.mdi-cog.fas.fa-cog:before {
    display:none;
}

/* for palantir edit dialog */
.modal.mdc-dialog--open {
    display: inherit;
    --bs-modal-width: inherit;
}

/* switch passphrase reveal to font awesome  */
.reveal-password-icon.mdi::before {
    font-size: 24px;
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
}

/* override cas.css lines 133, 134, and 912 */
.login-section {
    /* CAS wanted fixed-height horizontal cards, but we're using vertical sections */
    flex: 1 1 auto; /* don't need fixed height */
    padding-block: 0; /* remove vertical padding (but keep .row>* padding) */
    border-right: none; /* don't need horizontal separator */
}

/* remove gap between last uv-sect and footer */
.uv-sect:last-child {
    margin-bottom: -1.5rem !important; /* overrides core.css *>:last-child */
}

/* remove gap above the first uv-sect */
#alert--container + .uv-sect {
    margin-top: -1.5rem; /* negate #main-content.py-4 padding-top */
}

/* undo inline styling on protocol/oidc/confirm.html's "Scopes" header */
#scopes h3 {
    background: none !important;
    border-bottom: none !important;
    padding: 0 !important;
}
