.pf-v5-c-login__container {
    /* width setting */
    /* height: 100%; */
    grid-template-columns: 34rem;
    grid-template-areas: "header"
                         "main";
}

.login-pf body {
    background: url("../img/Login-djpl.webp") no-repeat center center fixed;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;

    @media (min-width: 992px) {
        background-size: cover;
    }

    @media (min-width: 1200px) {
        background-size: cover;
    }
}

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
}

h1#kc-page-title {
    margin: 5px 0 24px 0;
    font-weight: 600;
    padding: 8px;
    text-align: center;
}

#kc-username {
    text-align: center;
    margin-bottom: -10px;
}

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

.container-image{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    
    .image{
        background: url("../img/logo_2.webp") no-repeat;
        width: 142px;
        height: 90px;
    }
}

.login-header{
    padding: 0px;
}

/* .cst-form {
    border: solid 2px #D9D9D9 !important;
    border-radius: 4px;
} */

.button-container{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    gap: 16px;
    margin-top: 16px;
    a {
        color: #1565C0;
    }
}

.djpl-otp-footer {
    justify-content: flex-end;
}

.djpl-otp-page .pf-v5-c-form__group:has(#kc-attempted-username) {
    display: none;
}

.line {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
}

/* erase line form */

.pf-v5-c-form-control {

    /* border */
    --pf-v5-c-form-control--before--BorderTopColor: var(--pf-v5-global--BorderColor--100);
    --pf-v5-c-form-control--before--BorderRightColor: var(--pf-v5-global--BorderColor--100);
    --pf-v5-c-form-control--before--BorderLeftColor: var(--pf-v5-global--BorderColor--100);
    --pf-v5-c-form-control--before--BorderBottomColor: var(--pf-v5-global--BorderColor--100);
    --pf-v5-c-form-control--focus--after--BorderBottomColor: var(--pf-v5-global--primary-color--200);
}


.pf-v5-c-login {
    --pf-v5-c-login__main-body--PaddingBottom: var(--pf-v5-global--spacer--xl);
    --pf-v5-c-login--PaddingTop: var(--pf-v5-global--spacer--4xl);
    @media (min-width: 768px) {
        --pf-v5-c-login--PaddingTop: var(--pf-v5-global--spacer--xl):
    }
}



.login-pf body.djpl-totp-config-page {
    min-height: 100vh;
    height: auto;
    display: block;
    overflow-y: auto;
    padding: 32px 0;
    box-sizing: border-box;
}

body.djpl-totp-config-page .pf-v5-c-login {
    --pf-v5-c-login--PaddingTop: 0;
    min-height: auto;
    align-items: start;
    justify-items: center;
}

body.djpl-totp-config-page .pf-v5-c-login__container {
    min-height: auto;
    align-items: start;
    justify-content: center;
}

body.djpl-totp-config-page .pf-v5-c-login__main {
    margin: 0 auto;
}
.pf-v5-c-login__main {
    border-radius: 24px;
}

.pf-v5-c-form__label {
    margin-bottom: 8px;
}

.djpl-otp-group {
    margin-bottom: 24px;
}

.djpl-otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, minmax(42px, 1fr));
    gap: 14px;
}

.djpl-otp-input {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #d3dfef;
    border-radius: 10px;
    background-color: #edf4ff;
    color: #222222;
    font-size: 18px;
    line-height: 1;
    text-align: center;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.djpl-otp-input::placeholder {
    color: #b9bec7;
}

.djpl-otp-input:focus {
    border-color: #6aa1ff;
    background-color: #f4f8ff;
    box-shadow: 0 0 0 1px #6aa1ff;
}

.djpl-otp-input-error {
    border-color: var(--pf-v5-global--danger-color--100);
}

@media (max-width: 480px) {
    .djpl-otp-inputs {
        grid-template-columns: repeat(6, minmax(34px, 1fr));
        gap: 8px;
    }

    .djpl-otp-input {
        border-radius: 8px;
        font-size: 16px;
    }
}
