@font-face {
    font-family: "Fira Sans";
    src: url("../fonts/FiraSans-Light.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Fira Sans";
    src: url("../fonts/FiraSans-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Fira Sans";
    src: url("../fonts/FiraSans-Medium.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

:root {
    --onestop-blue: #324563;
    --onestop-magenta: #941b4d;
    --onestop-ink: #343a52;
    --onestop-muted: #627084;
    --onestop-focus: #941b4d;
}

html,
html.login-pf {
    min-height: 100%;
    font-size: 16px;
    background: #f4f6fa;
}

body,
.login-pf body {
    margin: 0;
    color: var(--onestop-ink);
    background: radial-gradient(ellipse at 50% 0, #e8edf5, transparent 65%), #f4f6fa;
    font-family: "Fira Sans", Arial, sans-serif;
    font-weight: 400;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.login-pf-page {
    display: flex;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0;
}

#kc-header {
    display: none;
}

/* Use Keycloak's footer extension without copying its authentication layout. */
.login-pf-page .card-pf {
    display: grid;
    flex: 1;
    grid-template-columns: minmax(20px, 1fr) minmax(0, 600px) minmax(20px, 1fr);
    grid-template-rows: auto auto minmax(56px, 1fr) auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(32px, 6vh, 72px) 0 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.login-pf-page .card-pf::before {
    grid-area: 1 / 2 / 3 / 3;
    content: "";
    border: 1px solid #e0e5ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 48px rgb(28 47 76 / 9%);
}

.card-pf > .login-pf-header {
    position: relative;
    grid-area: 1 / 2 / 2 / 3;
    min-width: 0;
    margin: 0;
    padding: 54px 44px 0;
    text-align: center;
}

#kc-page-title {
    margin: 0;
    color: var(--onestop-blue);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 500;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

#kc-content {
    position: relative;
    grid-area: 2 / 2 / 3 / 3;
    min-width: 0;
    padding: 20px 44px 30px;
}

.onestop-login-provider {
    margin-bottom: 30px;
    text-align: center;
}

.onestop-login-provider > p:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0 0 7px;
    color: var(--onestop-muted);
    font-size: .875rem;
}

.onestop-login-provider img {
    width: 140px;
    height: auto;
    filter: brightness(0);
    opacity: .8;
}

.onestop-tagline {
    margin: 0;
    color: var(--onestop-muted);
    font-size: .9rem;
    font-weight: 300;
    line-height: 1.5;
}

.login-pf-page .form-group {
    margin-bottom: 20px;
}

.login-pf-page label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--onestop-ink);
    font-size: .925rem;
    font-weight: 500;
}

.login-pf-page .pf-c-form-control,
.login-pf-page .form-control {
    min-height: 50px;
    padding: 11px 14px;
    border: 1px solid #bfc9d6;
    border-radius: 7px;
    color: var(--onestop-ink);
    background: #fff;
    font-size: 1rem;
    box-shadow: none;
}

.login-pf-page .pf-c-form-control:focus,
.login-pf-page .form-control:focus {
    border-color: var(--onestop-blue);
    box-shadow: 0 0 0 3px rgb(50 69 99 / 12%);
}

.login-pf-page .pf-c-input-group {
    border-radius: 7px;
}

.login-pf-page .pf-c-input-group .pf-c-form-control {
    border-radius: 7px 0 0 7px;
}

.login-pf-page .pf-c-input-group .pf-c-button {
    min-width: 46px;
    border: 1px solid #bfc9d6;
    border-left: 0;
    border-radius: 0 7px 7px 0;
    color: var(--onestop-muted);
    background: #fff;
}

.login-pf-page .pf-c-button::after {
    border: 0;
}

.login-pf-page .pf-c-button.pf-m-primary {
    min-height: 50px;
    padding: 12px 22px;
    border: 0;
    border-radius: 7px;
    color: #fff;
    background: var(--onestop-magenta);
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgb(148 27 77 / 12%);
    transition: background-color 160ms ease;
}

.login-pf-page .pf-c-button.pf-m-primary:hover {
    background: #78163e;
}

.login-pf a {
    color: var(--onestop-magenta);
    text-decoration: none;
}

.login-pf a:hover {
    text-decoration: underline;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid var(--onestop-focus);
    outline-offset: 3px;
}

#kc-form-options .checkbox {
    margin: 0;
}

#kc-form-options label {
    font-size: .875rem;
    font-weight: 400;
}

#kc-form-options input[type="checkbox"] {
    accent-color: var(--onestop-magenta);
}

#kc-form-options + div {
    font-size: .875rem;
}

#kc-form-buttons {
    margin-bottom: 0;
}

#input-error,
.pf-c-form__helper-text.pf-m-error {
    display: block;
    margin-top: 8px;
    color: #a51b35;
    font-size: .875rem;
}

.onestop-sso-notice {
    position: relative;
    margin-top: 24px;
    padding: 18px 20px 18px 56px;
    border: 1px solid #dde5ee;
    border-radius: 9px;
    background: #f4f7fb;
}

.onestop-new {
    position: absolute;
    top: 20px;
    left: 14px;
    padding: 3px 5px;
    border-radius: 4px;
    color: #fff;
    background: var(--onestop-blue);
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.onestop-sso-notice h2 {
    margin: 0 0 5px;
    color: var(--onestop-blue);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.onestop-sso-notice p {
    margin: 0;
    color: var(--onestop-muted);
    font-size: .875rem;
    line-height: 1.5;
}

#kc-info {
    margin: 22px 0 0;
    text-align: center;
}

#kc-info-wrapper {
    padding: 0;
    color: var(--onestop-muted);
    background: transparent;
    font-size: .9rem;
}

#kc-registration a {
    margin-left: 4px;
    font-weight: 500;
}

#kc-locale {
    position: absolute;
    top: 16px;
    right: 26px;
}

#kc-locale-dropdown button {
    padding: 4px 0 4px 10px;
    border: 0;
    color: var(--onestop-muted);
    background: transparent;
    font-size: .8rem;
}

#kc-locale-dropdown button::after {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 3px 3px 9px;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    content: "";
    transform: rotate(45deg);
}

#kc-locale-dropdown .pf-c-dropdown__menu {
    display: none;
    z-index: 5;
    min-width: 130px;
    border-radius: 7px;
}

#kc-locale-dropdown button[aria-expanded="true"] + .pf-c-dropdown__menu {
    display: block;
}

.vdpr-required-fields-note,
.subtitle {
    color: var(--onestop-muted);
    font-size: .8rem;
}

.onestop-footer {
    grid-area: 4 / 1 / 5 / -1;
    padding: 30px 28px 18px;
    color: #fff;
    background: var(--onestop-blue);
}

.onestop-footer-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.onestop-footer-top,
.onestop-footer-navigation,
.onestop-newsletter,
.onestop-footer-companies,
.onestop-footer-company {
    display: flex;
    align-items: center;
}

.onestop-footer-top {
    justify-content: space-between;
    gap: 24px;
}

.onestop-footer-navigation {
    flex-wrap: wrap;
    gap: 12px 22px;
}

.onestop-footer a {
    color: #fff;
    font-size: .85rem;
}

.onestop-newsletter {
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: .85rem;
}

.onestop-newsletter > a {
    padding: 10px 16px;
    border: 1px solid rgb(255 255 255 / 40%);
    border-radius: 6px;
    white-space: nowrap;
}

.onestop-newsletter > a:hover {
    background: rgb(255 255 255 / 10%);
    text-decoration: none;
}

.onestop-footer-companies {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 20px 30px;
    margin-top: 28px;
}

.onestop-footer-company {
    gap: 9px;
}

.onestop-footer-company img {
    display: block;
    width: auto;
    max-width: 145px;
    height: 23px;
}

.onestop-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
    font-family: Arial, sans-serif;
    font-size: .7rem !important;
    font-weight: 700;
}

.onestop-footer-copyright {
    margin: 24px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgb(255 255 255 / 16%);
    color: #c5ceda;
    font-size: .75rem;
}

.onestop-footer a:focus-visible {
    outline-color: #fff;
}

@media (max-width: 900px) {
    .onestop-footer-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .onestop-footer-companies {
        justify-content: flex-start;
    }
}

@media (max-width: 575px) {
    .login-pf-page .card-pf {
        grid-template-columns: 16px minmax(0, 1fr) 16px;
        grid-template-rows: auto auto minmax(32px, 1fr) auto;
        padding-top: 20px;
    }

    .card-pf > .login-pf-header {
        padding: 52px 24px 0;
    }

    #kc-content {
        padding: 18px 24px 26px;
    }

    .onestop-login-provider {
        margin-bottom: 24px;
    }

    .onestop-sso-notice {
        padding-right: 14px;
    }

    .onestop-footer {
        padding: 26px 24px 18px;
    }

    .onestop-footer-companies {
        gap: 24px;
    }

    .onestop-footer-company img {
        width: 112px;
        height: 25px;
        object-fit: contain;
        object-position: left center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
