:root {
    --stormcloud-brand: #F7991D;
    --stormcloud-brand-hover: #F7991D;
    --stormcloud-brand-text: #202124;
    --stormcloud-brand-border: #202124;
    --stormcloud-brand-link: #202124;
    --stormcloud-brand-link-hover: #202124;
    --stormcloud-brand-focus: rgba(247, 153, 29, 0.42);
    --stormcloud-control-border: #858B92;
    --stormcloud-disabled-bg: #D8D8D8;
    --stormcloud-disabled-text: #5E5E5E;
    --stormcloud-danger-text: #B00020;
    --pf-global--primary-color--100: var(--stormcloud-brand);
    --pf-global--primary-color--200: var(--stormcloud-brand-hover);
    --pf-v5-global--primary-color--100: var(--stormcloud-brand);
    --pf-v5-global--primary-color--200: var(--stormcloud-brand-hover);
}

/* Patternfly CSS places a "bg-login.jpg" as the background on this ".login-pf" class.
   Keep the StormCloud artwork on a fixed viewport layer so page scrolling and tablet
   overscroll do not move the background or reveal white below the themed page. */
.login-pf {
    min-height: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    background-color: #2f4055;
    background-image: url("../img/background-login.svg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.login-pf body {
    min-height: 100%;
    overflow-x: hidden;
    overscroll-behavior-y: none;
    background: transparent;
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    position: relative;
    isolation: isolate;
}

.login-pf body::before {
    content: "";
    position: fixed;
    top: -12vh;
    right: -12vw;
    bottom: -12vh;
    left: -12vw;
    z-index: -1;
    pointer-events: none;
    background: #2f4055 url("../img/background-login.svg") no-repeat center center;
    background-size: cover;
}

@supports (height: 100lvh) {
    .login-pf body::before {
        top: -12lvh;
        bottom: -12lvh;
    }
}

@supports (-webkit-touch-callout: none) {
    .login-pf body::before {
        top: -30lvh;
        right: -20vw;
        bottom: -30lvh;
        left: -20vw;
    }
}

textarea.pf-v5-c-form-control {
	height: auto;
}

.pf-v5-c-alert__title {
    font-size: var(--pf-global--FontSize--xs);
}

p.instruction {
    margin: 5px 0;
}

h1#kc-page-title {
    margin-top: 10px;
}

#kc-locale ul {
    background-color: var(--pf-global--BackgroundColor--100);
    display: none;
    top: 20px;
    min-width: 100px;
    padding: 0;
}

#kc-locale-dropdown{
    display: inline-block;
}

#kc-locale-dropdown:hover ul {
    display:block;
}

#kc-locale-dropdown a {
    color: var(--pf-global--Color--200);
    text-align: right;
    font-size: var(--pf-global--FontSize--sm);
}

a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: var(--pf-global--spacer--xs)
}

.login-pf .container {
    padding-top: 40px;
}

.login-pf a:hover {
    color: var(--stormcloud-brand-link-hover);
}

#kc-logo {
    width: 100%;
}

div.kc-logo-text {
    background-image: url(../img/keycloak-logo-text.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

#kc-header {
    color: #ededed;
    overflow: visible;
    white-space: nowrap;
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 10px 20px;
    white-space: normal;
}

#kc-content {
    width: 100%;
}

#kc-attempted-username {
    font-size: 20px;
    font-family: inherit;
    font-weight: normal;
    padding-right: 10px;
}

#kc-username {
    text-align: center;
    margin-bottom:-10px;
}

#kc-webauthn-settings-form {
    padding-top: 8px;
}

#kc-form-webauthn .select-auth-box-parent {
    pointer-events: none;
}

#kc-form-webauthn .select-auth-box-desc {
    color: var(--pf-global--palette--black-600);
}

#kc-form-webauthn .select-auth-box-headline {
    color: var(--pf-global--Color--300);
}

#kc-form-webauthn .select-auth-box-icon {
    flex: 0 0 3em;
}

#kc-form-webauthn .select-auth-box-icon-properties {
    margin-top: 10px;
    font-size: 1.8em;
}

#kc-form-webauthn .select-auth-box-icon-properties.unknown-transport-class {
    margin-top: 3px;
}

#kc-form-webauthn .pf-l-stack__item {
    margin: -1px 0;
}

#kc-content-wrapper {
    margin-top: 20px;
}

#kc-form-wrapper {
    margin-top: 10px;
}

#kc-info {
    margin: 20px -40px -30px;
}

#kc-info-wrapper {
    font-size: 13px;
    padding: 15px 35px;
    background-color: #F0F0F0;
}

#kc-form-options span {
    display: block;
}

#kc-form-options {
    margin-top: 15px;
    margin-bottom: 0;
}

#kc-form-options .checkbox {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    color: #72767b;
}

#kc-form-options .checkbox label {
    font-size: 13px;
    font-weight: normal;
    display: inline-flex;
    align-items: center;
    margin-bottom: 0;
    padding: 0;
    cursor: pointer;
}

#kc-form-options .checkbox input[type="checkbox"],
#kc-form-options input[type="checkbox"]#rememberMe,
input#rememberMe[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0 6px 0 0 !important;
    padding: 0 !important;
    flex-shrink: 0;
    vertical-align: middle;
    cursor: pointer;
    -webkit-appearance: checkbox;
    -moz-appearance: checkbox;
    appearance: checkbox;
}

#kc-terms-text {
    margin-bottom: 20px;
}

#kc-registration {
    margin-bottom: 0;
}

/* TOTP */

.subtitle {
    text-align: right;
    margin-top: 30px;
    color: #6A6E73;
}

.required {
    color: var(--pf-global--danger-color--200);
}

.pf-v5-c-form__helper-text.pf-m-error.kc-feedback-text {
    display: block;
    margin-top: 6px;
    color: var(--stormcloud-danger-text) !important;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.35;
}

ol#kc-totp-settings {
    margin: 0;
    padding-left: 20px;
}

ul#kc-totp-supported-apps {
    margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
    max-width:120px;
    max-height:120px;
}

#kc-totp-secret-key {
    background-color: #fff;
    color: #333333;
    font-size: 16px;
    padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
    margin-top: 0;
}

#kc-oauth ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-oauth ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
    border-top: 0;
}

#kc-oauth .kc-role {
    display: inline-block;
    width: 50%;
}

/* Code */
#kc-code textarea {
    width: 100%;
    height: 8em;
}

/* Social */
.kc-social-links {
    margin-top: 20px;
}

.kc-social-provider-logo {
    font-size: 23px;
    width: 30px;
    height: 25px;
    float: left;
}

.kc-social-gray {
    color: var(--pf-global--Color--200);
}

.kc-social-item {
    margin-bottom: var(--pf-global--spacer--sm);
    font-size: 15px;
    text-align: center;
}

/*
.kc-social-provider-name {
    position: relative;
    top: 3px;
}
*/

.kc-social-icon-text {
    left: -15px;
}

.kc-social-grid {
    display:grid;
    grid-column-gap: 10px;
    grid-row-gap: 5px;
    grid-column-end: span 6;
    --pf-l-grid__item--GridColumnEnd: span 6;
}

.kc-social-grid .kc-social-icon-text {
    left: -10px;
}

.kc-login-tooltip {
    position: relative;
    display: inline-block;
}

.kc-social-section {
    text-align: center;
}

.kc-social-section hr{
    margin-bottom: 10px
}

.kc-login-tooltip .kc-tooltip-text{
    top:-3px;
    left:160%;
    background-color: black;
    visibility: hidden;
    color: #fff;

    min-width:130px;
    text-align: center;
    border-radius: 2px;
    box-shadow:0 1px 8px rgba(0,0,0,0.6);
    padding: 5px;

    position: absolute;
    opacity:0;
    transition:opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
    visibility: visible;
    opacity:0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 15px;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}

@media (min-width: 768px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

    .login-pf .container {
        padding-right: 80px;
    }

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }
}

@media (max-width: 767px) {

    .login-pf,
    .login-pf body {
        background: #fff;
    }

    .login-pf body::before {
        display: none;
    }

    #kc-header {
        padding-left: 15px;
        padding-right: 15px;
        float: none;
        text-align: left;
    }

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: bold;
        padding: 20px 60px 0 0;
        color: #72767b;
        letter-spacing: 0;
    }

    div.kc-logo-text {
        margin: 0;
        width: 150px;
        height: 32px;
        background-size: 100%;
    }

    #kc-form {
        float: none;
    }

    #kc-info-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
    }

    .login-pf .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #kc-locale {
        position: absolute;
        width: 200px;
        top: 20px;
        right: 20px;
        text-align: right;
        z-index: 9999;
    }
}

@media (min-height: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 645px) {
    #kc-container-wrapper {
        padding-top: 50px;
        top: 20%;
    }
}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}

#kc-form-buttons {
    margin-top: 20px;
}

.login-pf-page {
    padding-top: 50px;
    min-height: 100vh;
    min-height: 100dvh;
    background: transparent;
    box-sizing: border-box;
}

body.cm-has-footer-description .login-pf-page {
    min-height: auto;
}

body.cm-register-page .login-pf-page,
body.cm-update-profile-page .login-pf-page {
    padding-bottom: 56px;
}

.login-pf-page .login-pf-brand {
    margin-top: 20px;
    max-width: 360px;
    width: 40%;
}

.select-auth-box-arrow{
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.select-auth-box-icon{
    display: flex;
    flex: 0 0 2em;
    justify-content: center;
    margin-right: 1rem;
    margin-left: 3rem;
}

.select-auth-box-parent{
    border-top: 1px solid var(--pf-global--palette--black-200);
    padding-top: 1rem;
    padding-bottom: 1rem;
    cursor: pointer;
}

.select-auth-box-parent:hover{
    background-color: #f7f8f8;
}

.select-auth-container {
    padding-bottom: 0px !important;
}

.select-auth-box-headline {
    font-size: var(--pf-global--FontSize--md);
    color: var(--stormcloud-brand-link);
    font-weight: bold;
}

.select-auth-box-desc {
    font-size: var(--pf-global--FontSize--sm);
}

body.cm-update-password-page #kc-content-wrapper,
body.cm-update-password-page #kc-form-wrapper,
body.cm-update-profile-page #kc-content-wrapper,
body.cm-update-profile-page #kc-form-wrapper,
body.cm-page-expired-page #kc-content-wrapper,
body.cm-page-expired-page #kc-form-wrapper {
    margin-top: 0;
}

body.cm-update-password-page #kc-content,
body.cm-page-expired-page #kc-content {
    width: 400px;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
}

body.cm-update-profile-page #kc-content {
    width: 640px;
    box-sizing: border-box;
}

body.cm-update-profile-page .login-pf-page .card-pf {
    width: 640px;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
}

.cm-update-password .cm-qr-code,
.cm-update-profile .cm-qr-code,
.cm-page-expired .cm-qr-code {
    padding-bottom: 22px;
}

.cm-update-password .cm-qr-code .cm-icon,
.cm-update-profile .cm-qr-code .cm-icon,
.cm-page-expired .cm-qr-code .cm-icon {
    width: 96px;
    max-width: 96px;
    height: 96px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cm-update-password .cm-qr-code .separator,
.cm-update-profile .cm-qr-code .separator,
.cm-page-expired .cm-qr-code .separator {
    top: -48px;
}

.cm-update-password .cm-login-header,
.cm-update-profile .cm-login-header,
.cm-page-expired .cm-login-header {
    padding-bottom: 20px;
}

.cm-update-profile .cm-logo {
    padding-bottom: 34px;
}

.cm-update-profile .cm-qr-code {
    padding-bottom: 30px;
}

.cm-update-profile .cm-qr-code .cm-icon {
    width: 112px;
    max-width: 112px;
    height: 112px;
}

.cm-update-profile .cm-qr-code .separator {
    top: -56px;
}

.cm-update-profile .cm-login-header {
    padding-bottom: 34px;
}

.cm-update-profile .cm-login-header span {
    font-size: 18px;
    line-height: 1.25;
}

.cm-update-password #kc-passwd-update-form {
    padding-bottom: 40px;
}

.cm-update-profile {
    padding-bottom: 28px;
}

.cm-update-profile #kc-update-profile-form {
    max-width: none;
    margin: 0 auto;
    padding: 0 0 28px;
    box-sizing: border-box;
}

.cm-update-profile #kc-update-profile-form .form-group {
    margin-right: 0;
    margin-bottom: 18px;
    margin-left: 0;
}

.cm-update-profile #kc-update-profile-form .col-xs-12,
.cm-update-profile #kc-update-profile-form .col-sm-12,
.cm-update-profile #kc-update-profile-form .col-md-12,
.cm-update-profile #kc-update-profile-form .col-lg-12 {
    float: none;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding-right: 0;
    padding-left: 0;
}

.cm-update-profile #kc-update-profile-form .pf-v5-c-form__label,
.cm-update-profile #kc-update-profile-form label {
    display: block;
    margin-bottom: 6px;
    padding-bottom: 0;
    color: #5e5e5e;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.cm-update-profile #kc-update-profile-form .required {
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.cm-update-profile #kc-update-profile-form input[type="text"],
.cm-update-profile #kc-update-profile-form input[type="email"],
.cm-update-profile #kc-update-profile-form input[type="password"],
.cm-update-profile #kc-update-profile-form select,
.cm-update-profile #kc-update-profile-form textarea {
    width: 100%;
    height: 40px;
    border: 1px solid var(--stormcloud-control-border);
    border-radius: 5px;
    padding: 6px 8px;
    color: var(--stormcloud-brand-text);
    font-size: 14px;
    line-height: 16px;
    box-sizing: border-box;
}

.cm-update-profile #kc-update-profile-form select {
    background-color: white;
    cursor: pointer;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

.cm-update-profile #kc-update-profile-form select:not([multiple]) {
    padding-top: 9px;
    padding-bottom: 9px;
    line-height: 38px;
}

.cm-update-profile #kc-update-profile-form textarea {
    height: auto;
    min-height: 60px;
    resize: vertical;
}

.cm-update-profile #kc-update-profile-form .pf-v5-c-form__helper-text,
.cm-update-profile #kc-update-profile-form .kc-feedback-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.3;
}

.cm-update-password #kc-form-buttons {
    margin-top: 12px;
}

.cm-update-profile #kc-form-buttons {
    margin-top: 28px;
}

.cm-update-profile #updateProfileBtn,
.cm-update-profile #cancelUpdateProfileBtn {
    min-height: 52px;
    padding: 13px 18px;
    font-size: 17px;
    line-height: 1.25;
    white-space: normal;
}

@media (max-width: 767px) {
    body.cm-update-profile-page .login-pf-page .card-pf {
        width: 100%;
        max-width: none;
    }

    body.cm-update-profile-page #kc-content {
        width: 100%;
        max-width: 100vw;
        padding-top: 32px;
        padding-right: 24px;
        padding-left: 24px;
    }

    .cm-update-profile {
        padding-bottom: 0;
    }

    .cm-update-profile #kc-update-profile-form {
        max-width: none;
        padding-bottom: 0;
    }

    .cm-update-profile #updateProfileBtn,
    .cm-update-profile #cancelUpdateProfileBtn {
        font-size: 16px;
    }
}

.cm-update-password #cancelUpdatePasswordBtn,
.cm-update-profile #cancelUpdateProfileBtn,
.cm-page-expired #loginRestartLink,
.cm-page-expired #loginContinueLink {
    color: var(--stormcloud-brand-link);
}

.cm-update-password #cancelUpdatePasswordBtn:hover,
.cm-update-password #cancelUpdatePasswordBtn:focus,
.cm-update-profile #cancelUpdateProfileBtn:hover,
.cm-update-profile #cancelUpdateProfileBtn:focus,
.cm-page-expired #loginRestartLink:hover,
.cm-page-expired #loginRestartLink:focus,
.cm-page-expired #loginContinueLink:hover,
.cm-page-expired #loginContinueLink:focus {
    color: var(--stormcloud-brand-link-hover);
}

.cm-page-expired #instruction1 {
    max-width: 340px;
    margin: 0 auto;
    color: #5e5e5e;
    font-size: 15px;
    line-height: 1.55;
    text-align: center;
}

body.cm-otp-login-page #kc-content-wrapper,
body.cm-otp-login-page #kc-form-wrapper {
    margin-top: 0;
}

body.cm-otp-login-page #kc-content {
    width: 420px;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
}

.cm-otp-login {
    padding-bottom: 40px;
}

.cm-otp-login .cm-qr-code {
    padding-bottom: 20px;
}

.cm-otp-login .cm-qr-code .cm-icon {
    width: 96px;
    max-width: 96px;
    height: 96px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cm-otp-login .cm-qr-code .separator {
    top: -48px;
}

.cm-otp-login .cm-login-header {
    padding-bottom: 10px;
}

.cm-otp-login-description {
    max-width: 340px;
    margin: 0 auto 22px;
    color: #5e5e5e;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
}

.cm-otp-login .cm-account-context {
    max-width: 340px;
    margin-right: auto;
    margin-left: auto;
}

.cm-otp-login-form {
    max-width: 340px;
    margin: 0 auto;
}

.cm-otp-credential-list {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.cm-otp-credential-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.cm-otp-credential-option {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    box-sizing: border-box;
    min-height: 60px;
    padding: 10px 12px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out;
}

.cm-otp-credential-input:checked + .cm-otp-credential-option,
.cm-otp-credential-option:hover {
    border-color: var(--stormcloud-brand-border);
    background: #fff9ef;
}

.cm-otp-credential-input:focus-visible + .cm-otp-credential-option {
    border-color: var(--stormcloud-brand-border);
    box-shadow: 0 0 0 3px var(--stormcloud-brand-focus);
    outline: 2px solid var(--stormcloud-brand-border);
    outline-offset: 2px;
}

.cm-otp-credential-icon {
    width: 40px;
    height: 40px;
    background: url(../img/cm-qr-code.svg) center / contain no-repeat;
}

.cm-otp-credential-name {
    min-width: 0;
    color: var(--stormcloud-brand-link);
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.cm-otp-code-field {
    margin-bottom: 18px;
}

.cm-otp-code-field label {
    display: block;
    margin-bottom: 8px;
}

.cm-otp-code-field input.pf-v5-c-form-control {
    width: 100%;
    height: 46px;
    font-size: 18px;
    line-height: 1.3;
    text-align: center;
}

.cm-otp-code-field .kc-feedback-text {
    display: block;
    margin-top: 8px;
    text-align: left;
}

.cm-mfa-setup-description {
    max-width: 330px;
    margin: 0 auto 26px;
    text-align: center;
    color: #5e5e5e;
    font-size: 15px;
    line-height: 1.45;
}

body.cm-mfa-setup-page #kc-content {
    width: 500px;
    max-width: calc(100vw - 48px);
}

body.cm-mfa-setup-page #kc-content-wrapper,
body.cm-mfa-setup-page #kc-form-wrapper {
    margin-top: 0;
}

.cm-mfa-setup .cm-qr-code {
    padding-bottom: 22px;
}

.cm-mfa-setup .cm-qr-code .cm-icon {
    width: 104px;
    max-width: 104px;
    height: 104px;
    background-size: contain;
}

.cm-mfa-setup .cm-qr-code .separator {
    top: -52px;
}

.cm-mfa-setup .cm-login-header {
    padding-bottom: 10px;
}

.cm-mfa-method-list {
    max-width: 390px;
    margin: 0 auto;
    padding: 0 0 42px;
}

.cm-mfa-method-list {
    display: grid;
    gap: 12px;
}

.cm-mfa-method-form {
    margin: 0;
    padding: 0;
}

button.cm-mfa-method-option {
    width: 100%;
    min-height: 86px;
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 16px;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #ffffff;
    -webkit-appearance: none;
    appearance: none;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    line-height: normal;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease-out, background-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}

button.cm-mfa-method-option:hover {
    border-color: var(--stormcloud-brand-border);
    background: #fff9ef;
    box-shadow: none;
}

button.cm-mfa-method-option:focus-visible {
    border-color: var(--stormcloud-brand-border);
    box-shadow: 0 0 0 3px var(--stormcloud-brand-focus);
    outline: 2px solid var(--stormcloud-brand-border);
    outline-offset: 2px;
}

button.cm-mfa-method-option:active {
    background: #fff3e1;
    transform: translateY(1px);
}

.cm-mfa-method-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cm-mfa-method-icon img {
    display: block;
    width: 56px;
    max-width: 100%;
    height: 56px;
    object-fit: contain;
}

.cm-mfa-method-icon-otp {
    background-image: url(../img/cm-qr-code.svg);
}

.cm-mfa-method-icon-webauthn {
    background-image: url(../img/cm-webauthn.svg);
}

.cm-mfa-method-copy,
.cm-mfa-method-title,
.cm-mfa-method-description {
    display: block;
    min-width: 0;
}

.cm-mfa-method-title {
    margin-bottom: 5px;
    color: var(--stormcloud-brand-link);
    font-size: 16px;
    font-weight: bold;
    line-height: 1.25;
}

.cm-mfa-method-description {
    color: #656565;
    font-size: 14px;
    line-height: 1.4;
}

.cm-mfa-method-arrow {
    color: var(--stormcloud-brand);
    width: 13px;
    height: 13px;
    border-top: 3px solid var(--stormcloud-brand);
    border-right: 3px solid var(--stormcloud-brand);
    transform: rotate(45deg);
    justify-self: end;
}

@media (max-width: 767px) {
    body.cm-mfa-setup-page #kc-content {
        width: 100%;
        max-width: none;
    }

    .cm-mfa-setup-description {
        margin-bottom: 22px;
    }

    button.cm-mfa-method-option {
        min-height: 82px;
        grid-template-columns: 50px minmax(0, 1fr) 14px;
        gap: 12px;
        padding: 14px 12px;
    }

    .cm-mfa-method-icon {
        width: 48px;
        height: 48px;
    }

    .cm-mfa-method-icon img {
        width: 48px;
        height: 48px;
    }
}

.cm-mfa-method-error {
    display: block;
    margin-top: 14px;
    text-align: center;
}

body.cm-recovery-pin-page #kc-content-wrapper,
body.cm-recovery-pin-page #kc-form-wrapper {
    margin-top: 0;
}

body.cm-recovery-pin-page #kc-content {
    width: 400px;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
}

.cm-recovery-pin {
    padding-bottom: 34px;
}

.cm-recovery-pin .cm-qr-code {
    padding-bottom: 18px;
}

.cm-recovery-pin .cm-qr-code .cm-icon {
    width: 88px;
    max-width: 88px;
    height: 88px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cm-recovery-pin .cm-qr-code .separator {
    top: -44px;
}

.cm-recovery-pin .cm-login-header {
    padding-bottom: 8px;
}

.cm-recovery-pin-description {
    max-width: 320px;
    margin: 0 auto 20px;
    text-align: center;
    color: #5e5e5e;
    font-size: 15px;
    line-height: 1.45;
}

.cm-recovery-request-description {
    max-width: 330px;
    margin: 0 auto 20px;
    text-align: center;
    color: #5e5e5e;
    font-size: 15px;
    line-height: 1.45;
}

.cm-recovery-pin-form {
    max-width: 300px;
    margin: 0 auto;
    padding: 0;
}

.cm-recovery-pin-form .pf-v5-c-form__label {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 6px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 0;
    text-align: left;
}

.cm-recovery-pin-input {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.08em;
}

.cm-recovery-pin-form #kc-form-buttons {
    margin-top: 18px;
}

.cm-recovery-pin-form #kc-form-buttons .pf-v5-c-button {
    box-sizing: border-box;
    width: 100%;
}

.cm-recovery-pin-error {
    display: block;
    margin-top: 10px;
    text-align: center;
}

body.cm-webauthn-register-page #kc-content-wrapper,
body.cm-webauthn-register-page #kc-form-wrapper,
body.cm-webauthn-authenticate-page #kc-content-wrapper,
body.cm-webauthn-authenticate-page #kc-form-wrapper,
body.cm-webauthn-error-page #kc-content-wrapper,
body.cm-webauthn-error-page #kc-form-wrapper {
    margin-top: 0;
}

body.cm-webauthn-register-page #kc-content,
body.cm-webauthn-authenticate-page #kc-content,
body.cm-webauthn-error-page #kc-content {
    width: 420px;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
}

.cm-webauthn-register,
.cm-webauthn-authenticate,
.cm-webauthn-error {
    padding-bottom: 34px;
}

.cm-webauthn-register .cm-qr-code,
.cm-webauthn-authenticate .cm-qr-code,
.cm-webauthn-error .cm-qr-code {
    padding-bottom: 18px;
}

.cm-webauthn-register .cm-qr-code .cm-icon,
.cm-webauthn-authenticate .cm-qr-code .cm-icon,
.cm-webauthn-error .cm-qr-code .cm-icon {
    width: 88px;
    max-width: 88px;
    height: 88px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cm-webauthn-register .cm-qr-code .separator,
.cm-webauthn-authenticate .cm-qr-code .separator,
.cm-webauthn-error .cm-qr-code .separator {
    top: -44px;
}

.cm-webauthn-register .cm-login-header,
.cm-webauthn-authenticate .cm-login-header,
.cm-webauthn-error .cm-login-header {
    padding-bottom: 8px;
}

.cm-webauthn-register-description,
.cm-webauthn-authenticate-description,
.cm-webauthn-error-description {
    max-width: 340px;
    margin: 0 auto 20px;
    text-align: center;
    color: #5e5e5e;
    font-size: 15px;
    line-height: 1.45;
}

.cm-webauthn-authenticator-list {
    max-width: 340px;
    margin: 0 auto 20px;
}

.cm-webauthn-authenticator-list-title {
    margin: 0 0 10px;
    color: var(--stormcloud-brand-text);
    font-size: 14px;
    font-weight: bold;
}

.cm-webauthn-authenticator-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #d4dae1;
    border-radius: 8px;
    background: #f7f8f8;
}

.cm-webauthn-authenticator-item + .cm-webauthn-authenticator-item {
    margin-top: 10px;
}

.cm-webauthn-authenticator-icon {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff4e3;
    color: var(--stormcloud-brand-text);
}

.cm-webauthn-authenticator-label {
    color: var(--stormcloud-brand-text);
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.cm-webauthn-authenticator-meta {
    color: #72767b;
    font-size: 13px;
    line-height: 1.4;
}

.cm-webauthn-register-instructions {
    max-width: 340px;
    margin: 0 auto 20px;
}

.cm-webauthn-register-step {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.cm-webauthn-register-step-number {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff4e3;
    color: var(--stormcloud-brand-text);
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
}

.cm-webauthn-register-step p {
    margin: 0;
    color: #72767b;
    font-size: 15px;
    line-height: 1.5;
}

.cm-webauthn-register-form {
    max-width: 340px;
    margin: 0 auto;
}

.cm-webauthn-register-form #kc-form-options {
    margin-top: 0;
    margin-bottom: 18px;
}

.cm-webauthn-register-actions,
.cm-webauthn-authenticate-actions,
.cm-webauthn-error-actions,
.cm-webauthn-error #kc-error-credential-form {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}

.cm-webauthn-register-actions .pf-v5-c-button,
.cm-webauthn-authenticate-actions .pf-v5-c-button,
.cm-webauthn-authenticate-actions #authenticateWebAuthnButton,
.cm-webauthn-error-actions .pf-v5-c-button,
.cm-webauthn-register #cancelWebAuthnAIA,
.cm-webauthn-error #cancelWebAuthnAIA {
    box-sizing: border-box;
    width: 100%;
}

.cm-webauthn-register #kc-webauthn-settings-form,
.cm-webauthn-error #kc-webauthn-settings-form {
    max-width: 340px;
    margin: 12px auto 0;
}

.select-auth-box-paragraph {
    text-align: center;
    font-size: var(--pf-global--FontSize--md);
    margin-bottom: 5px;
}

.card-pf {
    margin: 0 auto;
    box-shadow: var(--pf-global--BoxShadow--lg);
    padding: 0 20px;
    max-width: 500px;
    border-top: 4px solid;
    border-color: var(--pf-global--primary-color--100);
}

/*phone*/
@media (max-width: 767px) {
    .login-pf-page .card-pf {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
        border-top: 0;
        box-shadow: 0 0;
    }

    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }

    .kc-social-grid .kc-social-icon-text {
        left: -15px;
    }
}

.login-pf-page .login-pf-signup {
    font-size: 15px;
    color: #72767b;
}
#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.login-pf-page.login-pf-page-accounts {
    margin-left: auto;
    margin-right: auto;
}

.login-pf-page .btn-primary {
    margin-top: 0;
}

.login-pf-page .list-view-pf .list-group-item {
    border-bottom: 1px solid #ededed;
}

.login-pf-page .list-view-pf-description {
    width: 100%;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type,
#kc-update-email-form div.form-group:last-of-type{
    margin-bottom: 0px;
}

/* Registration form specific styles */
#kc-register-form .form-group {
    margin-bottom: 12px;
}

#kc-register-form .pf-v5-c-form__label-text,
#kc-register-form label {
    font-size: 15px !important;
    font-weight: bold !important;
    color: #5e5e5e !important;
}

#kc-register-form .pf-v5-c-form__label {
    display: block !important;
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
}

#kc-register-form label {
    display: block;
    margin-bottom: 6px;
    padding-bottom: 0;
}

#kc-register-form input[type="text"],
#kc-register-form input[type="email"],
#kc-register-form input[type="password"],
#kc-register-form select,
#kc-register-form textarea {
    width: 100%;
    height: 40px;
    border: 1px solid var(--stormcloud-control-border);
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 14px;
    line-height: 16px;
    box-sizing: border-box;
}

#kc-register-form select {
    background-color: white;
    cursor: pointer;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

#kc-register-form .cm-turnstile-group {
    margin-bottom: 18px;
}

#kc-register-form .cm-turnstile {
    display: flex;
    justify-content: center;
    min-height: 65px;
}

#kc-register-form .cm-timezone-search {
    margin-bottom: 8px;
}

#kc-register-form textarea {
    height: auto;
    min-height: 60px;
    resize: vertical;
}

#kc-register-form .required {
    color: inherit;
    font-weight: bold;
    font-size: 13px;
}

.no-bottom-margin {
    margin-bottom: 0;
}

#kc-back {
    margin-top: 5px;
}

/* Recovery codes */
.kc-recovery-codes-warning {
    margin-bottom: 32px;
}
.kc-recovery-codes-warning .pf-v5-c-alert__description p {
    font-size: 0.875rem;
}
.kc-recovery-codes-list {
    list-style: none;
    columns: 2;
    margin: 16px 0;
    padding: 16px 16px 8px 16px;
    border: 1px solid var(--stormcloud-control-border);
}
.kc-recovery-codes-list li {
    margin-bottom: 8px;
    font-size: 11px;
}
.kc-recovery-codes-list li span {
    color: #6A6E73;
    width: 16px;
    text-align: right;
    display: inline-block;
    margin-right: 1px;
}

.kc-recovery-codes-actions {
    margin-bottom: 24px;
}
.kc-recovery-codes-actions button {
    padding-left: 0;
}
.kc-recovery-codes-actions button i {
    margin-right: 8px;
}

.kc-recovery-codes-confirmation {
    align-items: baseline;
    margin-bottom: 16px;
}
/* End Recovery codes */

/* CompliantAuth styles */

body {
    font-family: "proxima nova", montserrat, Arial, Helvetica, sans-serif;
}

#kc-header {
    display: none;
}

.login-pf-header #kc-username {
    display: none;
}

.cm-logo {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid #ddd;
}

.cm-logo img {
    width: 65%;
}

.login-pf-page .card-pf {
    padding: 0px 0px 0px 0px;
    border-radius: 10px;
}

.cm-login-header {
    text-align: center;
    padding-bottom: 20px;
}

.cm-login-header span, .pf-v5-c-form__label {
    font-size: 15px;
    color:rgba(94, 94, 94);
}

.cm-bold {
    font-weight: bold;
}

.pf-v5-c-form__label {
    padding-bottom: 1px;
    font-weight: bold;
}

body {
    font-family: Helvetica Neue", Helvetica, Arial, sans-serif;
}

#kc-registration {
    text-align: center;
    padding-bottom: 20px;
}

#kc-account-recovery {
    text-align: center;
}

#kc-info.login-pf-signup {
    background: none;
}

.cm-descriptions {
    padding-top: 28px;
    background: transparent;
    width: 100%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;

    padding-bottom: 0px;
    margin-bottom: 0px;
}

.cm-description {
    max-width: 600px;
    color: #ccc;
    font-size: 18px;
    padding-bottom: 20px;
    margin-left: auto;
    margin-right: auto;
    line-height: 25px;
    text-align: left;
    background: transparent;
}

.login-pf-page .card-pf p.cm-description {
    color: #ccc;
}

.cm-description.cm-header {
    padding-top: 0;
    padding-bottom: 14px;
    font-size: 26px;
    text-transform: uppercase;
    text-align: center;
}

.cm-description.cm-header-text {
    text-align: justify;
}

.cm-description.cm-footer {
    margin-top: 30px;
    width: 100%;
    max-width: none;
    text-align: center;
}

.cm-descriptions.cm-footer-only {
    position: fixed;
    right: 0;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 0;
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
    background: transparent;
    pointer-events: none;
}

.cm-descriptions.cm-footer-only .cm-description:not(.cm-footer) {
    display: none;
}

.cm-descriptions.cm-footer-only .cm-description.cm-footer {
    max-width: none;
    margin: 0;
    padding: 0;
    pointer-events: auto;
}

.cm-description.cm-footer a {
    color: #ccc;
    font-size: inherit;
    margin-left: 0px;
}

@media (max-width: 767px) {
    .cm-description.cm-footer,
    .cm-description.cm-footer a {
        color: #5e5e5e;
    }

    .cm-descriptions.cm-footer-only {
        display: block;
        bottom: calc(12px + env(safe-area-inset-bottom));
        padding-right: 16px;
        padding-left: 16px;
    }

    .cm-descriptions.cm-footer-only .cm-description.cm-footer {
        font-size: 12px;
        line-height: 1.35;
    }

    .cm-descriptions.cm-footer-only .cm-description.cm-footer,
    .cm-descriptions.cm-footer-only .cm-description.cm-footer a {
        color: #ccc;
    }
}

@media (min-width: 768px) {
    .cm-description.cm-footer {
        white-space: nowrap;
        font-size: 16px;
        line-height: 22px;
    }
}

.btn-lg {
    padding: 10px 10px;
}

.login-pf-header {
    display: none !important;
}

.card-pf {
    background: none;
    box-shadow: none;
    border-top: none;
}

#kc-content {
    width: 400px;
    margin: 0 auto;
    box-shadow: var(--pf-global--BoxShadow--lg);
    padding: 0 20px;
    max-width: 400px;
    border-top: 4px solid;
    border-color: var(--pf-global--primary-color--100);
    background-color: white;
    border-radius: 10px;
    padding-top: 40px;

    padding-left: 40px;
    padding-right: 40px;
}

#kc-info-wrapper {
    background-color: transparent;
    width: 600px;
    padding: 0px;
}

input.pf-v5-c-form-control { 
    height: 40px;
    border: 1px solid var(--stormcloud-control-border);
    border-radius: 5px;
    padding: 6px 8px;
    line-height: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
}

input.pf-v5-c-form-control:focus,
#kc-register-form input[type="text"]:focus,
#kc-register-form input[type="email"]:focus,
#kc-register-form input[type="password"]:focus,
#kc-register-form select:focus,
#kc-register-form textarea:focus {
    box-shadow: 0 0 0 3px var(--stormcloud-brand-focus);
    outline: 2px solid var(--stormcloud-brand-border);
    outline-offset: 2px;
    border: 1px solid var(--stormcloud-brand-border);
}

.pf-v5-c-button, .cm-button {
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 5px;
    padding-top: 15px;
    padding-bottom: 15px;
    display: block;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
}

.cm-button.cm-secondary {
    color: var(--stormcloud-brand-link);
    border: 2px solid var(--stormcloud-brand-border);
}

.cm-button.cm-secondary span {
    color: var(--stormcloud-brand-link);
    text-decoration: none;
}

.cm-button.cm-secondary:hover {
    color: var(--stormcloud-brand-link-hover);
    border: 2px solid var(--stormcloud-brand-link-hover);
    border-bottom: 2px solid var(--stormcloud-brand-link-hover);
    text-decoration: none;
}

.cm-button.cm-secondary:hover span {
    color: var(--stormcloud-brand-link-hover);
    text-decoration: none;
}

.cm-button.cm-primary {
    background-color: var(--stormcloud-brand);
    border-color: var(--stormcloud-brand-border);
    color: var(--stormcloud-brand-text);
}

.cm-button.cm-primary:hover {
    background-color: var(--stormcloud-brand-hover);
    border-color: var(--stormcloud-brand-link-hover);
    color: var(--stormcloud-brand-text);
    text-decoration: none;
}

.pf-v5-c-button.pf-m-primary {
    background-color: var(--stormcloud-brand);
    border-color: var(--stormcloud-brand-border);
    color: var(--stormcloud-brand-text);
}

.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus {
    background-color: var(--stormcloud-brand-hover);
    border-color: var(--stormcloud-brand-border);
    color: var(--stormcloud-brand-text);
}

.pf-v5-c-button:focus,
.cm-button:focus {
    outline: 2px solid var(--stormcloud-brand-border);
    outline-offset: 3px;
}

.separation-line {
    text-align: center;
    text-transform: uppercase;
    display: block;
    font-size: 15px;
    border-bottom: 1px solid #ccc;
    height: 0px;
    margin-top: 35px;
    margin-bottom: 25px;
}

.separation-line span {
    background: #fff;
    padding: 0 15px;
    font-size: 13px;
    color: #6A6E73;
    position: relative;
    top: -13px;
}

.card-pf a {
    font-size: 15px;
    color: var(--stormcloud-brand-link);
}

.cm-secondary-actions {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
}

.cm-info-message {
    padding: 0 0 40px;
    text-align: center;
}

.cm-info-message .cm-qr-code {
    padding-bottom: 22px;
}

.cm-info-message .cm-qr-code .cm-icon {
    width: 104px;
    max-width: 104px;
    height: 104px;
    background-size: contain;
}

.cm-info-message .cm-qr-code .separator {
    top: -52px;
}

.cm-info-message .cm-login-header {
    max-width: 340px;
    margin: 0 auto 22px;
    padding-bottom: 0;
}

.cm-info-message .cm-login-header .cm-info-title {
    margin: 0;
    color: #5e5e5e;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.45;
}

.cm-info-actions {
    max-width: 340px;
    margin: 0 auto;
}

.cm-info-primary-action {
    margin-top: 2px;
}

.cm-info-secondary-action {
    margin: 16px 0 0;
    text-align: center;
}

.cm-info-secondary-link {
    color: var(--stormcloud-brand-link);
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}

.cm-info-secondary-link:hover,
.cm-info-secondary-link:focus {
    color: var(--stormcloud-brand-link-hover);
    text-decoration: underline;
}

.cm-alert.pf-v5-c-alert {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    max-width: 340px;
    margin: 14px auto 0;
    padding: 10px 12px;
    border: 1px solid var(--stormcloud-control-border);
    border-radius: 5px;
    background: #fafafa;
    color: var(--stormcloud-brand-text);
    box-shadow: none;
}

.cm-alert.pf-v5-c-alert::before,
.cm-alert.pf-v5-c-alert::after {
    display: none;
}

.cm-alert .pf-c-alert__icon,
.cm-alert .pf-v5-c-alert__icon {
    display: block;
    width: 22px;
    height: 22px;
}

.cm-alert .pf-c-alert__icon span,
.cm-alert .pf-v5-c-alert__icon span {
    display: block;
    width: 22px;
    height: 22px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.cm-alert .pf-c-alert__icon span::before,
.cm-alert .pf-v5-c-alert__icon span::before {
    content: none;
}

.cm-alert.alert-success {
    border-color: #4f8a54;
    background: #f3faf4;
}

.cm-alert.alert-success .pf-c-alert__icon span,
.cm-alert.alert-success .pf-v5-c-alert__icon span {
    background-image: url(../img/feedback-success-sign.png);
}

.cm-alert.alert-error,
.cm-alert.alert-danger {
    border-color: var(--stormcloud-danger-text);
    background: #fff5f7;
}

.cm-alert.alert-error .pf-c-alert__icon span,
.cm-alert.alert-error .pf-v5-c-alert__icon span,
.cm-alert.alert-danger .pf-c-alert__icon span,
.cm-alert.alert-danger .pf-v5-c-alert__icon span {
    background-image: url(../img/feedback-error-sign.png);
}

.cm-alert.alert-warning {
    border-color: var(--stormcloud-brand);
    background: #fff8ec;
}

.cm-alert.alert-warning .pf-c-alert__icon span,
.cm-alert.alert-warning .pf-v5-c-alert__icon span {
    background-image: url(../img/feedback-warning-sign.png);
}

.cm-alert.alert-info .pf-c-alert__icon span,
.cm-alert.alert-info .pf-v5-c-alert__icon span {
    background-image: url(../img/feedback-warning-sign.png);
}

.cm-alert .kc-feedback-text {
    min-width: 0;
    color: inherit;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
    overflow-wrap: normal;
    hyphens: none;
}

.cm-qr-code {
    padding-bottom: 30px;
}

.cm-qr-code .cm-icon {
    max-width: 35%;
    height: 112px;
    position: relative;
    z-index: 2;
    padding-left: 5px;
    padding-right: 5px;
    background: white;
    background: url(../img/cm-qr-code.svg);
    background-repeat: no-repeat;
    margin-left:auto;
    margin-right: auto;
}

.cm-qr-code .cm-icon.cm-sms {
    background: url(../img/cm-sms.svg) center / contain no-repeat;
}

.cm-qr-code .cm-icon.cm-totp {
    background: url(../img/cm-totp.svg) center / contain no-repeat;
}

.cm-qr-code .cm-icon.cm-login {
    background: url(../img/cm-login.svg) center / contain no-repeat;
}

.cm-qr-code .cm-icon.cm-password-lock {
    background: url(../img/cm-password-lock.svg) center / contain no-repeat;
}

.cm-qr-code .cm-icon.cm-webauthn {
    background: url(../img/cm-webauthn.svg) center / contain no-repeat;
}

.cm-qr-code .cm-icon.cm-register {
    background: url(../img/cm-register.svg) center / contain no-repeat;
}

.cm-qr-code .cm-icon.cm-recover {
    background: url(../img/cm-recover.svg) center / contain no-repeat;
}

.cm-no-bottom-border {
    border-bottom: none;
}

.cm-qr-code .separator {
    border-bottom: 1px solid #ddd;
    position: relative;
    top: -55px;
    z-index: 1;
}

body.config-totp #kc-content-wrapper {
    margin-top: 0;
}

body.cm-totp-setup-page #kc-content-wrapper {
    margin-top: 0;
}

body.cm-totp-setup-page #kc-content {
    width: 560px;
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
}

body.config-totp #kc-form-wrapper {
    margin-top: 0;
}

.cm-totp-setup {
    margin-top: 0;
}

body.config-totp .cm-login-header {
    padding-bottom: 24px;
}

.cm-totp-form {
    max-width: 430px;
    margin: 0 auto 44px;
}

body.config-totp .cm-totp-flow-step {
    position: relative;
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    margin-bottom: 26px;
}

body.config-totp .cm-totp-flow-step::after {
    content: "";
    position: absolute;
    top: 34px;
    bottom: -20px;
    left: 13px;
    width: 2px;
    background: #e1e4e8;
}

body.config-totp .cm-totp-flow-step--code::after {
    display: none;
}

body.config-totp .cm-totp-step-number {
    display: inline-flex;
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--stormcloud-brand);
    color: var(--stormcloud-brand-text);
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

body.config-totp .cm-totp-step-content {
    min-width: 0;
}

body.config-totp .cm-totp-step-title {
    color: var(--stormcloud-brand-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

body.config-totp #kc-totp-settings-form .cm-totp-step-title,
body.config-totp #kc-totp-settings-form .cm-totp-label-row .control-label.cm-totp-step-title {
    color: var(--stormcloud-brand-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

body.config-totp .cm-totp-step-helper,
body.config-totp .cm-totp-field-help,
body.config-totp .cm-totp-manual-hint,
body.config-totp .cm-totp-manual-label {
    color: #5e5e5e;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.45;
    margin: 6px 0 10px;
}

body.config-totp .cm-totp-field {
    margin-bottom: 0;
}

body.config-totp .cm-totp-label-row {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin: 0 0 8px;
}

body.config-totp .cm-totp-label-row .control-label {
    display: block;
    margin: 0;
    text-align: left;
}

body.config-totp .cm-totp-label-row .required {
    color: var(--stormcloud-danger-text);
    font-size: 15px;
    font-weight: bold;
    line-height: 1;
}

body.config-totp .cm-totp-qr-panel {
    margin: 12px 0 16px;
    text-align: center;
}

body.config-totp #kc-totp-secret-qr-code {
    display: block;
    width: 176px;
    max-width: 100%;
    max-height: none;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid var(--stormcloud-control-border);
    border-radius: 5px;
    box-sizing: border-box;
    background: #fdfdfd;
}

body.config-totp .cm-totp-manual-inline {
    margin-top: 8px;
}

body.config-totp #mode-barcode {
    color: var(--stormcloud-brand-link);
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
}

body.config-totp #mode-barcode:hover,
body.config-totp #mode-barcode:focus {
    color: var(--stormcloud-brand-link-hover);
    text-decoration: underline;
}

body.config-totp #kc-totp-settings-form .form-group {
    margin-bottom: 0;
}

body.cm-totp-setup-page .cm-totp-form .form-group {
    margin-right: 0;
    margin-left: 0;
    margin-bottom: 18px;
}

body.cm-totp-setup-page .cm-totp-form [class*="col-"] {
    float: none;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

body.cm-totp-setup-page .cm-totp-form label.control-label {
    margin-bottom: 0;
    text-align: left;
}

body.config-totp #kc-totp-settings-form input.pf-v5-c-form-control {
    width: 100%;
    min-height: 42px;
    font-size: 15px;
    line-height: 1.35;
}

body.config-totp #saveTOTPBtn {
    margin-top: 12px;
}

body.config-totp #cancelTOTPBtn {
    background-color: #f5f5f5;
    border: 1px solid var(--stormcloud-control-border);
    color: var(--stormcloud-brand-text);
}

body.config-totp #manualCodeCopy {
    display: inline-flex;
    box-sizing: border-box;
    width: auto;
    min-width: 116px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin: 10px 0 8px;
    padding-right: 18px;
    padding-left: 18px;
    background-color: #f5f5f5;
    border: 1px solid var(--stormcloud-brand-border);
    border-radius: 5px;
    color: var(--stormcloud-brand-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
}

span#kc-totp-secret-key {
    border: 1px solid var(--stormcloud-control-border);
    border-radius: 5px;
    padding: 10px 12px;
    width: 100%;
    box-sizing: border-box;
    color: var(--stormcloud-brand-text);
    background: #fdfdfd;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.45;
    letter-spacing: 0.02em;
    display: block;
    text-align: center;
    word-break: break-word;
}

body.config-totp #manualCodeCopy:hover {
    cursor: pointer;
}

#cm-manual-code-instructions p.scan-barcode {
    margin: 10px 0 0;
    text-align: left;
}

hr {
    border-top: 1px solid #ddd;
}

label.control-label {
    font-size: 15px;
    font-weight: normal;
    color: #72767b;
}

@media (max-width: 767px) {
    body.cm-totp-setup-page #kc-content {
        max-width: 100vw;
        padding-top: 28px;
        padding-right: 24px;
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
        padding-left: 24px;
    }

    body.config-totp .cm-logo {
        padding-bottom: 22px;
    }

    body.config-totp .cm-logo img {
        width: 72%;
        max-width: 260px;
    }

    body.config-totp .cm-qr-code {
        padding-bottom: 22px;
    }

    body.config-totp .cm-qr-code .cm-icon {
        height: 96px;
        max-width: 32%;
    }

    body.config-totp .cm-qr-code .separator {
        top: -48px;
    }

    body.config-totp .cm-login-header {
        padding-bottom: 20px;
    }

    body.config-totp .cm-totp-form {
        width: 100%;
        max-width: 100%;
        margin-bottom: 32px;
    }

    body.config-totp .cm-totp-flow-step {
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 22px;
    }

    body.config-totp .cm-totp-flow-step::after {
        top: 32px;
        bottom: -18px;
        left: 13px;
    }

    body.config-totp .cm-totp-step-number {
        width: 26px;
        height: 26px;
        font-size: 13px;
    }

    body.config-totp .cm-totp-step-title {
        font-size: 16px;
    }

    body.config-totp .cm-totp-step-helper,
    body.config-totp .cm-totp-field-help,
    body.config-totp .cm-totp-manual-hint,
    body.config-totp .cm-totp-manual-label {
        font-size: 14px;
    }

    body.config-totp #kc-totp-secret-qr-code {
        width: 168px;
    }
}

p.instruction {
    font-size: 15px;
}

#kc-username label {
    font-size: 15px;
    font-weight: normal;
    background: url(../img/cm-user-icon.svg);
    background-size: 16px 16px;
    background-repeat: no-repeat;
    padding-left:20px;
    background-position: 0px 5px;
}

#kc-username.cm-account-context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: -4px 0 24px;
    min-width: 0;
    padding: 0 12px;
    text-align: center;
}

#kc-username #kc-attempted-username.cm-account-context__email {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    color: var(--stormcloud-brand-text);
    font-size: 14px;
    font-weight: bold;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    background: url(../img/cm-user-icon.svg);
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: 0 50%;
    padding-left: 22px;
    padding-right: 0;
}

#kc-username .cm-account-context__restart {
    display: inline-block;
    flex: 0 0 auto;
    color: var(--stormcloud-brand-link);
    font-size: 13px;
    font-weight: bold;
    line-height: 1.35;
    text-decoration: none;
}

#kc-username .cm-account-context__restart::before {
    content: "\00b7";
    display: inline-block;
    margin-right: 8px;
    color: #a8a8a8;
    font-weight: normal;
}

#kc-username .cm-account-context__restart:hover,
#kc-username .cm-account-context__restart:focus {
    color: var(--stormcloud-brand-link-hover);
    text-decoration: underline;
}

#kc-username .cm-account-context__restart:focus {
    box-shadow: 0 0 0 3px var(--stormcloud-brand-focus);
    outline: 2px solid var(--stormcloud-brand-border);
    outline-offset: 2px;
}

.cm-password-field__label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
}

.cm-password-field__label-row .pf-v5-c-form__label {
    margin: 0;
    padding-bottom: 0;
}

.cm-password-field input.pf-v5-c-form-control {
    width: 100%;
}

.cm-forgot-password-link {
    flex: 0 0 auto;
    color: var(--stormcloud-brand-link);
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2;
    text-decoration: none;
}

.cm-forgot-password-link:hover,
.cm-forgot-password-link:focus {
    color: var(--stormcloud-brand-link-hover);
    text-decoration: underline;
}

#kc-info {
    margin-top: 0px;
}

.cm-form-footer {
    padding-top: 20px;
    overflow: auto;
    padding-bottom: 20px;
}

.cm-form-footer .cm-footer-lhs {
    float: left;
    width:50%;
}

.cm-form-footer .cm-footer-rhs {
    float: right;
    text-align: right;
    width:50%;
}

.select-auth-container {
    padding-bottom: 10px;
}

p.cm-error {
    color: var(--stormcloud-danger-text) !important;
    font-weight: bold;
    display: none;
    padding-top: 5px;
}

#kc-content {
    border: none;
}

.cm-padding-top-15 {
    padding-top: 15px;
}

.cm-margin-top-15 {
    margin-top: 15px;
}

.cm-margin-bottom-30 {
    margin-bottom: 30px;
}

input#kc-login:disabled {
    background-color: var(--stormcloud-disabled-bg);
    color: var(--stormcloud-disabled-text);
}

@media (max-width: 767px) {
    body {
        height: auto;
        padding-bottom: 0px;
        margin-bottom: 0px;
        overflow-x: hidden;
        position: relative;
    }

    .login-pf-page {
        padding-top: 0px;
        background: #fff;
        min-height: 100vh;
        min-height: 100dvh;
    }

    #kc-info {
        margin: 0px 0px 0px 0px;
    }

    #kc-content-wrapper {
        max-width: 100%;
        padding-top: 0px;
        margin-top: 0px;
    }

    #kc-info-wrapper {
        width: 100%;
        max-width: 100%;
    }

    #kc-content {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
        margin-top: 0px;
        box-shadow: none;
        border-top: none;
        padding-top: 40px;
        padding-right: 24px;
        padding-left: 24px;
        border-radius: 0px;
    }

    #kc-username.cm-account-context {
        margin-left: 0;
        margin-right: 0;
    }

    .cm-descriptions {
        padding-left: 20px;
        padding-right: 20px;
        width: 100%;
        background: transparent;

        background: url(../img/background-login.svg);

        display: none;
    }

    .cm-mobile-hidden {
        display: none;
    }

}

@media (max-width: 767px) {
    body:not(.cm-register-page):not(.cm-update-profile-page) .cm-descriptions.cm-footer-only {
        display: none;
    }
}

body.cm-register-page .cm-descriptions.cm-footer-only,
body.cm-update-profile-page .cm-descriptions.cm-footer-only {
    position: static;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px calc(28px + env(safe-area-inset-bottom));
    background: transparent;
    box-sizing: border-box;
    pointer-events: auto;
}

body.cm-register-page .cm-descriptions.cm-footer-only .cm-description.cm-footer,
body.cm-update-profile-page .cm-descriptions.cm-footer-only .cm-description.cm-footer {
    max-width: none;
    margin: 0;
    padding: 0;
    color: #ccc;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    white-space: normal;
}

@media (max-width: 767px) {
    body.cm-register-page .login-pf-page,
    body.cm-update-profile-page .login-pf-page {
        padding-bottom: 36px;
    }

    body.cm-register-page .cm-descriptions.cm-footer-only,
    body.cm-update-profile-page .cm-descriptions.cm-footer-only {
        padding: 0 16px calc(18px + env(safe-area-inset-bottom));
    }

    body.cm-register-page .cm-descriptions.cm-footer-only .cm-description.cm-footer,
    body.cm-update-profile-page .cm-descriptions.cm-footer-only .cm-description.cm-footer {
        font-size: 12px;
        line-height: 1.35;
        white-space: normal;
    }
}

/* Keep the MFA method chooser compact after the legacy login.css resets. */
body.cm-mfa-setup-page #kc-content {
    width: 440px;
    max-width: calc(100vw - 48px);
}

body.cm-mfa-setup-page .cm-mfa-method-list {
    max-width: 360px;
    gap: 10px;
    padding-bottom: 32px;
}

body.cm-mfa-setup-page button.cm-mfa-method-option {
    min-height: 68px;
    grid-template-columns: 44px minmax(0, 1fr) 12px;
    gap: 10px;
    padding: 10px 12px;
}

body.cm-mfa-setup-page .cm-mfa-method-icon {
    width: 40px;
    height: 40px;
    overflow: hidden;
}

body.cm-mfa-setup-page .cm-mfa-method-icon img {
    width: 40px;
    max-width: 40px;
    height: 40px;
    max-height: 40px;
}

body.cm-mfa-setup-page .cm-mfa-method-title {
    margin-bottom: 3px;
    font-size: 15px;
}

body.cm-mfa-setup-page .cm-mfa-method-description {
    font-size: 13px;
    line-height: 1.35;
}

body.cm-mfa-setup-page .cm-mfa-method-arrow {
    width: 10px;
    height: 10px;
    border-top-width: 2px;
    border-right-width: 2px;
}

@media (max-width: 767px) {
    body.cm-mfa-setup-page button.cm-mfa-method-option {
        min-height: 64px;
        grid-template-columns: 40px minmax(0, 1fr) 10px;
        gap: 8px;
        padding: 10px;
    }

    body.cm-mfa-setup-page .cm-mfa-method-icon,
    body.cm-mfa-setup-page .cm-mfa-method-icon img {
        width: 36px;
        max-width: 36px;
        height: 36px;
        max-height: 36px;
    }
}

/* Keep the WebAuthn required-action controls from reading as oversized banners. */
body.cm-webauthn-register-page .cm-webauthn-register-form #kc-form-options {
    margin: 2px auto 14px;
}

body.cm-webauthn-register-page .cm-webauthn-register-form .pf-v5-c-check {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #e1e5ea;
    border-radius: 8px;
    background: #f7f8f8;
}

body.cm-webauthn-register-page .cm-webauthn-register-form .pf-v5-c-check:focus-within {
    border-color: #d98208;
    box-shadow: 0 0 0 3px var(--stormcloud-brand-focus);
}

body.cm-webauthn-register-page .cm-webauthn-register-form .pf-v5-c-check__input {
    width: 16px;
    height: 16px;
    margin: 0;
    flex: 0 0 16px;
    accent-color: var(--stormcloud-brand);
}

body.cm-webauthn-register-page .cm-webauthn-register-form .pf-v5-c-check__label {
    margin: 0;
    color: #4f565e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    cursor: pointer;
}

body.cm-webauthn-register-page .cm-webauthn-register-actions .pf-v5-c-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid #d98208;
    border-radius: 6px;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    transition: background-color 160ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}

body.cm-webauthn-register-page .cm-webauthn-register-actions .pf-v5-c-button::after {
    border-color: #d98208;
}

body.cm-webauthn-register-page .cm-webauthn-register-actions .pf-v5-c-button:hover {
    border-color: #b96f06;
    box-shadow: 0 2px 5px rgba(64, 64, 64, 0.16);
}

body.cm-webauthn-register-page .cm-webauthn-register-actions .pf-v5-c-button:focus,
body.cm-webauthn-register-page .cm-webauthn-register-actions .pf-v5-c-button:focus-visible {
    border-color: #d98208;
    outline: 2px solid #d98208;
    outline-offset: 3px;
    box-shadow: none;
}

body.cm-webauthn-register-page .cm-webauthn-register-actions .pf-v5-c-button:active {
    transform: translateY(1px);
}

body.cm-webauthn-authenticate-page .cm-webauthn-authenticator-icon {
    background: #fff4e3 url(../img/cm-webauthn.svg) center / 24px 24px no-repeat;
}

body.cm-webauthn-authenticate-page .cm-webauthn-authenticator-icon i {
    display: none;
}

body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions {
    max-width: 560px;
    margin: 30px auto 0;
}

body.cm-webauthn-authenticate-page #authenticateWebAuthnButton,
body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions .pf-v5-c-button {
    display: inline-flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid #d98208;
    border-radius: 6px;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    transition: background-color 160ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out, transform 160ms ease-out;
}

body.cm-webauthn-authenticate-page #authenticateWebAuthnButton::after,
body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions .pf-v5-c-button::after {
    border-color: #d98208;
}

body.cm-webauthn-authenticate-page #authenticateWebAuthnButton:hover,
body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions .pf-v5-c-button:hover {
    border-color: #b96f06;
    box-shadow: 0 2px 5px rgba(64, 64, 64, 0.16);
}

body.cm-webauthn-authenticate-page #authenticateWebAuthnButton:focus,
body.cm-webauthn-authenticate-page #authenticateWebAuthnButton:focus-visible,
body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions .pf-v5-c-button:focus,
body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions .pf-v5-c-button:focus-visible {
    border-color: #d98208;
    outline: none;
    box-shadow: 0 0 0 3px var(--stormcloud-brand-focus);
}

body.cm-webauthn-authenticate-page #authenticateWebAuthnButton:active,
body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions .pf-v5-c-button:active {
    transform: translateY(1px);
}

body.cm-webauthn-authenticate-page .cm-auth-context-switch {
    max-width: 340px;
    margin: 22px auto 0;
    color: #73777c;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

body.cm-webauthn-authenticate-page .cm-auth-context-switch a {
    color: #343434;
    font-weight: 700;
    text-decoration: none;
}

body.cm-webauthn-authenticate-page .cm-auth-context-switch a:hover,
body.cm-webauthn-authenticate-page .cm-auth-context-switch a:focus {
    color: #a75a00;
    text-decoration: underline;
}

@media (max-width: 767px) {
    body.cm-webauthn-register-page .login-pf-page {
        padding-top: 0;
        background: transparent;
    }

    body.cm-webauthn-register-page #kc-content {
        width: 100%;
        max-width: 100vw;
        margin-top: 0;
        padding-right: 24px;
        padding-left: 24px;
        border-top: none;
        border-radius: 0;
        box-shadow: none;
        overflow-x: hidden;
    }

    body.cm-webauthn-register-page .cm-logo img {
        width: min(78%, 260px);
        max-width: 100%;
    }

    body.cm-webauthn-register-page .cm-login-header,
    body.cm-webauthn-register-page .cm-webauthn-register-description,
    body.cm-webauthn-register-page .cm-webauthn-register-instructions,
    body.cm-webauthn-register-page .cm-webauthn-register-form,
    body.cm-webauthn-register-page .cm-webauthn-register-actions {
        width: 100%;
        max-width: 340px;
        box-sizing: border-box;
        margin-right: auto;
        margin-left: auto;
    }

    body.cm-webauthn-register-page .cm-login-header span {
        display: block;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    body.cm-webauthn-register-page .cm-webauthn-register-description,
    body.cm-webauthn-register-page .cm-webauthn-register-step p {
        overflow-wrap: break-word;
    }

    body.cm-webauthn-register-page .cm-webauthn-register-step {
        grid-template-columns: 26px minmax(0, 1fr);
        gap: 10px;
    }

    body.cm-webauthn-register-page .cm-webauthn-register-form .pf-v5-c-check {
        min-height: 38px;
        padding: 8px 9px;
    }

    body.cm-webauthn-register-page .cm-webauthn-register-form .pf-v5-c-check__label {
        font-size: 13px;
    }

    body.cm-webauthn-register-page .cm-webauthn-register-actions .pf-v5-c-button {
        min-height: 46px;
        padding: 11px 14px;
        font-size: 14px;
        white-space: normal;
    }

    body.cm-webauthn-authenticate-page .cm-logo img {
        width: min(78%, 260px);
        max-width: 100%;
    }

    body.cm-webauthn-authenticate-page .cm-login-header,
    body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-description,
    body.cm-webauthn-authenticate-page .cm-webauthn-authenticator-list,
    body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions,
    body.cm-webauthn-authenticate-page .cm-auth-context-switch {
        width: 100%;
        max-width: 340px;
        box-sizing: border-box;
        margin-right: auto;
        margin-left: auto;
    }

    body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions {
        margin-top: 24px;
    }

    body.cm-webauthn-authenticate-page #authenticateWebAuthnButton,
    body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions .pf-v5-c-button {
        min-height: 52px;
        padding: 12px 14px;
        font-size: 15px;
    }

    body.cm-webauthn-authenticate-page .cm-auth-context-switch {
        margin-top: 20px;
    }

    body.cm-webauthn-authenticate-page .cm-login-header span {
        display: block;
        max-width: 100%;
        overflow-wrap: break-word;
    }

    body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-description,
    body.cm-webauthn-authenticate-page .cm-webauthn-authenticator-label,
    body.cm-webauthn-authenticate-page .cm-webauthn-authenticator-meta {
        overflow-wrap: break-word;
    }

    body.cm-webauthn-authenticate-page .cm-webauthn-authenticator-item {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    body.cm-webauthn-authenticate-page .cm-webauthn-authenticator-icon {
        width: 38px;
        height: 38px;
        background-size: 24px 24px;
    }

    body.cm-webauthn-authenticate-page .cm-webauthn-authenticator-label {
        font-size: 14px;
    }

    body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions .pf-v5-c-button {
        min-height: 46px;
        padding: 11px 14px;
        font-size: 14px;
    }
}

@media (max-width: 374px) {
    body.cm-webauthn-register-page .cm-webauthn-register-actions .pf-v5-c-button {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 13px;
    }

    body.cm-webauthn-authenticate-page .cm-webauthn-authenticate-actions .pf-v5-c-button {
        padding-right: 12px;
        padding-left: 12px;
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    body.cm-webauthn-register-page .login-pf-page {
        padding-top: 50px;
        background: transparent;
    }

    body.cm-webauthn-register-page #kc-content {
        width: 420px;
        max-width: calc(100vw - 48px);
        margin-right: auto;
        margin-left: auto;
        padding-top: 40px;
        padding-right: 40px;
        padding-left: 40px;
        border-top: none;
        border-radius: 10px;
        box-shadow: var(--pf-global--BoxShadow--lg);
        box-sizing: border-box;
    }
}
