.login-pf {
    background: none !important;
}

.login-pf body {
    background-image: none !important;
    background-color: #0073E6;
    height: 100%;
}

.pf-c-form__label-text {
    color: #0073E6;
    font-weight: 600;
    font-size: 16px;
}

h1#kc-page-title {
    margin-top: 10px;
    font-weight: 600;
    font-size: 36px;
}

#kc-header-wrapper {
    font-size: 36px;
    font-weight: 700;
}

/*IE compatibility*/
.pf-c-form-control {
    font-size: 14px;
    font-size: var(--pf-global--FontSize--sm);
    border-width: 1px;
    border-width: var(--pf-global--BorderWidth--sm);;
    border-color: #EDEDED #EDEDED #8A8D90 #EDEDED;
    border-color: var(--pf-global--BorderColor--300) var(--pf-global--BorderColor--300) var(--pf-global--BorderColor--200) var(--pf-global--BorderColor--300);
    background-color: #FFFFFF;
    background-color: var(--pf-global--BackgroundColor--100);
    height: 36px;
    height: calc(var(--pf-c-form-control--FontSize) * var(--pf-c-form-control--LineHeight) + var(--pf-c-form-control--BorderWidth) * 2 + var(--pf-c-form-control--PaddingTop) + var(--pf-c-form-control--PaddingBottom));
    padding: 5px 0.5rem;
    padding: var(--pf-c-form-control--PaddingTop) var(--pf-c-form-control--PaddingRight) var(--pf-c-form-control--PaddingBottom) var(--pf-c-form-control--PaddingLeft);
}

.pf-c-form-control:hover, .pf-c-form-control:focus {
    border-bottom-color: #0066CC;
    border-bottom-color: var(--pf-global--primary-color--100);
    border-bottom-width: 2px;
    border-bottom-width: var(--pf-global--BorderWidth--md);
}

.pf-c-form-control[aria-invalid="true"] {
    border-bottom-color: #C9190B;
    border-bottom-color: var(--pf-global--danger-color--100);
    border-bottom-width: 2px;
    border-bottom-width: var(--pf-global--BorderWidth--md);
}

.pf-c-alert.pf-m-inline {
    margin-bottom: 0.5rem; /* default - IE compatibility */
    margin-bottom: var(--pf-global--spacer--sm);
    padding: 0.25rem;
    padding: var(--pf-global--spacer--xs);
    border: solid #ededed;
    border: solid var(--pf-global--BorderColor--300);
    border-width: 1px;
    border-width: var(--pf-c-alert--m-inline--BorderTopWidth) var(--pf-c-alert--m-inline--BorderRightWidth) var(--pf-c-alert--m-inline--BorderBottomWidth) var(--pf-c-alert--m-inline--BorderLeftWidth);
    display: -ms-flexbox;
    display: grid;
    -ms-grid-columns: max-content 1fr max-content;
    grid-template-columns:max-content 1fr max-content;
    grid-template-columns: var(--pf-c-alert--grid-template-columns);
    grid-template-rows: 1fr auto;
    grid-template-rows: var(--pf-c-alert--grid-template-rows);
}

.pf-c-alert.pf-m-inline::before {
    position: absolute;
    top: -1px;
    top: var(--pf-c-alert--m-inline--before--Top);
    bottom: -1px;
    bottom: var(--pf-c-alert--m-inline--before--Bottom);
    left: 0;
    width: 3px;
    width: var(--pf-c-alert--m-inline--before--Width);
    content: "";
    background-color: #FFFFFF;
    background-color: var(--pf-global--BackgroundColor--100);
}

.pf-c-alert.pf-m-inline.pf-m-success::before {
    background-color: #92D400;
    background-color: var(--pf-global--success-color--100);
}

.pf-c-alert.pf-m-inline.pf-m-danger::before {
    background-color: #C9190B;
    background-color: var(--pf-global--danger-color--100);
}

.pf-c-alert.pf-m-inline.pf-m-warning::before {
    background-color: #F0AB00;
    background-color: var(--pf-global--warning-color--100);
}

.pf-c-alert.pf-m-inline .pf-c-alert__icon {
    padding: 1rem 0.5rem 1rem 1rem;
    padding: var(--pf-c-alert--m-inline__icon--PaddingTop) var(--pf-c-alert--m-inline__icon--PaddingRight) var(--pf-c-alert--m-inline__icon--PaddingBottom) var(--pf-c-alert--m-inline__icon--PaddingLeft);
    font-size: 16px;
    font-size: var(--pf-c-alert--m-inline__icon--FontSize);
}

.pf-c-alert.pf-m-success .pf-c-alert__icon {
    color: #92D400;
    color: var(--pf-global--success-color--100);
}

.pf-c-alert.pf-m-success .pf-c-alert__title {
    color: #486B00;
    color: var(--pf-global--success-color--200);
}

.pf-c-alert.pf-m-danger .pf-c-alert__icon {
    color: #C9190B;
    color: var(--pf-global--danger-color--100);
}

.pf-c-alert.pf-m-danger .pf-c-alert__title {
    color: #A30000;
    color: var(--pf-global--danger-color--200);
}

.pf-c-alert.pf-m-warning .pf-c-alert__icon {
    color: #F0AB00;
    color: var(--pf-global--warning-color--100);
}

.pf-c-alert.pf-m-warning .pf-c-alert__title {
    color: #795600;
    color: var(--pf-global--warning-color--200);
}

.pf-c-alert__title {
    font-size: 14px; /* default - IE compatibility */
    font-size: var(--pf-global--FontSize--sm);
    padding: 5px 8px;
    padding: var(--pf-c-alert__title--PaddingTop) var(--pf-c-alert__title--PaddingRight) var(--pf-c-alert__title--PaddingBottom) var(--pf-c-alert__title--PaddingLeft);
}

.pf-c-button{
    padding:0.375rem 1rem;
    padding: var(--pf-global--spacer--form-element) var(--pf-global--spacer--md);
}

/* default - IE compatibility */
.pf-m-primary {
    color: #FFFFFF;
    background-color: #0066CC;
    background-color: var(--pf-global--primary-color--100);
}

/* default - IE compatibility */
.pf-m-primary:hover {
    background-color: #004080;
    background-color: var(--pf-global--primary-color--200);
}

/* default - IE compatibility */
.pf-c-button.pf-m-control {
    border: solid 1px;
    border: solid var(--pf-global--BorderWidth--sm);
    border-color: rgba(230, 230, 230, 0.5);
}
/*End of IE compatibility*/
h1#kc-page-title {
    margin-top: 10px;
}

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

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

/* IE compatibility */
#kc-locale-dropdown a {
    color: #6A6E73;
    color: var(--pf-global--Color--200);
    text-align: right;
    font-size: 14px;
    font-size: var(--pf-global--FontSize--sm);
}

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

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

.login-pf a:hover {
    color: #0099d3;
}

#kc-logo {
    width: 100%;
}

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

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-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 .checkbox {
    margin-top: 0;
    color: #72767b;
}

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

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

/* TOTP */

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

.required {
    color: #A30000; /* default - IE compatibility */
    color: var(--pf-global--danger-color--200);
}

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

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

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

#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: #737679; /* default - IE compatibility */
    color: var(--pf-global--Color--200);
}

.kc-social-item {
    margin-bottom: 0.5rem; /* default - IE compatibility */
    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 body {
        background: white;
    }

    #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;
    }

    #kc-logo-wrapper {
        background-size: 100px 21px;
        height: 21px;
        width: 100px;
        margin: 20px 0 0 20px;
    }

}

@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 .login-pf-brand {
    margin-top: 20px;
    max-width: 360px;
    width: 40%;
}

/* Internet Explorer 11 compatibility workaround for select-authenticator screen */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    .select-auth-box-parent {
        border-top: 1px solid #f0f0f0;
        padding-top: 1rem;
        padding-bottom: 1rem;
        cursor: pointer;
    }

    .select-auth-box-headline {
        font-size: 16px;
        color: #06c;
        font-weight: bold;
    }

    .select-auth-box-desc {
        font-size: 14px;
    }

    .pf-l-stack {
        flex-basis: 100%;
    }
}
/* End of IE11 workaround for select-authenticator screen */

.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(--pf-global--primary-color--100);
    font-weight: bold;
}

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

.card-pf {
    margin: 0 auto;
    box-shadow: var(--pf-global--BoxShadow--lg);
    padding: 0 20px;
    max-width: 500px;
    border-top: 4px solid;
    border-color: #0066CC; /* default - IE compatibility */
    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 {
    margin-bottom: 0px;
}

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

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

/* ==========================================================================
   SIRIO - visual language inspired by the design system .italia
   ========================================================================== */
:root {
    --sirio-blue: #0066cc;
    --sirio-blue-dark: #004d99;
    --sirio-navy: #003b70;
    --sirio-text: #17324d;
    --sirio-muted: #5c6f82;
    --sirio-border: #c5c7c9;
    --sirio-surface: #ffffff;
    --sirio-background: #f4f7fb;
    --sirio-focus: #ffca00;
    --sirio-danger: #d9364f;
    --sirio-success: #008758;
    --sirio-radius: 8px;
    --sirio-shadow: 0 12px 32px rgba(23, 50, 77, 0.14);
}

html.login-pf,
.login-pf body {
    min-height: 100%;
}

.login-pf {
    background: var(--sirio-background);
}

.login-pf body {
    min-height: 100vh;
    margin: 0;
    color: var(--sirio-text);
    background-color: var(--sirio-background);
    background-image:
        radial-gradient(circle at 12% 22%, rgba(0, 102, 204, 0.09), transparent 28rem),
        linear-gradient(180deg, #f8fafc 0%, #edf3f8 100%);
    font-family: "Titillium Web", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.login-pf a {
    color: var(--sirio-blue);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

.login-pf a:hover {
    color: var(--sirio-blue-dark);
}

.login-pf a:focus,
.login-pf button:focus,
.login-pf input:focus,
.login-pf select:focus,
.login-pf textarea:focus {
    outline: 3px solid var(--sirio-focus);
    outline-offset: 2px;
}

.sirio-skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 10000;
    padding: 10px 16px;
    color: #ffffff !important;
    background: var(--sirio-navy);
    border-radius: 4px;
    transform: translateY(-160%);
    transition: transform 0.15s ease;
}

.sirio-skip-link:focus {
    transform: translateY(0);
}

.login-pf-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

#kc-header {
    flex: 0 0 auto;
    width: 100%;
    margin: 0 0 34px;
    padding: 0 !important;
    overflow: hidden;
    line-height: 0;
}

#kc-header-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 !important;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    text-transform: none;
}

.sirio-header-image {
    display: block;
    width: 100%;
    height: auto;
}

.card-pf {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 540px;
    margin: 0 auto 36px;
    padding: 34px 40px 30px;
    color: var(--sirio-text);
    background: var(--sirio-surface);
    border: 0;
    border-top: 6px solid var(--sirio-blue);
    border-radius: var(--sirio-radius);
    box-shadow: var(--sirio-shadow);
}

.login-pf-header {
    margin: 0 0 28px;
}

.sirio-section-label {
    margin: 0 0 4px;
    color: var(--sirio-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1#kc-page-title {
    margin: 0;
    color: var(--sirio-text);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
}

#kc-content,
#kc-content-wrapper,
#kc-form,
#kc-form-wrapper {
    width: 100%;
}

#kc-content-wrapper,
#kc-form-wrapper {
    margin-top: 0;
}

.form-horizontal .form-group,
.form-group {
    margin-right: 0;
    margin-bottom: 22px;
    margin-left: 0;
}

.pf-c-form__label,
.pf-c-form__label-text,
.control-label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--sirio-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.pf-c-form-control,
.form-control {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    color: var(--sirio-text);
    background: #ffffff;
    border: 1px solid var(--sirio-muted) !important;
    border-radius: 4px;
    box-shadow: none;
    font-family: inherit;
    font-size: 17px;
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pf-c-form-control:hover,
.form-control:hover {
    border-color: var(--sirio-blue) !important;
}

.pf-c-form-control:focus,
.form-control:focus {
    border-color: var(--sirio-blue) !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.16);
}

.pf-c-form-control[aria-invalid="true"],
.form-control[aria-invalid="true"] {
    border-color: var(--sirio-danger) !important;
    background: #fffafa;
}

.kc-feedback-text,
.pf-c-form__helper-text.pf-m-error {
    display: block;
    margin-top: 7px;
    color: #a6192e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.login-pf-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    margin: 2px 0 24px;
    color: var(--sirio-muted);
}

#kc-form-options .checkbox {
    margin: 0;
    color: var(--sirio-text);
}

#kc-form-options .checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 28px;
    margin: 0;
    font-weight: 400;
}

#kc-form-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--sirio-blue);
}

.login-pf-settings a {
    font-weight: 600;
}

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

.pf-c-button {
    border-radius: 4px;
    font-family: inherit;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.pf-c-button.pf-m-primary,
.btn-primary,
#kc-login {
    min-height: 48px;
    padding: 10px 20px;
    color: #ffffff;
    background: var(--sirio-blue);
    border: 2px solid var(--sirio-blue);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.14);
    font-size: 18px;
    font-weight: 700;
}

.pf-c-button.pf-m-primary:hover,
.btn-primary:hover,
#kc-login:hover {
    color: #ffffff;
    background: var(--sirio-blue-dark);
    border-color: var(--sirio-blue-dark);
}

.pf-c-button.pf-m-primary:active,
.btn-primary:active,
#kc-login:active {
    background: var(--sirio-navy);
    border-color: var(--sirio-navy);
    box-shadow: none;
}

.pf-c-button:disabled,
.pf-c-button[disabled],
#kc-login:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.pf-c-alert.pf-m-inline {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    align-items: start;
    margin-bottom: 24px;
    padding: 13px 15px;
    color: var(--sirio-text);
    background: #eef7ff;
    border: 1px solid #9bc9f5;
    border-left: 5px solid var(--sirio-blue);
    border-radius: 4px;
    box-shadow: none;
}

.pf-c-alert.pf-m-inline::before {
    display: none;
}

.pf-c-alert.pf-m-inline .pf-c-alert__icon {
    padding: 2px 11px 0 0;
    color: inherit;
    font-size: 18px;
}

.pf-c-alert.pf-m-inline .pf-c-alert__title {
    padding: 0;
    color: inherit;
    font-size: 15px;
    line-height: 1.4;
}

.pf-c-alert.pf-m-danger {
    color: #7a0014;
    background: #fff2f4;
    border-color: #e9a0ab;
    border-left-color: var(--sirio-danger);
}

.pf-c-alert.pf-m-success {
    color: #005c3c;
    background: #eefaf5;
    border-color: #8fd6bb;
    border-left-color: var(--sirio-success);
}

.pf-c-alert.pf-m-warning {
    color: #5c4500;
    background: #fff8e5;
    border-color: #e6c96b;
    border-left-color: #d9a400;
}

#kc-locale {
    position: relative;
    z-index: 10;
    margin-bottom: 18px;
    text-align: right;
}

#kc-locale-dropdown > a,
a#kc-current-locale-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--sirio-blue);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

a#kc-current-locale-link::after {
    content: "\25BE";
    margin-left: 2px;
}

#kc-locale ul {
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid var(--sirio-border);
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(23, 50, 77, 0.16);
}

#kc-locale ul a {
    display: block;
    padding: 8px 10px;
    border-radius: 3px;
    text-decoration: none;
}

#kc-locale ul a:hover {
    background: #eaf4ff;
}

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

#kc-info-wrapper {
    padding: 15px 17px;
    color: var(--sirio-text);
    background: #eaf4ff;
    border-left: 4px solid var(--sirio-blue);
    border-radius: 4px;
    font-size: 15px;
    line-height: 1.45;
    text-align: left;
}

#kc-registration {
    margin: 0;
}

#kc-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    color: var(--sirio-muted);
    border-top: 1px solid #dfe4e8;
    font-size: 15px;
}

#kc-support a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    text-decoration: none;
}

#kc-support a::after {
    content: "\2192";
    font-size: 18px;
    line-height: 1;
}

#kc-social-providers {
    margin-top: 30px;
}

#kc-social-providers hr {
    margin: 0 0 22px;
    border: 0;
    border-top: 1px solid #dfe4e8;
}

#kc-social-providers h4 {
    margin: 0 0 14px;
    color: var(--sirio-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.kc-social-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.kc-social-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}

.pf-c-button.pf-m-control.kc-social-item {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 9px 14px;
    color: var(--sirio-blue);
    background: #ffffff;
    border: 1px solid var(--sirio-blue);
    border-radius: 4px;
    text-decoration: none;
}

.pf-c-button.pf-m-control.kc-social-item:hover {
    color: var(--sirio-blue-dark);
    background: #eaf4ff;
    border-color: var(--sirio-blue-dark);
}

.kc-social-provider-logo {
    color: inherit;
}

#kc-username {
    margin: 10px 0 0;
    padding: 12px 14px;
    text-align: left;
    background: #f3f6f8;
    border-radius: 4px;
}

#kc-attempted-username {
    color: var(--sirio-text);
    font-size: 18px;
    font-weight: 600;
}

#reset-login {
    text-decoration: none;
}

#try-another-way {
    display: block;
    padding: 11px 14px;
    font-weight: 600;
    text-align: center;
    background: #eaf4ff;
    border-radius: 4px;
}

.select-auth-box-parent {
    margin-bottom: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--sirio-border);
    border-radius: 4px;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.select-auth-box-parent:hover {
    background: #f5f9fd;
    border-color: var(--sirio-blue);
}

.select-auth-box-headline {
    color: var(--sirio-blue);
    font-weight: 700;
}

.pf-c-tile {
    border-radius: 4px;
}

.subtitle {
    margin-top: 16px;
    color: var(--sirio-muted);
    text-align: left;
}

.sirio-footer {
    flex: 0 0 auto;
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
    line-height: 0;
}

.sirio-footer-image {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    #kc-header {
        margin-bottom: 22px;
    }

    #kc-header-wrapper {
        padding: 0 !important;
    }

    .sirio-header-image {
        width: 100%;
        height: 100px;
        object-fit: cover;
        object-position: 30% center;
    }

    .login-pf-page .card-pf {
        width: calc(100% - 24px);
        max-width: 540px;
        margin-right: auto;
        margin-bottom: 24px;
        margin-left: auto;
        padding: 26px 22px 24px;
        border-top: 5px solid var(--sirio-blue);
        border-radius: 6px;
        box-shadow: var(--sirio-shadow);
    }

    .login-pf-header {
        margin-bottom: 24px;
    }

    h1#kc-page-title {
        font-size: 27px;
    }

    .login-pf-settings,
    #kc-support {
        align-items: flex-start;
        flex-direction: column;
    }

    .kc-social-grid {
        grid-template-columns: 1fr;
    }

    .sirio-footer {
        padding-top: 12px;
        overflow: hidden;
    }

    .sirio-footer-image {
        width: 100%;
        height: 84px;
        object-fit: cover;
        object-position: 18% center;
    }
}

@media (max-width: 380px) {
    .login-pf-page .card-pf {
        width: calc(100% - 16px);
        padding-right: 18px;
        padding-left: 18px;
    }

    h1#kc-page-title {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sirio-skip-link,
    .pf-c-button,
    .pf-c-form-control,
    .form-control,
    .select-auth-box-parent {
        transition: none;
    }
}
