/* Patternfly CSS places a "bg-login.jpg" as the background on this ".login-pf" class.
   This clashes with the "keycloak-bg.png' background defined on the body below.
   Therefore the Patternfly background must be set to none. */
.login-pf {
    background: none;
}

.login-pf header {
    margin-left: -20px;
    margin-right: -20px;
}

.login-pf body {
    background-image: url("../img/background.jpg");
    background-size: cover;
    height: 100%;
    font-family: Helvetica Neue, Helvetica, sans-serif;
}

body {
    font-family:"Open Sans",Helvetica,Arial,sans-serif;
    font-size:12px;
    line-height:1.66666667;
    color:#ffffff;
}

.checkbox label,
.radio label {
    min-height:20px;
    padding-left:20px;
    margin-bottom:0;
    font-weight:400;
    cursor:pointer;
    color: #ffffff;
}

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

.pf-c-form-control:not(textarea) {
    height: var(--pf-c-form-control--Height);
    text-overflow: ellipsis;
    background-color: #00000000;
    border: none;
    padding: 2px 0 4px 5px;
    color: white;
    outline: none;
    font-weight: bold;
    font-size: 16px;
}

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

.pf-c-alert__icon {
    color: #F0AD00;
}

.kc-feedback-text {
    font-weight: normal;
    font-size: 14px;
}

p.instruction {
    margin: 5px 0;
}

.pf-c-button.pf-m-control {
    border-color: rgba(230, 230, 230, 0.5);
}

div#kc-page-title {
    font-weight: bold;
    color: white;
    font-size: 15px;
}

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

#kc-locale-dropdown button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--pf-global--Color--200);
    text-align: right;
    font-size: var(--pf-global--FontSize--sm);
}

button#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: #0099d3;
}

#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-username-opt {
    text-align: center;
    margin-bottom: -10px;
    margin-left: -20px;
    margin-right: -20px;
}

#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 {
    color: #ffffff;
    font-size: 13px;
    padding: 15px 35px;
    background-color: #00000000;
}

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

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

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

#kc-registration-terms-text {
    max-height: 100px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 5px;
}

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

/* TOTP */

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

.required {
    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-links li {
    width: 100%;
}

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

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

.kc-social-gray h2 {
    font-size: 1em;
}

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

.kc-social-provider-name {
    position: relative;
}

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

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

.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;
    text-align: left;
    align-items: unset;
    background-color: unset;
    border-right: unset;
    border-bottom: unset;
    border-left: unset;
}

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

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

.card-pf {
    margin: 0 auto;
    background-color: #0000007f;
    box-shadow: var(--pf-global--BoxShadow--lg);
    padding: 0 20px;
    max-width: 500px;
    border: 2px solid #000000;
    border-radius: 4px;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

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

.login-pf-page .card-pf p {
    color: #ffffff;
}

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

.form-group {
    border: 2px solid #525252;
    border-radius: 4px;
    margin-bottom: 15px;
}

.form-group-otp {
    border: 2px solid #525252;
    border-radius: 4px;
    margin-bottom: 15px;
    margin-left: -20px;
    margin-right: -20px;
}

#kc-login-otp-options {
    padding-bottom: 50px;
}

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

#certificate_subjectDN {
    overflow-wrap: break-word
}

.pf-c-form__label-text {
    font-weight: var(--pf-c-form__label-text--FontWeight);
    color: white;
    padding: 5px 0 0 5px;
    font-size: 11px;
}

div span a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
}

.pf-c-button.pf-m-primary {
    font-family: Helvetica Neue, Helvetica, sans-serif;
    font-weight: bold;
    background-color: #DE367B;
    border: 1px #DE367B;
    border-radius: 4px;
    width: 100%;
    padding: 5px 0;
}

.pf-c-form-control:not(textarea) {
    height: var(--pf-c-form-control--Height);
    text-overflow: ellipsis;
    background-color: transparent;
    border: none;
}

.pf-c-form-control:not(textarea):focus {
    border: none;
}

.login-pf-page .login-pf-settings {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    border: none;
}

.form-horizontal .form-group {
    margin-right: -20px;
    margin-left: -20px;
}

.pf-c-input-group {
    --pf-c-input-group--BackgroundColor: var(--pf-global--BackgroundColor--100);
    --pf-c-input-group--child--ZIndex: var(--pf-global--ZIndex--xs);
    --pf-c-input-group__text--FontSize: var(--pf-global--FontSize--md);
    --pf-c-input-group__text--PaddingRight: var(--pf-global--spacer--sm);
    --pf-c-input-group__text--PaddingLeft: var(--pf-global--spacer--sm);
    --pf-c-input-group__text--Color: var(--pf-global--Color--dark-200);
    --pf-c-input-group__text--BorderWidth: var(--pf-global--BorderWidth--sm);
    --pf-c-input-group__text--BorderTopColor: var(--pf-global--BorderColor--300);
    --pf-c-input-group__text--BorderRightColor: var(--pf-global--BorderColor--300);
    --pf-c-input-group__text--BorderBottomColor: var(--pf-global--BorderColor--200);
    --pf-c-input-group__text--BorderLeftColor: var(--pf-global--BorderColor--300);
    --pf-c-input-group__text--BackgroundColor: var(--pf-global--BackgroundColor--100);
    --pf-c-input-group__textarea--MinHeight: var(--pf-global--spacer--xl);
    --pf-c-input-group__text--m-disabled--Color: var(--pf-global--disabled-color--100);
    --pf-c-input-group__text--m-disabled--BackgroundColor: var(--pf-global--disabled-color--300);
    --pf-c-input-group__text--m-disabled--BorderBottomColor: transparent;
    --pf-c-input-group--c-form-control--invalid--ZIndex: var(--pf-global--ZIndex--xs);
    --pf-c-input-group--c-form-control--MarginRight: 0;
    color: var(--pf-global--Color--100);
    display: flex;
    width: 100%;
    background-color: transparent;
}

/* End Recovery codes */
.pf-c-input-group>*+* {
    background-color: transparent;
    border: none;
}

#kc-reset-password-form > div:nth-child(1) > div:nth-child(1) {
    padding: 0 0 5px 0;
}

#kc-reset-password-form > div:nth-child(1) > div:nth-child(2) {
    padding: 0;
}

#kc-form-buttons {
    border: none;
}

#kc-totp-settings-form > div:nth-child(1) > div:nth-child(1) {
    padding: 0 0 0 5px;
}

#kc-totp-settings-form > div:nth-child(2) > div:nth-child(1) {
    padding: 0 0 0 5px;
}

#kc-totp-settings-form > div:nth-child(1) > div:nth-child(2) {
    padding: 0 0 0 5px;
}

#kc-totp-settings-form > div:nth-child(2) > div:nth-child(2) {
    padding: 0 0 0 5px;
}

#kc-totp-settings-form > div:nth-child(3) {
    border: none;
}

#input-error {
    display: none;
}

#kc-form-login > div:nth-child(2) > div > button {
    padding: 0;
}

.pf-c-form-control[aria-invalid=true] {
    --pf-c-form-control--PaddingRight: var(--pf-c-form-control--invalid--PaddingRight);
    --pf-c-form-control--BorderBottomColor: #C9190B;
    padding-bottom: var(--pf-c-form-control--invalid--PaddingBottom);
    background-image: var(--pf-c-form-control--invalid--BackgroundUrl);
    background-position: var(--pf-c-form-control--invalid--BackgroundPosition);
    background-size: var(--pf-c-form-control--invalid--BackgroundSize);
    border-bottom-width: var(--pf-c-form-control--invalid--BorderBottomWidth);
}

#input-error-otp-code {
    display: none;
}

#kc-passwd-update-form > div:nth-child(3) {
    border: none;
}

#kc-passwd-update-form > div:nth-child(1) > div:nth-child(2) > div > button {
    display: none;
}

.pf-c-tile {
  --pf-c-tile--PaddingTop: var(--pf-global--spacer--lg);
  --pf-c-tile--PaddingRight: var(--pf-global--spacer--lg);
  --pf-c-tile--PaddingBottom: var(--pf-global--spacer--lg);
  --pf-c-tile--PaddingLeft: var(--pf-global--spacer--lg);
  --pf-c-tile--BackgroundColor: transparent;
  --pf-c-tile--Transition: none;
  --pf-c-tile--TranslateY: 0;
  --pf-c-tile--before--BorderColor: transparent;
  --pf-c-tile--before--BorderWidth: var(--pf-global--BorderWidth--sm);
  --pf-c-tile--after--Height: var(--pf-global--BorderWidth--lg);
  --pf-c-tile--after--BackgroundColor: transparent;
  --pf-c-tile--after--Transition: none;
  --pf-c-tile--after--ScaleY: 1;
  --pf-c-tile--after--TranslateY: 0;
  --pf-c-tile__icon--MarginRight: var(--pf-global--spacer--sm);
  --pf-c-tile__icon--FontSize: var(--pf-global--icon--FontSize--md);
  --pf-c-tile__icon--Color: var(--pf-global--Color--100);
  --pf-c-tile__title--Color: var(--pf-global--Color--100);
  --pf-c-tile__body--Color: var(--pf-global--Color--100);
  --pf-c-tile__body--FontSize: var(--pf-global--FontSize--xs);
  --pf-c-tile--hover--after--BackgroundColor: var(--pf-global--active-color--400);
  --pf-c-tile--hover__icon--Color: var(--pf-global--primary-color--100);
  --pf-c-tile--hover__title--Color: var(--pf-global--primary-color--100);
  --pf-c-tile--focus--after--BackgroundColor: var(--pf-global--active-color--400);
  --pf-c-tile--focus__icon--Color: var(--pf-global--primary-color--100);
  --pf-c-tile--focus__title--Color: var(--pf-global--primary-color--100);
  --pf-c-tile--m-selected--TranslateY: calc(-1 * var(--pf-c-tile--m-selected--after--ScaleY) * var(--pf-c-tile--m-selected--after--Height));
  --pf-c-tile--m-selected--Transition: var(--pf-global--Transition);
  --pf-c-tile--m-selected--after--Height: var(--pf-global--BorderWidth--lg);
  --pf-c-tile--m-selected--after--BackgroundColor: var(--pf-global--active-color--100);
  --pf-c-tile--m-selected--after--Transition: var(--pf-global--Transition);
  --pf-c-tile--m-selected--after--ScaleY: 2;
  --pf-c-tile--m-selected__icon--Color: var(--pf-global--primary-color--100);
  --pf-c-tile--m-selected__title--Color: var(--pf-global--primary-color--100);
  --pf-c-tile--m-disabled--BackgroundColor: var(--pf-global--disabled-color--300);
  --pf-c-tile--m-disabled__icon--Color: var(--pf-global--disabled-color--100);
  --pf-c-tile--m-disabled__title--Color: var(--pf-global--disabled-color--100);
  --pf-c-tile--m-disabled__body--Color: var(--pf-global--disabled-color--100);
  --pf-c-tile__header--m-stacked__icon--MarginBottom: var(--pf-global--spacer--xs);
  --pf-c-tile__header--m-stacked__icon--FontSize: var(--pf-global--icon--FontSize--lg);
  --pf-c-tile--m-display-lg__header--m-stacked__icon--FontSize: var(--pf-global--icon--FontSize--xl);
  position: relative;
  display: inline-grid;
  padding: 24px 48px 24px 0;
  text-align: center;
  cursor: pointer;
  background-color: var(--pf-c-tile--BackgroundColor);
  grid-template-rows: min-content;
  transition: var(--pf-c-tile--Transition);
  transform: translateY(var(--pf-c-tile--TranslateY));
}

.pf-c-tile__title {
  color: white;
}

.pf-c-tile__body {
  font-size: var(--pf-c-tile__body--FontSize);
  color: transparent;
}

.pf-c-tile__icon {
    visibility: hidden;
    margin: 0 0 0 0;
}
