* {
    box-sizing: border-box;
}

.h1, .h2, h1, h2 {
    font-weight: 500;
}

a {
    text-decoration: underline;
}

a:hover, a:focus {
    outline: black dashed 1px;
}

hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top-width: 0px;
    border-top-style: none;
    border-top-color: currentcolor;
    border-top: 1px solid #f1f1f1;
}

.pf-v5-c-alert.pf-m-info {
    --pf-v5-c-alert--BorderTopColor: var(--button-color);
    --pf-v5-c-alert__icon--Color: var(--button-color);
    --pf-v5-c-alert__title--Color: black;
    --pf-v5-c-alert--m-inline--BackgroundColor: var(--button-color-light);
}

.label-wrapper,
.input-wrapper,
.form-options,
.form-buttons {
    width: 100%;
}

.pf-v5-c-form {
    --pf-v5-c-form--GridGap: unset;
}

.pf-v5-c-form .pf-v5-c-form__group {
    margin-right: 0;
    margin-left: 0;
}

.login-pf-header, .pf-v5-c-form__group {
    margin-bottom: 15px;
}

.pf-v5-c-form__label {
    font-size: inherit;
}

.pf-v5-c-form__label-text {
    font-weight: normal;
}

.btn-group-vertical > .btn-group::after, .btn-group-vertical > .btn-group::before, .btn-toolbar::after,
.btn-toolbar::before, .clearfix::after, .clearfix::before, .container-fluid::after, .container-fluid::before,
.container::after, .container::before, .dl-horizontal dd::after, .dl-horizontal dd::before,
.pf-v5-c-form .pf-v5-c-form__group::after, .pf-v5-c-form .pf-v5-c-form__group::before, .modal-footer::after,
.modal-footer::before, .modal-header::after, .modal-header::before, .nav::after, .nav::before,
.navbar-collapse::after, .navbar-collapse::before, .navbar-header::after, .navbar-header::before,
.navbar::after, .navbar::before, .pager::after, .pager::before, .panel-body::after, .panel-body::before,
.row::after, .row::before {
    content: none;
}

.login-pf {
    background: none;
}

.login-pf body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
    color: #333333;
    -webkit-font-smoothing: antialiased;
    padding: 0;
    margin: 0;
    background: #77deca none;
    line-height: 1.5;
}

.login-pf-page {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

.card-pf {
    margin: 0 10px;
    width: 320px;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.login-pf-page .login-pf-header h1,
.login-pf-page .login-pf-header .h1 {
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    text-align: center;
}

.login-pf-page .login-pf-signup {
    margin: 0 0 15px;
    font-size: 16px;
    text-align: left;
}

.login-pf-page .login-pf-settings {
    justify-content: flex-start;
}

#kc-password-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}

#kc-form-buttons.pf-v5-c-form__group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: center;
    margin-left: 0;
    gap: 10px;
}

.pf-v5-c-form-control {
    display: unset;
    width: unset;
    padding: unset;
    border: unset;
    border-radius: unset;
    color: unset;
    outline: unset;
    transition: unset;
}

input.pf-v5-c-form-control,
span.pf-v5-c-form-control input,
div.pf-v5-c-form-control input {
    display: block;
    width: 100%;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #495057;
    outline: medium none;
    transition: box-shadow .3s, border-color .3s;
    --pf-v5-c-form-control--BackgroundColor: white;
}

#kc-reset-password-form .pf-v5-c-form-control {
    display: contents;
}

.pf-v5-c-form-control:focus,
span.pf-v5-c-form-control input:focus,
div.pf-v5-c-form-control input:focus {
    border-color: #cec6e7;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 3px 0 rgba(145, 127, 200, .25);
}

.pf-v5-c-form-control:not(:focus)[aria-invalid=true],
span.pf-v5-c-form-control input:not(:focus)[aria-invalid=true],
div.pf-v5-c-form-control input:not(:focus)[aria-invalid=true] {
    border-color: #b94a48;
}

.pf-v5-c-button {
    display: inline-block;
    min-width: 240px;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #e6e6e6;
    border-bottom-color: #b3b3b3;
    border-radius: 4px;
    transition: background-color .3s;
    padding: 6px 12px;
    text-decoration: none;
    text-align: center;
}

.pf-v5-c-button:enabled:active, .pf-v5-c-button:enabled:hover {
    color: #333;
    background-color: #e6e6e6;
}

.pf-v5-c-button:enabled:focus {
    outline: 0 none;
    box-shadow: 0 0 0 .2rem hsla(0, 0%, 80%, .5);
}

.pf-v5-c-button:disabled {
    opacity: .65;
}

.pf-v5-c-button.pf-m-primary {
    color: #fff;
    background-color: #917fc8;
    border-color: #917fc8;
}

.pf-v5-c-button.pf-m-primary:enabled:focus {
    box-shadow: 0 0 0 .2rem rgba(145, 127, 200, .5);
}

.pf-v5-c-button.pf-m-primary:enabled:active {
    color: #fff;
    background-color: #5a449d;
    border-color: #503c8c;
}

.pf-v5-c-button.pf-m-primary:enabled:hover, a.pf-v5-c-button.pf-m-primary:hover {
    color: #fff;
    background-color: #644baf;
    border-color: #5a449d;
}

a.pf-m-secondary {
    border: none;
}

#registerWebAuthn, #cancelWebAuthnAIA {
    margin: auto;
}

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


/* TOTP */

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

.required {
    color: #a30000;
}

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

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

.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 screen and (min-width: 576px) {
    .card-pf {
        width: 520px;
    }

    #kc-form-buttons.pf-v5-c-form__group {
        flex-flow: row wrap;
        align-items: stretch;
        justify-content: flex-start;
    }

    .pf-v5-c-button {
        min-width: 150px;
    }

    #password, #password-new, #password-confirm {
        width: 438px !important;
    }

    .pf-v5-c-button.pf-m-block {
        width: auto;
    }
}

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

#kc-locale ul {
    background-color: #fff;
    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: #525252;
    text-align: right;
    font-size: 0.875rem;
}

a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: 0.25rem;
}

#kc-header {
    height: 110px;
    margin-bottom: 0;
    margin-top: auto;
}

#kc-header-wrapper {
    width: 162px;
    height: 70px;
    background: url('../img/kidos-logo.svg') no-repeat;
    background-size: contain;
}

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

#top-environment-banner {
    z-index: 999999999;
    position: absolute;
    top: 32px;
    left: -40px;
    display: block;
    white-space: nowrap;
    font-size: 30px;
    color: #fff;
    transform: rotate(321deg);
    width: 230px;
    max-width: 230px;
    background: rgba(0, 0, 0, .3);
    padding-right: 20px;
    text-align: center;
    overflow: hidden;
}

#top-environment-info {
    color: #fff;
    text-align: center;
    font-weight: 600;
}

.login-privacy-message {
    margin-top: 15px;
}

#layout-footer {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-bottom: auto;
}

#copyright-message {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
}

#password, #password-new, #password-confirm {
    width: 238px;
    display: inline;
}

.show-hide-password-button {
    display: inline-block;
    color: #333;
    background-color: #f5f5f5;
    border: 1px solid #e6e6e6;
    border-bottom-color: #b3b3b3;
    border-radius: 4px;
    transition: background-color .3s;
    text-decoration: none;
    text-align: center;
    font-family: FontAwesome, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    padding: 5px 12px;
}

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

.select-auth-box-parent {
    border-top: 1px solid #aaabac;
    padding-bottom: 1rem;
    cursor: pointer;
    background-color: white;
}

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

.select-auth-box-headline {
    font-size: 1rem;
    color: #1fa7f8;
    font-weight: bold;
}

.select-auth-box-desc {
    font-size: 0.875rem;
}

.select-auth-box-paragraph {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 5px;
}

.pf-v5-c-data-list__cell.pf-m-icon + .pf-v5-c-data-list__cell {
    align-content: center;
}

.select-auth-box-parent > .pf-v5-c-data-list__item-action {
    align-items: center;
    margin-right: 2rem;
    color: black;
}

@media screen and (min-width: 768px) {
    .pf-v5-c-data-list:not([class*="pf-m-grid"]) {
        padding-block-start: 0;

        .pf-v5-c-data-list__item-content {
            padding-block-end: 0;
        }
    }
}