/* 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. */

/***General***/
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat-Regular.otf");
}

.login-pf body {
    font-family: Montserrat !important;
    color: rgba(255, 255, 255, 1);
    font-size: 14px;
    margin-top: 0px;
    background-image: url(../images/wave.svg), radial-gradient(farthest-corner at 45px 45px, rgba(255, 255, 255, 1) 0%, rgba(26, 27, 35, 1) 60%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    min-height: 100vh;
    height: auto;
}

#rememberMe {
    font-weight: normal;
}

.pf-c-form-control {
    font-size: 16px;
    font-weight: bold;
    font-family: Montserrat !important;
    color: rgba(255, 255, 255, 1);
    border: none;
    border-radius: 0px;
    background-color: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
    box-shadow: none;
    -webkit-box-shadow: none;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    margin: auto;
    padding: 0px 35px;
    display: block;
    width: 100%;
    height: 34px;
    line-height: 1.42857143;

}

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

input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(255, 255, 255, 1);
    -webkit-box-shadow: 0 0 0px 0px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
    font-family: Montserrat !important;
    font-weight: bold !important;
    color: rgba(255, 255, 255, 1) !important;
    
}

input:-internal-autofill-selected {
    background-color: rgba(70, 90, 126, 0) !important;
    font-family: Montserrat !important;
    font-weight: bold !important;
    color: rgba(255, 255, 255, 1) !important;
}

input:-internal-autofill-previewed {
    font-weight: bold !important;
}

input:-webkit-autofill::first-line {
    font-weight: bold !important;
} 

span.ti-user:before,
span.ti-lock:before {
    position: relative;
    top: 24px;
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    margin-left: 5px;
}

[class^="ti-"],
[class*=" ti-"] {
    font-family: 'themify';
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
}

select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-text-fill-color: rgba(255, 255, 255, 1);
    -webkit-box-shadow: 0 0 0px 0px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

textarea:focus,
input:focus {
    border: none !important;
    outline: none !important;
}

.pf-c-form-control:hover,
.pf-c-form-control:focus,
.pf-c-form-control:focus-visible {
    border-bottom: 1px solid rgba(255, 255, 255, 1) !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
}

::placeholder {
    color: var(--pf-global--palette--black-400) !important;
}


.pf-c-form-control[aria-invalid="true"] {
    border-bottom: 1px solid rgba(255, 255, 255, 1);
    -webkit-box-shadow: none;
    box-shadow: none;
}

/***Cabecera*****/
.login-pf-header {
    background-image: url(../images/idboxrt_light.svg);
    background-repeat: no-repeat;
    background-size: 280px auto;
    background-position: 50% 50%;
    padding-bottom: 9px;
    width: 300px;
    height: 200px;
    margin-top: 15vh;
    text-align: center;
    border-bottom: none;
    margin: -90px 0px 0px;
}

#kc-header {
    background-image: url(../images/idboxrt_dark.svg);
    background-repeat: no-repeat;
    background-size: 120px auto;
    background-position: 3% 0%;
    min-height: 16%;
}

#kc-header-wrapper {
    display: none;
}

.instruction {
    text-align: center;
}

/** Form **/

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

.pf-c-form__label-text {
    display: none;
}

.pf-c-button.pf-m-control {
    --pf-c-button--after--BorderColor: none !important;
    --pf-c-button--m-control--after--BorderWidth: none !important;
}

.pf-c-button.pf-m-control i {
    transition: all 0.3s ease 0s !important;
}

.pf-c-button.pf-m-control:hover i {
    color: var(--pf-global--palette--black-200);
}

.pf-c-check__label,
.pf-c-radio__label {
    font-size: 14px;
    font-size: var(--pf-global--FontSize--sm);
}

.pf-c-alert.pf-m-inline {
    margin-bottom: 0.9rem;
    /* default - IE compatibility */
    /* margin-bottom: var(--pf-global--spacer--sm); */
    padding: 0.25rem;
    margin-top: -1.5em;
    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);
}

#kc-error-message {
    text-align: center;
}

.pf-c-button {
    display: inline-block;
    font-family: Montserrat !important;
    padding: 4% 9%;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    border: 0px solid transparent;
    border-radius: 50px;
    box-shadow: 0px 7px 20px rgba(255, 255, 255, .5);
    transition: all 0.3s ease 0s;
    color: rgba(26, 27, 35, 1) !important;
    background-color: rgba(255, 255, 255, 1) !important;
    touch-action: manipulation;
    cursor: pointer;
}

.pf-c-button.pf-m-block {
    display: block;
    width: 200px;
    text-align: center;
    margin: 0 auto;
}

.pf-c-button:hover {
    color: rgba(255, 255, 255, 1) !important;
    background-color: rgba(0, 93, 251, 1) !important;
    box-shadow: 0px 7px 20px rgba(0, 93, 251, .2) !important;
}

div.form-group.login-pf-settings {
    /*span ¿Has olvidado tu contraseña?*/
    display: flex;
    flex-direction: column;
    align-content: center;
}

h1#kc-page-title {
    display: none;
}

/***REgional language list***/
#kc-locale ul {
    background-color: #FFF;
    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;
}

/* IE compatibility */
#kc-locale-dropdown a {
    display: none;
    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%;
}

div.kc-logo-text {
    background-image: url(../../../../base/login/resources/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 {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

#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-content-wrapper .links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3vh;
    gap: 1.5vw;
    font-size: 12px;
    text-decoration: none;
    outline: 0px !important;
}

#kc-info-message {
    text-align: center;
}

#kc-info-wrapper {
    font-size: 13px;
    padding: 15px 35px;
    color: rgba(255, 255, 255, 1)
        /* background-color: #F0F0F0; */
}

#kc-form-options {
    margin: 1em auto;
}

#kc-form-options .checkbox {
    font-weight: normal;
}

#kc-form-options:last-child a {
    display: none;
}

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

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

#kc-social-providers h4 {
    color: var(--pf-global--palette--black-200);
}

/* TOTP */

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

.required {
    color: rgb(251, 129, 129, .74);
    /* default - IE compatibility */

}

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

#kc-oauth #kc-form-buttons > div {
    display: flex;
    gap: 2vw;
}

#kc-oauth #kc-form-buttons > div > #kc-login, #kc-oauth #kc-form-buttons > div > #kc-cancel {
    display: flex;
    width: 12vw;
}

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

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

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

    .login-pf-page .login-pf-page-header {
        margin-bottom: 0 !important;
        background-repeat: no-repeat;
        background-size: 80% auto;
        background-position: 50% 50%;
        padding-bottom: 9px;
        height: 100px;
    }

    .login-pf-page .card-pf {
        padding: 20px 40px 0px 40px;
    }
}

@media (max-width: 767px) {

    #kc-header {
        background-image: url(../images/idboxrt_light.svg);
        background-repeat: no-repeat;
        background-size: 120px auto;
        background-position: 8% 1%;
    }

    .form-group {
        width: 90%;
        margin: 0 auto;
    }

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

    .pf-c-button {
        width: 50% !important;
    }

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

.form-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3vh;
    gap: 3vw;
}

.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 {
    display: flex;
    justify-content: center;
    flex-flow: column;
    align-items: center;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0) !important;
    background-color: transparent;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 500px;
}

.card-pf p {
    color: rgba(255, 255, 255, .7) !important;
}

.login-pf-page .login-pf-signup {
    /* display: none; */
    background-color: transparent;
    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;
}


/* Cookies dialog */
.ui-dialog {
    background-color: #2b2b2b !important;
    border: none !important;
}

@media (max-width: 376px) {
    .ui-dialog-content {
        width: 385px !important;
        margin: 0 auto !important;
    }
}

.ui-dialog .ui-dialog-titlebar {
    background-color: transparent !important;
    border: none !important;
    font-size: 8px !important;
    text-transform: uppercase !important;
    font-family: 'Montserrat' !important;
}

.ui-dialog .ui-dialog-title {
    color: white;
    text-align: center;
    font-size: 1.6em;
    width: 100% !important;
}

.ui-dialog .ui-dialog-titlebar-close {
    display: none;
}

.ui-dialog p {
    color: white;
    font-size: 12px;
    font-family: 'Montserrat';
    text-align: justify;
}

.ui-dialog .links {
    display: flex;
    justify-content: space-between;
}

.ui-dialog .links a {
    color: #0088ce;
    text-decoration: none;
    font-family: 'Montserrat';
    font-size: 12px;
    outline: 0px !important;
}

.ui-dialog .links a:focus {
    outline: 0px auto -webkit-focus-ring-color !important;
}


.ui-dialog .links a:hover {
    color: #0099d3;
}

.ui-dialog .buttons {
    display: flex;
    justify-content: center;
}

.ui-dialog .buttons * {
    margin: 10px;
}

.idbox-container {
    max-width: 700px !important;
}