* {
    box-sizing: border-box;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.kc-header-class {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 9rem;
}

.kc-header-wrapper {
    display: flex;
}

.kc-header-wrapper-logo {
    max-width: 200px;
    height: auto;
}

.kc-banner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem 1.3rem;
    gap: 1.5rem;
}

.kc-banner-img {
    width: 100%;
    max-width: 180px;
    height: auto;
}

.kc-banner-text {
    text-align: center;
}

.kc-login-account-title {
    font-size: larger;
    font-weight: bolder;
    font-family: var(--stack-title-b);
    margin-top: 1.55rem;
    line-height: 1.6rem;
}

.kc-login-account-sub-title {
    font-size: 0.93rem;
    font-weight: 500;
    margin: 1rem 0;
}

.kc-input-error-message {
    min-height: 1.5rem;
    font-size: small;
    display: flex;
    color: var(--idf-red);
}

#username {
    flex: auto;
}

.kc-input-error-icon-show,
.kc-input-error-icon-hide {
    display: flex;
    position: absolute;
    top: 30%;
    right: 1rem;
    width: 2rem;
}

#kc-form-wrapper,
#kc-otp-login-form,
#kc-form-trusted-device-name {
    margin: 2rem;
}

#kc-form-trusted-device,
#kc-update-email-form,
#kc-verif-email-form {
    margin: 2rem;
    max-width: 36rem;
}

.kc-form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.kc-form-group>label {
    margin: 0 0 0.3rem 1rem;
    font-weight: 500;
}

.kc-input-group {
    display: flex;
    flex-direction: row;
    position: relative;
}

#password {
    flex: auto;
}

.kc-form-password-visibility-button {
    display: flex;
    position: absolute;
    background-color: transparent;
    top: 30%;
    right: 1rem;
    border: none;
}

.kc-form-password-visibility-button:hover {
    cursor: pointer;
}

.kc-form-password-visibility-icon-show {
    width: 1.5rem;
    height: auto;
    visibility: visible;
}

.kc-form-password-visibility-icon-hide {
    width: 1.5rem;
    height: auto;
    visibility: visible;
}

#kc-form-buttons {
    margin-top: 2.5rem;
}

.kc-button {
    border-style: none;
    padding: 0.9rem 1.2rem 0.9rem 1.2rem;
    border-radius: 70px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background-color .35s ease, border .35s ease;
}

.kc-button:hover {
    cursor: pointer;
}

.kc-form-options-wrapper {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.kc-form-options-span {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kc-alert {
    font-size: small;
    margin: 0 2rem;
}

footer {
    padding: calc(1.5rem + 2.5vw);
    margin-top: auto;
}

#footer h3 {
    color: var(--idf-white);
    font-family: var(--stack-r);
    font-size: 0.95em;
}

footer>div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
}

.footer-margin-div {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-margin-div>img {
    max-width: 12rem;
}

.logo-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    padding: 0;
}

.logo-list.application {
    margin-top: 0.5rem;
}

.logo-list li {
    margin-right: 1rem;
}

.logo-list li img {
    width: 2rem;
    height: 2rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.conseil {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

@media (max-height: 768px) {
    #kc-content {
        margin: 0 !important;
    }

    .kc-form-group-buttons {
        margin-top: 0 !important;
    }

    .kc-banner {
        padding: 0;
    }

    .kc-banner img {
        max-width: 10rem !important;
    }

    #kc-form-wrapper {
        margin: 0.5rem;
    }

    .kc-login-account-title {
        margin-top: 0.4rem;
    }

    .kc-login-account-sub-title {
        margin: 0.4rem 0;
    }
}

@media (min-width: 768px) {
    .kc-banner {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        padding: 2rem 3rem;
    }

    .kc-banner-img {
        max-width: 200px;
    }

    .kc-banner-text {
        text-align: left;
        max-width: 400px;
    }

    #kc-content {
        align-items: center;
        justify-content: center;
        display: flex;
        margin: 1rem 0 1rem 0;
    }

    #kc-content-wrapper {
        max-width: max-content;
        min-width: 20rem;
    }

    #kc-form-buttons {
        margin-top: 1rem;
        align-self: center;
    }

    .kc-form-options-wrapper {
        margin-top: 0;
        align-self: stretch;
    }

    .kc-form-group-buttons {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: baseline;
        gap: 7rem;
        margin-top: 2rem;
    }

    .kc-alert {
        max-width: 25rem;
        margin-top: 2rem;
        justify-self: center;
    }

    .kc-alert-title {
        font-size: 1rem;
        font-weight: bolder;
    }

    .kc-banner div {
        max-width: 16rem;
    }

    footer {
        flex-grow: 1;
    }

    .footer-container {
        flex-direction: row;
        justify-content: space-around;
    }
}

@media (max-width: 1200px) {
    .footer-container {
        display: flex;
        flex-wrap: wrap;
    }

    .footer-inner {
        flex-basis: 48%;
        flex-grow: 1;
    }
}