:root {
    --cas-theme-primary: #c90046;
    --cas-theme-primary-light: #a7003b;
    --mdc-theme-primary: #c90046;
    --cas-theme-button-bg-hover: #a7003b;
    --bs-primary: #c90046;
    --bs-primary-rgb: 201, 0, 70;
    --foi-ink: #27232c;
    --foi-muted: #716b76;
    --foi-surface: #f7f6f3;
}

body {
    min-height: 100vh;
    height: auto;
    background: var(--foi-surface);
    color: var(--foi-ink);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    overflow-y: auto;
}

body .bgimage {
    background-image: none;
}

#app-bar,
#app-bar nav {
    background: var(--foi-surface) !important;
    box-shadow: none !important;
    color: var(--foi-muted);
}

#app-bar {
    position: relative;
}

#app-bar .mdc-top-app-bar__row {
    height: auto;
    min-height: 64px;
}

#app-bar #languageSelector {
    width: 76px;
    min-width: 0;
    max-width: none;
    flex-shrink: 0;
    height: 42px;
    padding: 8px 10px;
    border: 1px solid #dedbe0;
    border-radius: 10px;
    background: #fff;
    color: var(--foi-ink);
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    appearance: auto;
}

#app-bar nav > .container-fluid {
    width: min(100%, 1240px);
    padding: 22px 32px;
    box-sizing: border-box;
}

#app-bar .mdc-top-app-bar__section--align-start {
    display: none;
}

#app-bar .mdc-top-app-bar__section {
    flex: 0 1 auto;
    padding: 0;
}

#app-bar .mdc-top-app-bar__section--align-end {
    margin-left: auto;
    gap: 16px;
}

#app-bar #cas-logo {
    width: 320px;
    max-width: 100%;
    height: 62px;
    object-fit: contain;
}

#app-bar .cas-notification-toggle {
    color: var(--foi-muted);
    border-color: #dedbe0;
    border-radius: 12px;
}

.foi-launcher {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #dedbe0;
    border-radius: 12px;
    color: var(--foi-muted);
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.foi-launcher:hover {
    background: #fff;
    color: #c90046;
}

body.login .mdc-top-app-bar--fixed-adjust {
    padding-top: 0;
    overflow: visible;
}

body.login #main-content {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 58px 32px 32px !important;
    box-sizing: border-box;
}

body.login #content {
    box-shadow: none;
}

.foi-login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
    align-items: start;
    gap: 80px;
}

.foi-intro {
    padding-top: 30px;
    min-width: 0;
}

.foi-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 2px;
    color: #837583;
}

.foi-intro h1 {
    margin: 22px 0;
    font-size: clamp(42px, 4.5vw, 64px);
    line-height: 1.08;
    letter-spacing: -3px;
    font-weight: 650;
}

.foi-intro h1 em {
    color: #c90046;
    font-style: normal;
}

.foi-intro-description {
    max-width: 360px;
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--foi-muted);
}

.foi-identity-art {
    position: relative;
    width: 100%;
    max-width: 410px;
    height: 270px;
    margin-top: 20px;
    isolation: isolate;
}

.foi-art-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(#d9d3d7 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: radial-gradient(ellipse, #000 25%, transparent 70%);
}

.foi-art-orbit {
    position: absolute;
    left: 50%;
    top: 46%;
    border: 1px solid #dfd5db;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.foi-art-orbit-outer {
    width: 238px;
    height: 238px;
}

.foi-art-orbit-inner {
    width: 176px;
    height: 176px;
    border-style: dashed;
}

.foi-art-core {
    position: absolute;
    left: 50%;
    top: 46%;
    display: grid;
    place-content: center;
    width: 110px;
    height: 110px;
    transform: translate(-50%, -50%) rotate(-8deg);
    border: 1px solid #fff;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 12px 40px #73234512, inset 0 0 0 6px #fbf8f9;
    color: #c90046;
    font-size: 42px;
    font-weight: 750;
    letter-spacing: -3px;
}

.foi-art-core > span {
    position: absolute;
    right: 14px;
    top: 10px;
    font-size: 19px;
    color: #e5a719;
}

.foi-art-node {
    position: absolute;
    display: grid;
    place-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #e7dfe4;
    border-radius: 16px;
    background: #fff;
    color: #9b4262;
    box-shadow: 0 4px 12px #39243405;
}

.foi-art-node i::before {
    font-size: 23px;
}

.foi-art-node-top {
    left: calc(50% - 84px);
    top: 5px;
}

.foi-art-node-right {
    right: calc(50% - 142px);
    top: 108px;
    color: #99751f;
}

.foi-art-node-bottom {
    left: calc(50% - 108px);
    top: 190px;
    color: #486f70;
}

.foi-art-caption {
    position: absolute;
    bottom: 0;
    left: 50%;
    white-space: nowrap;
    transform: translateX(-50%);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #968b92;
}

.foi-intro-footnote {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 24px;
    font-size: 12px;
    color: #817881;
}

.foi-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #718b80;
    box-shadow: 0 0 0 4px #718b8012;
}

.foi-login-card {
    min-width: 0;
    width: 100%;
    max-width: none;
    border: 1px solid #e8e3e5;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 64px -30px #3d18372b;
    overflow: hidden;
}

.foi-login-card #loginForm {
    min-width: 0;
    padding: 36px;
    border: 0;
}

.foi-login-heading {
    margin-bottom: 10px;
}

.foi-signin-icon {
    display: grid;
    place-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 24px;
    border: 1px solid #f2dfe7;
    border-radius: 14px;
    background: #fcf1f5;
    color: #c90046;
}

.foi-signin-icon::before {
    font-size: 22px;
}

.foi-login-heading h2 {
    margin: 8px 0 0;
    font-size: 30px;
    font-weight: 650;
    letter-spacing: -1px;
    line-height: 1.25;
}

.foi-login-card #fm1 > #login-form-controls > h2 {
    margin: 0 0 24px;
    text-align: left !important;
    color: var(--foi-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.foi-login-card #usernameSection,
.foi-login-card #passwordSection {
    margin: 18px 0 !important;
}

.foi-login-card .mdc-text-field {
    width: 100%;
    min-width: 0;
    border-radius: 9px;
}

.foi-login-card .mdc-text-field__input {
    min-width: 0;
    font-family: inherit;
    font-size: 15px;
}

.foi-login-card .mdc-notched-outline__leading {
    border-radius: 9px 0 0 9px;
}

.foi-login-card .mdc-notched-outline__trailing {
    border-radius: 0 9px 9px 0;
}

.foi-login-card .mdc-floating-label {
    font-size: 14px;
}

.foi-username-field {
    position: relative;
}

.foi-username-field #username {
    padding-right: 78px;
}

.foi-username-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #837883;
    font-size: 13px;
    pointer-events: none;
}

.foi-login-card .reveal-password {
    background: transparent !important;
    color: #817481 !important;
    border-radius: 0 9px 9px 0;
    box-shadow: none;
}

.mdc-input-group-field:has(input[name="token"]) {
    min-width: 0;
    flex: 1 1 auto;
}

.mdc-input-group-field:has(input[name="token"]) .mdc-text-field {
    width: 100%;
    min-width: 0;
}

.mdc-input-group:has(input[name="token"]) .reveal-password {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start !important;
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 56px;
    margin: 0;
    padding: 0 !important;
    overflow: hidden;
    border: 0;
    border-radius: 0 9px 9px 0;
    background: transparent !important;
    color: var(--foi-muted) !important;
    box-shadow: none !important;
    transform: none !important;
}

.mdc-input-group:has(input[name="token"]) .reveal-password:hover {
    background: #fcf1f5 !important;
    color: #c90046 !important;
}

.mdc-input-group:has(input[name="token"]) .reveal-password:focus-visible {
    outline: 3px solid #c90046;
    outline-offset: 2px;
}

.mdc-input-group:has(input[name="token"]) .reveal-password > .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);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.foi-login-card #submitBtn {
    width: 100%;
    min-height: 50px;
    padding: 12px 20px;
    margin: 4px 0 0;
    border: 1px solid #c90046;
    border-radius: 9px;
    background: #c90046;
    box-shadow: 0 3px 8px #c9004617;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    filter: none;
    transition: background-color 150ms ease;
}

.foi-login-card #submitBtn:hover {
    background: #a7003b;
    transform: none;
    box-shadow: 0 3px 8px #c9004617;
}

.foi-login-card #submitBtn:focus-visible {
    outline: 3px solid #edafc5;
    outline-offset: 3px;
    transform: none;
}

.foi-login-card #submitBtn:disabled {
    opacity: .65;
    cursor: wait;
}

.foi-login-card #submitBtn > i,
.foi-login-card #fm1 > #login-form-controls > h2 > i {
    display: none;
}

.foi-login-card #submitBtn::before,
.foi-login-card #submitBtn::after {
    content: none;
}

.foi-login-card #termsOfUse {
    margin: 20px 0 !important;
    color: var(--foi-muted);
    font-size: 12px;
    line-height: 1.6;
}

.foi-login-card a,
.cas-footer a {
    color: #8f3455;
    text-underline-offset: 3px;
}

.foi-login-card hr {
    height: 1px;
    border: 0;
    background: #eee9ed;
}

.foi-login-card #pmlinks {
    font-size: 12px;
}

.foi-login-card #loginErrorsPanel {
    padding: 14px;
    border: 1px solid #edb9c9;
    border-radius: 9px;
    background: #fff2f5;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.5;
}

.foi-login-card #loginErrorsPanel h2 {
    font-size: 15px;
}

.foi-login-notices {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--foi-muted);
}

.foi-login-notices summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    color: #605561;
    font-weight: 500;
}

.foi-login-notices summary::-webkit-details-marker {
    display: none;
}

.foi-login-notices summary > .mdi {
    transition: transform 150ms ease;
}

.foi-login-notices details[open] summary > .mdi {
    transform: rotate(180deg);
}

.foi-notices-content {
    padding-top: 16px;
}

.foi-notices-content p {
    margin-bottom: 12px;
}

.foi-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid #eee9ed;
    font-size: 11px;
    color: #827684;
}

.foi-card-footer > span::before {
    font-size: 15px;
}

#casFooter {
    display: flex !important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 28px 24px !important;
    background: var(--foi-surface);
    color: #877d87;
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
}

#casFooter #poweredBy {
    padding: 0 !important;
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid #c90046;
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .foi-login-layout {
        gap: 36px;
        grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    }

    .foi-intro h1 {
        font-size: 46px;
        letter-spacing: -2px;
    }
}

@media (max-width: 780px) {
    #app-bar nav > .container-fluid {
        padding: 18px 24px;
    }

    body.login #main-content {
        max-width: 520px;
        padding: 28px 24px !important;
    }

    .foi-login-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .foi-intro {
        padding-top: 0;
    }

    .foi-intro h1 {
        margin: 14px 0;
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .foi-intro-description {
        max-width: none;
        font-size: 14px;
    }

    .foi-identity-art,
    .foi-intro-footnote {
        display: none;
    }

    .foi-login-card #loginForm {
        padding: 28px;
    }
}

@media (max-width: 600px) {
    #app-bar nav > .container-fluid {
        flex-wrap: wrap;
        row-gap: 14px;
    }

    #app-bar .mdc-top-app-bar__section--align-end {
        flex-basis: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 440px) {
    #app-bar nav > .container-fluid {
        padding: 16px 20px;
    }

    #app-bar #cas-logo {
        width: min(230px, 62vw);
        height: auto;
    }

    #app-bar .mdc-top-app-bar__section--align-end {
        gap: 6px;
    }

    .foi-launcher {
        width: 34px;
        height: 34px;
    }

    body.login #main-content {
        padding: 24px 16px !important;
    }

    .foi-login-card #loginForm {
        padding: 24px;
    }

    .foi-intro {
        padding: 0 8px;
    }

    .foi-card-footer {
        font-size: 10px;
    }
}

@media (min-width: 781px) and (max-height: 900px) {
    body.login #app-bar nav > .container-fluid {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.login #app-bar #cas-logo {
        width: 280px;
        height: 54px;
    }

    body.login #main-content {
        padding-top: 16px !important;
        padding-bottom: 16px !important;
    }

    .foi-intro {
        padding-top: 16px;
    }

    .foi-intro h1 {
        margin: 16px 0;
        font-size: 44px;
        letter-spacing: -2px;
    }

    .foi-identity-art {
        display: none;
    }

    .foi-login-card #loginForm {
        padding: 12px 30px;
    }

    .foi-signin-icon {
        display: none;
    }

    .foi-login-heading h2 {
        font-size: 26px;
    }

    .foi-login-card #fm1 > #login-form-controls > h2 {
        margin-bottom: 12px;
    }

    .foi-login-card #usernameSection,
    .foi-login-card #passwordSection {
        margin: 8px 0 !important;
    }

    .foi-login-card #termsOfUse {
        margin: 12px 0 !important;
    }

    .foi-login-notices {
        margin-top: 12px;
    }

    .foi-login-notices summary > .mdi {
        font-size: 20px;
        line-height: 20px;
    }

    .foi-login-card hr.my-4 {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }

    .foi-card-footer {
        margin-top: 16px;
        padding-top: 12px;
    }

    body.login #casFooter {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

@media (min-width: 781px) and (max-height: 640px) {
    body.login #app-bar nav > .container-fluid {
        padding-top: 6px;
        padding-bottom: 6px;
    }

    body.login #app-bar #cas-logo {
        width: 240px;
        height: 46px;
    }

    body.login #main-content {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .foi-login-card #loginForm {
        padding: 8px 24px;
    }

    .foi-login-heading h2 {
        margin-top: 4px;
    }

    .foi-card-footer {
        margin-top: 12px;
        padding-top: 8px;
    }

    body.login #casFooter {
        padding-top: 6px !important;
        padding-bottom: 6px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .fade-in {
        animation: none;
    }

    .foi-launcher,
    .foi-login-card #submitBtn,
    .foi-login-notices summary > .mdi {
        transition: none;
    }
}
