@font-face {
    font-family: "NoirPro";
    src: url("/oidc/assets/fonts/noir-pro/NoirPro-Light.eot?#iefix") format("embedded-opentype"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Light.woff") format("woff"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "NoirPro";
    src: url("/oidc/assets/fonts/noir-pro/NoirPro-Regular.eot?#iefix") format("embedded-opentype"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Regular.woff") format("woff"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "NoirPro";
    src: url("/oidc/assets/fonts/noir-pro/NoirPro-Medium.eot?#iefix") format("embedded-opentype"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Medium.woff") format("woff"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "NoirPro";
    src: url("/oidc/assets/fonts/noir-pro/NoirPro-SemiBold.eot?#iefix") format("embedded-opentype"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-SemiBold.woff") format("woff"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: "NoirPro";
    src: url("/oidc/assets/fonts/noir-pro/NoirPro-Bold.eot?#iefix") format("embedded-opentype"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Bold.woff") format("woff"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "NoirPro";
    src: url("/oidc/assets/fonts/noir-pro/NoirPro-Heavy.eot?#iefix") format("embedded-opentype"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Heavy.woff") format("woff"),
         url("/oidc/assets/fonts/noir-pro/NoirPro-Heavy.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
}

:root {
    --font-family: "NoirPro", Arial, sans-serif;
    --primary-color: #632CFF;
    --surface-color: #ffffff;
    --border-color: #d9e1ec;
    --text-color: #16324f;
    --muted-color: #66788a;
    --danger-color: #ff304f;
    --success-color: #598F35;
    --page-background: #f2f5fb;
    --hero-image: none;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-family);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--text-color);
    background: var(--page-background);
}

.shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 12px;
}

.login {
    width: min(360px, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand {
    display: inline-flex;
    margin-bottom: 28px;
}

.card {
    width: 100%;
    background: var(--surface-color);
    border-radius: 10px;
    box-shadow: rgba(89, 143, 53, 0.176) 0px 0.5rem 1.25rem;
    overflow: hidden;
}

.hero {
    min-height: 200px;
    padding: 24px;
    background-color: var(--primary-color);
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.logo {
    max-width: 200px;
    max-height: 56px;
    object-fit: contain;
}

.content {
    padding: 16px 24px 24px;
}

.title {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 400;
}

.form {
    display: grid;
    gap: 0;
}

.form-content {
    display: grid;
    gap: 12px;
}

.field {
    position: relative;
}

.field.is-invalid .label {
    color: var(--danger-color);
}

.field.is-invalid .outline {
    border-color: var(--danger-color);
}

.field-control {
    font-size: 0.875rem;
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.4375em;
    color: rgb(71, 82, 89);
    box-sizing: border-box;
    cursor: text;
    display: inline-flex;
    align-items: center;
    width: 100%;
    position: relative;
    border-radius: 4px;
}

.label {
    color: rgb(133, 149, 166);
    font-size: 0.875rem;
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.4375em;
    display: block;
    transform-origin: left top;
    text-overflow: ellipsis;
    max-width: calc(100% - 24px);
    position: absolute;
    left: 0;
    top: 0;
    transform: translate(14px, 16px) scale(1);
    z-index: 1;
    pointer-events: none;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    transition: color 200ms cubic-bezier(0, 0, 0.2, 1),
        transform 200ms cubic-bezier(0, 0, 0.2, 1),
        max-width 200ms cubic-bezier(0, 0, 0.2, 1);
}

.input {
    font: inherit;
    letter-spacing: inherit;
    color: currentColor;
    border: 0;
    outline: 0;
    box-sizing: content-box;
    background: none;
    height: 1.4375em;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
    display: block;
    min-width: 0;
    width: 100%;
    animation-name: mui-auto-fill-cancel;
    animation-duration: 10ms;
    padding: 16.5px 14px;
    line-height: 1.4375em;
    font-size: 14px;
    font-family: inherit;
    color: rgb(71, 82, 89);
    position: relative;
    z-index: 1;
}

.input::placeholder {
    color: transparent;
    opacity: 1;
}

.input:focus {
    outline: none;
}

.input:-webkit-autofill,
.input:-webkit-autofill:hover,
.input:-webkit-autofill:focus,
.input:-webkit-autofill:active {
    -webkit-text-fill-color: rgb(71, 82, 89);
    transition: background-color 9999s ease-in-out 0s;
    box-shadow: 0 0 0 1000px transparent inset;
    caret-color: rgb(71, 82, 89);
}

.outline {
    text-align: left;
    position: absolute;
    inset: -5px 0 0;
    margin: 0;
    padding: 0 8px;
    pointer-events: none;
    border-radius: inherit;
    border-style: solid;
    border-width: 1px;
    overflow: hidden;
    min-width: 0%;
    border-color: rgba(0, 0, 0, 0.23);
    transition: border-color 200ms cubic-bezier(0, 0, 0.2, 1), border-width 200ms cubic-bezier(0, 0, 0.2, 1);
}

.outline-legend {
    visibility: hidden;
    max-width: 0.01px;
    height: 11px;
    font-size: 0.75rem;
    transition: max-width 50ms cubic-bezier(0, 0, 0.2, 1);
    white-space: nowrap;
    padding: 0;
}

.outline-legend span {
    display: inline-block;
    padding-left: 5px;
    padding-right: 5px;
}

.input:not(:placeholder-shown) ~ .label {
    top: 0;
    transform: translate(14px, -9px) scale(0.75);
    max-width: calc(133% - 32px);
    pointer-events: auto;
    user-select: none;
}

.field:focus-within .label {
    color: var(--primary-color);
    top: 0;
    transform: translate(14px, -9px) scale(0.75);
    max-width: calc(133% - 32px);
    pointer-events: auto;
    user-select: none;
}

.field:focus-within .outline {
    border-color: var(--primary-color);
}

.field.is-invalid:focus-within .label {
    color: var(--danger-color);
}

.field.is-invalid:focus-within .outline {
    border-color: var(--danger-color);
}

.input:-webkit-autofill ~ .label {
    top: 0;
    transform: translate(14px, -9px) scale(0.75);
    max-width: calc(133% - 32px);
    pointer-events: auto;
    user-select: none;
}

.input:-webkit-autofill ~ .outline {
    border-color: rgba(0, 0, 0, 0.23);
}

.field.is-invalid .input:-webkit-autofill ~ .outline {
    border-color: var(--danger-color);
}

.input:-webkit-autofill ~ .outline .outline-legend {
    max-width: 100%;
}

.field:focus-within .outline-legend,
.input:not(:placeholder-shown) ~ .outline .outline-legend {
    max-width: 100%;
}

.button {
    width: 100%;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 13px 18px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 15px;
    line-height: 1.75;
    font-weight: 400;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 1px -2px, rgba(0, 0, 0, 0.14) 0px 2px 2px 0px, rgba(0, 0, 0, 0.12) 0px 1px 5px 0px;
}

.button-secondary {
    background: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

.alert {
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.content > .alert {
    margin-bottom: 12px;
}

.alert.error {
    background: rgba(179, 38, 30, 0.08);
    color: var(--danger-color);
}

.login-failure {
    margin-top: 2px;
    color: #6b2e2e;
}

.alert.success {
    background: rgba(89, 143, 53, 0.1);
    color: var(--success-color);
}

.errors {
    margin: 4px 0 0;
    padding-left: 14px;
    color: var(--danger-color);
    font-size: 0.9rem;
}

.errors:empty {
    display: none;
}

.errors-live {
    padding-left: 0;
}

.actions {
    margin-top: 12px;
}

.links {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

.language-selector {
    position: relative;
    display: inline-flex;
}

.language-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.language-flag,
.language-option-flag {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: block;
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    display: grid;
    min-width: 182px;
    max-width: min(260px, calc(100vw - 24px));
    max-height: min(320px, calc(100vh - 24px));
    overflow-y: auto;
    padding: 8px 0;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    z-index: 20;
}

.language-selector.align-right .language-menu {
    left: auto;
    right: 0;
}

.language-selector.opens-up .language-menu {
    top: auto;
    bottom: calc(100% + 10px);
}

.language-menu[hidden] {
    display: none;
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border: 0;
    background: #ffffff;
    color: #223650;
    font: inherit;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
}

.language-option:hover {
    background: #f4f7fb;
}

.links-error {
    justify-content: center;
    margin-top: 20px;
}

.error-page .brand {
    margin-bottom: 28px;
}

.error-card .hero {
    min-height: 160px;
}

.error-content {
    display: grid;
    gap: 18px;
}

.error-content .note {
    margin-top: 0;
}

.error-content .link {
    justify-self: start;
}

.copyright {
    margin-top: 20px;
    text-align: center;
    color: #34455d;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.note {
    margin-top: 22px;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.subtitle {
    margin: 0 0 20px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

.consent-page {
    width: min(480px, 100%);
}

.consent-hero {
    min-height: 160px;
}

.consent-content {
    padding-top: 24px;
}

.consent-intro {
    margin: 0 0 20px;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
}

.access-summary {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--page-background);
    border-color: color-mix(in srgb, var(--primary-color) 22%, transparent);
    background-color: color-mix(in srgb, var(--primary-color) 7%, white);
}

.access-summary-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--primary-color);
}

.access-summary-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.access-summary h2,
.requested-access h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.access-summary p,
.requested-access-intro,
.scope-copy p {
    margin: 4px 0 0;
    color: var(--muted-color);
    font-size: 0.9rem;
    line-height: 1.45;
}

.scope-list {
    display: grid;
    gap: 0;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.scope-item {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--surface-color);
}

.scope-item + .scope-item {
    border-top: 1px solid var(--border-color);
}

.scope-check {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
}

.scope-copy {
    min-width: 0;
}

.scope-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
}

.scope-heading strong {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.scope-heading code {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--page-background);
    color: var(--muted-color);
    font-family: var(--font-family);
    font-size: 0.72rem;
}

.consent-note {
    margin: 18px 0;
    color: var(--muted-color);
    font-size: 0.85rem;
    line-height: 1.45;
}

.consent-form + .consent-form {
    margin-top: 10px;
}

.consent-links {
    margin-top: 24px;
}

@keyframes mui-auto-fill-cancel {
    from {
        display: block;
    }
}

@media (max-width: 420px) {
    .content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .access-summary {
        padding: 14px;
    }
}
