@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

.login-pf-page {
    padding: 0;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

.panel-container {
    width: 100%;
    height: 100%;
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: row;
}

.panel-left {
    width: 65%;
    background: linear-gradient(143.92deg, #172E2B 0%, #172E2B 22.02%, #101317 42.71%, #101317 71.35%, #1C1328 82.81%, #1C1328 100%);
    border-radius: 20px;
    height: calc(100vh - 2rem);
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

.left-header {
    position: absolute;
    height: 4rem;
    top: 40%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.creative-logo {
    width: 100%;
}

.main-img {
    position: absolute;
    bottom: auto;
    height: 110%;
    left: 50%;
    transform: translateX(-50%);
}

.corner-logo {
    position: absolute;
    bottom: 22px;
    right: 22px;
    width: 40px;
    opacity: 0.8;
}

.panel-right {
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-pf-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.pf-c-dropdown__menu {
    display: none;
    width: 10rem;
}

.login-pf-header:hover .pf-c-dropdown__menu {
    display: block;
}

.panel-logo {
    width: 13rem;
    position: absolute;
    top: 10%;
}

.card-pf {
    width: 100%;
    box-shadow: none;
    border-top: none;
    max-width: 440px;
}

.login-htmldisplayname-container {
    height: 3.25rem;
    width: 100%;
    max-width: 370px;
    background-color: #FFEBD5;
    border-radius: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow: hidden;
    color: #D07000;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 10%;
}

.login-htmldisplayname-container img {
    margin: 0 0.75rem;
}

.login-htmldisplayname-left {
    width: 4px;
    background: #FF9518;
    height: 100%;
}

.card-summary {
    margin-bottom: 1.5rem;
}

.card-summary > h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.card-summary > p {
    font-size: 1.1rem;
    color: #74797C;
    line-height: 24px;
    margin-bottom: 1.5rem;
}

.form-group, .panel-form-group {
    margin-bottom: 1.5rem;
}

.form-group > label {
    font-weight: bold;
}

.pf-c-form__label {
    font-size: 1rem;
    font-weight: bold;
}

input[type] {
    border-radius: 50px;
    height: 2.5rem;
    border: 1px solid #DCE3E8;
}

input[type]:focus {
    outline: 1px solid;
}

#otp {
    border-radius: 50px;
    height: 2.5rem;
    border: 1px solid #DCE3E8;
}

.login-pf-settings {
    width: 100%;
}

#kc-form-buttons {
    width: 100%;
}

input[type="submit"], input[type="button"] {
    font-weight: bold;
    background-color: #40B59D !important;
    border-color: #40B59D;
    border-radius: 50px;
    height: 2.5rem;
    width: 100% !important;
    margin-top: 1.5rem;
} 

input[type="submit"]:disabled {
    color: white;
}

.card-pf > a:link { text-decoration: none; }


.card-pf > a:visited { text-decoration: none; }


.card-pf > a:hover { text-decoration: none; }


.card-pf > a:active { text-decoration: none; }

#restartLogin {
    border-radius: 50px;
    border: 1px solid #CA0B0B;
    font-weight: bold;
    background: #CA0B0B !important;
}

@media screen and (max-width: 1024px) {
    .panel-container {
        flex-direction: column;
    }

    .panel-left {
        position: relative;
        width: 100%;
        height: 5rem;
        border-radius: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .main-img {
        display: none;
    }

    .header-container {
        display: flex;
        justify-content: flex-start;
        width: 100%;
        order: -5;
        margin-bottom: -50px;
    }

    .login-pf-header {
        position: initial;
        left: 20%;
        top: 1rem;
        width: 8rem !important;
    }

    .login-pf-header > * {
        width: 8rem;
    }

    .pf-c-dropdown__menu {
        left: 0;
    }

    .left-header {
        position: initial;
        transform: none;
        top: auto;
        left: auto;
        margin-bottom: 1rem;
        height: 1.5rem;
    }

    .corner-logo {
        display: none;
    }

    .panel-right {
        position: absolute;
        bottom: 0;
        width: 100%;
        height: calc(100% - 4rem);
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        background-color: white;
        justify-content: space-between;
        padding-top: 1rem;
    }

    .card-pf {
        max-width: none;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .card-pf > * {
        max-width: 440px;
        width: 100%;
    }

    .card-summary > h1 {
        font-size: 1.5rem;
    }

    .card-summary > p {
        font-size: 1rem;
        line-height: 17px;
    }

    .card-pf > #kc-content {
        width: 100%;
    }

    input[type] {
        border-radius: 50px;
        height: 3rem;
        font-size: 1.05rem;
    }

    #otp {
        border-radius: 50px;
        height: 3rem;
    }

    #restartLogin {
        font-size: 1.05rem;
        width: 440px;
    }

    .panel-logo {
        order: 10;
        width: 100%;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: none;
        position: initial;
    }

    .panel-logo .creative-logo {
        padding-bottom: 44px;
        margin-top: 0.5rem;
        width: 7rem;
    }

    @media screen and (max-width: 640px) {
        .header-container {
            margin-bottom: -50px !important;
        }
        
        .card-pf > * {
            margin: 0 1.5rem;
        }

        #restartLogin {
            width: 100%;
        }
    }
}

/* Pour avoir le même effet que login-pf-page de patternfly css sur les autres pages */
@media screen and (min-width: 768px) {
    .card-pf {
        padding: 20px 40px 30px 40px;
    }
}

/* Tablettes en landscape */
@media screen and (min-width: 768px), screen and (max-height: 500px) {
    .card-pf {
        z-index: 10;
    }

    .login-pf-settings {
        margin-bottom: 0;
    }

    .login-htmldisplayname-container {
        margin-bottom: 1rem;
    }
}

@media screen and (min-width: 2000px) {
    .panel-left {
        max-width: calc(55vw - 1rem)
    }
}