/* 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: #273041;

    a {
        color: #7cb0df;
    }
}

.login-pf body {
    background: unset;
    height: auto;
    min-height: 100%;
    font-family: 'Inter', sans-serif;
    display: flex;
    width: 100%;
}

.login-pf label {
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #E6E9EA;
    text-transform: capitalize;
}

.login-pf-page {
    display: flex;
    flex-direction: column;
    height: inherit;
    min-height: 100vh;
    justify-content: space-between;
    background-color: #191c1d;
    padding-top: 0;
    width: 41.67%;
    align-items: center;
}

.pf-c-form-control {
    border: 1px solid #E6E9EA33;
    border-radius: 6px;
    background: none;
    margin: 10px 0;
    padding: 10px 12px;
    caret-color: #72767b;
    color: #E6E9EA;
    font-weight: 200;
    font-size: 14px;
}

.pf-c-form-control::placeholder {
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #6E7587;
}

.pf-c-form-control[aria-invalid=true] {
    background-image: none;
    background: rgba(229, 67, 71, 0.04);
    border-bottom-width: thin;
    padding-bottom: 10px;
    border: 1px solid #E54347;
}

.toggle-password-icon {
    position: relative;
    bottom: 40px;
    left: 92%;
    z-index: 2;
    cursor: pointer;
    opacity: 0.4;
}

img#ic-password-register, #ic-password-confirm-register {
    position: absolute;
    bottom: 22px;
    left: 87%;
}

img#ic-password-register[aria-invalid=true], #ic-password-confirm-register[aria-invalid=true] {
    bottom: 42px;
}

img#ic-password-register[aria-invalid=true], #ic-password-confirm-register[aria-invalid=true] {
    bottom: 42px;
}

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

input[type=checkbox] {
    margin: 0;
}

.pf-c-form-control:not(textarea) {
    height: 40px;
}

.pf-c-form-control:focus {
    padding-bottom: 10px;
    border-bottom-width: thin;
}

.pf-c-form-control:focus-visible {
    outline: none;
}

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

.pf-c-form__label-text {
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #E6E9EA;
    text-transform: capitalize;
}

p.instruction {
    margin: 5px 0;
}

.pf-c-button.pf-m-control {
    border: solid var(--pf-global--BorderWidth--sm);
    border-color: rgba(230, 230, 230, 0.5);
}

.pf-c-button.pf-m-primary {
    margin: auto;
    padding: 8px 24px;
    height: 40px;
    color: #191c1d;
    background-color: #7cb0df;
    border-radius: 6px;
}

.btn-group-lg>.btn, .btn-lg {
    font-weight: 500;
    font-size: 14px;
    line-height: 14px;
}

h1#kc-page-title {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px;
    color: #FFF;
    text-align: left;
}

span#kc-page-label {
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: #6E7587;
    text-align: center;
}

#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: #7cb0df;
    text-decoration: none;
}

#kc-logo {
    width: 100%;
}

div.kc-logo-text {
    display: flex;
    height: 64px;
    margin-left: 25px;
}

div.kc-login-description {

    max-width: 830px;
    margin: 0 auto;
}

div.kc-login-description span {
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    color: #6E7587;
    text-transform: none;
    word-break: break-word;
}

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

#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: 0px;
}

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

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

#kc-info-wrapper {
    margin: auto;
    font-size: 13px;
}

#kc-form-options {
    text-align: left;
}

#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 {
    float: right;
    color: #E54347;
    opacity: 0.8;
}

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

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

#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: 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 body {
        background: url("../img/ubp-bg.svg") no-repeat center center;
        background-size: cover;
        height: auto;
        flex-direction: column;
    }

    #kc-header {
        float: none;
        text-align: left;
    }

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

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

    /** Footer **/
    .foo {
        padding: 30px 25px 50px !important;
    }

    .foo, .logos {
        justify-content: space-around !important;
    }
    /** End Footer **/
}

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

.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(--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: unset;
    border-radius: 6px;
    box-shadow: none;
    margin: 0 25px;
    max-width: 330px;
}

@media (min-width: 768px) {
    .login-pf-page .card-pf {
        padding: 0;
    }
}

@media (min-width: 768px) {
    .login-pf-page .login-pf-header {
        margin-bottom: 0;
    }
    
    .login-pf-page .login-pf-page-header {
        margin-bottom: 0;
    }
}

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

    .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{
    margin: 0;
    text-align: left;

    a {
        margin-left: 0;
    }

}

.account-info {
    display: block;
    color: #6e7587;
    margin-top: 8px;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    padding-bottom: 40px;
  
    a {
      text-decoration: underline;
    }
}
#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;
}

.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;
}
/* End Recovery codes */

div#forgot-password {
    position: relative;
    float: right;
    clear: both;
}

div#forgot-password a {
    text-decoration: underline;
    color: #7cb0df;
}

div#back-to-login {
    text-align: center;
    margin-top: 8px;
}

div#back-to-login a {
    color: #7cb0df;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
}

a:focus {
    outline: none;
    outline-offset: unset;
    color: #7cb0df;
    text-decoration: none;
}

/* Footer */
.foo {
    margin: 0 auto;
    max-width: 330px;
  }
  
.contact-info {
    border-top: 1px solid #e6e9ea29;
    padding: 16px 0 32px 0;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    color: #E6E9EA;

    a {
        text-decoration: underline;
    }
}
/* End Footer */

.right-content {
    background: url("../img/background.png") no-repeat center center;
    background-size: cover;
    width: 58.33%;
    display: flex;
    flex-direction: column-reverse;
}
.right-content-logos {
    margin: 32px 24px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

@media (max-width: 767px) {

    .right-content {
        width: 100%;
    }

}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #E6E9EA;
    font-size: 14px;
    transition: background-color 5000s ease-in-out 0s;
}

.alert-success {
    position: absolute;
    bottom: 0;
    margin-bottom: 30px;
    color: #363636;
    border-color: unset;
    border-radius: 6px;
    border: 1px solid rgba(230, 233, 234, 0.20);
    background: #191C1D;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.20);
    max-width: 378px;
    display: flex;
    align-items: center;


    .fa-check-circle:before {
        content: "\f00c";
        color: #00BF70
    }

    .pf-c-alert__title {
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        color: #E6E9EA;
    }
}

.alert-warning {
    position: absolute;
    bottom: 0;
    margin-bottom: 30px;
    color: #363636;
    border-color: unset;
    border-radius: 6px;
    border: 1px solid rgba(230, 233, 234, 0.20);
    background: #191C1D;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.20);
    max-width: 378px;
    display: flex;
    align-items: center;

    .pf-c-alert__title {
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px;
        color: #E6E9EA;
    }
}