@font-face {
    font-family: 'Roboto';
    src: url('./roboto/Roboto-Regular.woff2') format('woff2'),
    url('roboto/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto';
    src: url('./roboto/Roboto-Medium.woff2') format('woff2'),
    url('roboto/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

.pf-v5-c-login__container {
    grid-template-columns: 36rem;
    grid-template-areas: "header"
                         "main";
    font-family: 'Roboto', sans-serif;
}

.login-pf body {
    background: #E2F1FF;
    height: 100%;
}

div.kc-logo-text {
    background-image: url(../img/logo-bb.svg);
    background-repeat: no-repeat;
    height: 70px;
    width: 338px;
    margin: 0 auto;
}

div.kc-login-wrapper {
    background: white;
    box-shadow: 0 2px 4px rgba(51, 51, 51, 0.04), 0 4px 6px rgba(51, 51, 51, 0.08);
    border-radius: 16px;
}

div.kc-logo-text span {
    display: none;
}

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

#kc-recovery-codes-list {
    columns: 2;
}

#certificate_subjectDN {
    overflow-wrap: break-word
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    white-space: normal;
    color: var(--pf-v5-global--Color--light-100) !important;
    text-align: center;
}

hr {
    margin-top: var(--pf-v5-global--spacer--sm);
    margin-bottom: var(--pf-v5-global--spacer--md);
}

@media (min-width: 768px) {
    div.pf-v5-c-login__main-header {
        grid-template-columns: 70% 30%;
    }
}

.pf-v5-c-login__main {
    background: none;
    box-shadow: none;
    color: black;
}

.kc-apps {
    background: #E2F1FF;
    padding: 16px 32px 32px 32px;
    border-radius: 16px;
    color: #222;
    font-weight: 500;
    text-align: center;
    font-size: 16px;
    margin-top: 24px;
}

.kc-apps_logos {
    display: flex;
    justify-content: space-between;
    margin-top: 16px;
}

.kc-apps_logo {
    width: 183px;
    height: 54px;
}

.kc-apps_logo--play {
    background: url('../img/google.svg');
}

.kc-apps_logo--appstore {
    background: url('../img/apple.svg');
}

.pf-v5-c-form-control {
    background: transparent;
    outline-color: transparent;
    border-bottom: none !important;
}

.pf-v5-c-form-control:after {
    border: none;
}

.pf-v5-c-form-control>:is(input) {
    border: 1px solid #E5E5E5;
    border-radius: 5px;
    line-height: 20px;
    font-size: 14px;
    padding: 10px 15px;
    color: #333;
    font-family: 'Roboto', sans-serif;
}

.pf-v5-c-form-control>:is(input):-webkit-autofill,
.pf-v5-c-form-control>:is(input):-webkit-autofill:hover,
.pf-v5-c-form-control>:is(input):-webkit-autofill:focus,
.pf-v5-c-form-control>:is(input):-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #333333 !important;
}

.pf-v5-c-form-control>:is(input)[aria-invalid="true"] {
    border: 1px solid #FF4A4D;
}

.pf-v5-c-form-control>:is(input)[aria-invalid="true"]:focus {
    outline: 2px solid #FF4A4D;
}

.pf-v5-c-form-control>:is(input):focus {
    border-color: transparent;
    outline: 2px solid #275dc5;
}

.pf-v5-c-button {
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    font-weight: 500;
    font-size: 18px;
    line-height: 26px;
    border: 0;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.pf-v5-c-button.pf-m-primary {
    background-color: #037FF9;
    color: white;
}

.kc-eye-button {
    position: absolute;
    font-family: 'RedHatText', sans-serif;
    right: 0;
    height: 42px;
    width: 42px;
    background: none;
    border: none;
    color: #9a9a9a;
}

.kc-relative {
    position: relative;
}

.kc-custom-checkbox:where(input) {
    background-color: transparent;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.kc-custom-checkbox-view {
    position: absolute;
    width: 17px;
    height: 17px;
    background: white;
    pointer-events: none;
    border: 1px solid #037FF9;
    border-radius: 4px;
    outline: 1px solid white;
    cursor: pointer;
}

.kc-custom-checkbox-view-checked {
    background: #037FF9;
}

.kc-custom-checkbox-view-checked:before {
    content: "";
    background: url('../img/check.svg') 50% 50% no-repeat;
    font-size: 12px;
    position: relative;
    display: block;
    width: 15px;
    height: 16px;
    top: 0;
    left: 0;
    text-align: center;
}

.kc-custom-checkbox-label {
    font-size: 14px;
    line-height: 18px;
    user-select: none;
}

label.pf-v5-c-check {
    align-items: flex-start;
}

div.pf-v5-c-login__container {
    padding-inline-end: 0;
    padding-inline-start: 0;
}

div#kc-header-wrapper.pf-v5-c-brand {
    margin: 0;
}

div.pf-v5-c-login__main-header {
    text-align: center;
    padding-top: 32px;
    padding-bottom: 32px;
    display: block;
}

h1.pf-v5-c-title.pf-m-3xl {
    font-size: 24px;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

span.pf-v5-c-form__label-text {
    font-weight: 400;
    display: block;
    margin-bottom: 4px;
}

span.pf-v5-c-helper-text__item-text a {
    color: #037FF9;
}

span.kc-forgot-password {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 8px;
    font-weight: 500;
}
.kc-login-bottom-text a,
span.kc-forgot-password a {
    color: #037FF9;
}

.kc-login-bottom-title {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    margin-top: 32px;
}

.kc-login-bottom-text {
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #7a7a7a;
    margin-top: 12px;
}

div.pf-v5-c-login__main-body {
    padding-right: 64px;
    padding-left: 64px;
}

.kc-forgot-description {
    color: #7a7a7a;
    font-size: 14px;
    text-align: center;
    margin-top: -24px;
    margin-bottom: 32px;
}

.kc-back-login {
    text-align: center;
}

.kc-back-login_link {
    font-weight: 500;
    font-size: 14px;
    color: #037FF9;
}

div .pf-v5-c-alert.pf-m-inline {
    border: none;
    border-radius: 4px;
}

div.pf-m-success {
    background: #d8f1d4;
}

div.pf-m-success .pf-v5-c-alert__icon {
    color: #34c759;
}

div.pf-m-success span.pf-v5-c-alert__title.kc-feedback-text {
    color: #333333;
    font-weight: 400;
}

div.pf-m-danger {
    background: #ffefef;
}

div.pf-m-danger .pf-v5-c-alert__icon {
    color: #FF4A4D;
}

div.pf-m-danger span.pf-v5-c-alert__title.kc-feedback-text {
    color: #FF4A4D;
    font-weight: 400;
}
