@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700');

/***************************
 * Defining color variables
****************************/

:root {
    --wik-surface: #fcfcfd;
    --wik-surface-container: #efedf1;
    --wik-surface-container-lowest: #ffffff;
    --wik-surface-container-low: #f5f3f7;
    --wik-surface-container-high: #eae7ec;
    --wik-surface-container-highest: #e4e1e6;
    --wik-on-surface: #1b1b1f;
    --wik-surface-hover: #efedf1;
    --wik-surface-container-hover: #dbd9de;
    --wik-surface-container-high-hover: #dbd9de;
    --wik-surface-container-highest-hover: #dbd9de;
    --wik-on-surface-variant: #47464a;
    --wik-layer: #fcfcfd;
    --wik-layer-hover: #efedf1;
    --wik-outline: #77767a;
    --wik-outline-variant: #c8c6ca;
    --wik-primary: linear-gradient(145deg, #24356a 20%, #614ece 50%, #00b9ff 80%);
    --wik-on-primary: #ffffff;
    --wik-button-disabled: #e4e1e6;
    --wik-on-button-disabled: #77767a;
    --wik-secondary: #e4e1e6;
    --wik-on-secondary: #1b1b1f;
    --wik-secondary-hover: #c8c6ca;
    --wik-on-tertiary: #24356a;
    --wik-tertiary-hover: #24356a;
    --wik-on-tertiary-hover: #fff;
    --wik-delft-blue: #24356a;
    --wik-on-delft-blue: #ffffff;
    --wik-delft-blue-hover: #394e89;
    --wik-iris: #614ece;
    --wik-on-iris: #ffffff;
    --wik-iris-hover: #806dd6;
    --wik-danger: #ba1a1a;
    --wik-danger-hover: #93000a;
    --wik-on-danger: #ffffff;
    --wik-scrollbar-thumb: #c8c6ca;
    --wik-scrollbar-thumb-hover: #acaaaf;
    --wik-overlay: hsla(0, 0%, 0%, 0.5);
    --wik-on-surface-disabled: #c8c6ca;
    --wik-notification-error: #ffe2de;
    --wik-notification-on-error: #410002;
    --wik-notification-error-hover: #ffcfc9;
    --wik-notification-warning: #ffefcd;
    --wik-notification-on-warning: #241a00;
    --wik-notification-warning-hover: #ffe08b;
    --wik-notification-info: #dce1ff;
    --wik-notification-on-info: #001550;
    --wik-notification-info-hover: #b6c4ff;
    --wik-notification-success: #c6ffc6;
    --wik-notification-on-success: #002108;
    --wik-notification-success-hover: #85fb96;
    --wik-tag-gray: #e4e1e6;
    --wik-tag-on-gray: #39393c;
    --wik-tag-delft-blue: #c1c8dc;
    --wik-tag-on-delft-blue: #1a2451;
    --wik-tag-iris: #cac0ed;
    --wik-tag-on-iris: #0015a1;
    --wik-tag-deep-sky-blue: #b2e7ff;
    --wik-tag-on-deep-sky-blue: #005ba5;
    --wik-tag-green: #85fb96;
    --wik-tag-on-green: #00531e;
    --wik-tag-yellow: #ffe08b;
    --wik-tag-on-yellow: #584400;
    --wik-tag-red: #ffdad6;
    --wik-tag-on-red: #790006;
    --wik-tag-blue: #dce1ff;
    --wik-tag-on-blue: #003ab1;
    --wik-tag-gradient: linear-gradient(
            145deg,
            #24356a 20%,
            #614ece 50%,
            #00b9ff 80%
    );
    --wik-tag-on-gradient: #ffffff;
    --wik-toggle-off: #919094;
    --wik-toggle-switch: #ffe2de;
    --wik-toggle-on: #2aa64c;
    --pf-v5-c-title--m-3xl--FontSize: var(--pf-v5-global--FontSize--3xl);
    --pf-v5-c-login__main-footer--PaddingBottom: 0rem;
}

/*********************
 * Login page elements
 *********************/

body {
    font-family: 'Poppins', Calibri, Arial, sans-serif;
}

.login-pf {
    background: none;
}

.login-pf body {
    background: var(--wik-primary);
    color: var(--wik-on-surface);
    height: 100%;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/************
 * Containers
 ************/

/** main container of the login page */
.pf-v5-c-login {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
}

/** wrapper container */
.pf-v5-c-login__container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/** header container (container of the logo) */
#kc-header {
    margin-top: 0;
    margin-bottom: 40px;
}

/** header wrapper */
#kc-header-wrapper {
    margin-bottom: 0;
}

/** card container of the login */
.wik-login__main {
    margin: 0 auto;
    max-width: 500px;
    background-color: var(--wik-surface);
    border: none;
    box-shadow: none;
    border-radius: 0.5rem;
    padding: 20px 40px 30px 40px;
}

/** header of the card container */
.pf-v5-c-login__main-header {
    display: flex;
    flex-direction: column-reverse;
    font-size: 1.5rem;
    padding: 0;
    margin-bottom: 10px;
}

/** body of the card container */
.pf-v5-c-login__main-body {
    padding: 0;
}

/** footer of the card container */
.pf-v5-c-login__main-footer-band {
    border: none;
}

/******
 * Logo
 ******/

div.kc-logo-text {
    background-image: url(../img/logo-wikit-fond-blanc.png);
    background-repeat: no-repeat;
    height: 100px;
    width: 100px;
    margin: 0 auto;
    background-size: contain;
}

div.kc-logo-text span {
    display: none;
}

/***************
 * Login header
 ***************/

/** main title of the login card */
.wikit-main-title {
    font-size: 1.5rem;
    text-align: center;
    font-weight: 300;
}

/*******************
 * Language Selector
 *******************/

/** language selector wrapper */
.pf-v5-c-login__main-header-utilities {
    align-self: flex-end;
}

.pf-v5-c-login__main-header-utilities .pf-v5-c-form-control {
    background: none;
    padding: 0;
    height: auto;
}

/** do not display the select icon */
.pf-v5-c-form-control__utilities {
    display: none;
}

/** select html tag */
#login-select-toggle {
    appearance: none;
    background: var(--wik-surface);
    font-size: 14px;
    padding: 0;
    position: relative;
    display: grid;
    text-align: center;
    -webkit-border-radius: 30px;
    border-radius: 30px;
    transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    -moz-transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    -o-transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    -webkit-transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    cursor: pointer;
}

#login-select-toggle:hover {
    text-decoration: none;
    background: var(--wik-layer-hover);
    color: var(--wik-on-tertiary);
}

#login-select-toggle:focus-visible {
    outline: none;
}

#login-select-toggle option {
    background-color: var(--wik-surface);
}

/**********
 * Messages
 **********/

#kc-error-message p {
    margin-bottom: 10px;
    text-align: center;
}

#kc-info-message p {
    margin-bottom: 10px;
    text-align: center;
}

#kc-info {
    margin-top: 20px;
    text-align: center;
}

p.instruction {
    margin-bottom: 10px;
}

/*******
 * Forms
 *******/

.pf-v5-c-form__actions {
    flex-direction: row-reverse;
}

.pf-form__options__wrapper {
    margin-bottom: 12px;
}

/** remove before and after content */
.pf-v5-c-form-control::before {
    content: none;
}

/* used to align form options with wikit links */
#kc-form-options {
    padding-top: 0.2rem;
}

/* used to align form options with wikit links */
#kc-form-options .checkbox {
    margin-top: 0;
    margin-bottom: 0;
}

/** remove before and after content */
.pf-v5-c-form-control::after {
    content: none;
}

.pf-v5-c-form-control {
    background-color: var(--wik-surface);
}

.pf-v5-c-form-control input {
    outline: none;
    -moz-border-radius: 1rem;
    -webkit-border-radius: 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-color: var(--wik-surface-container);
    color: var(--wik-on-surface);
    padding: 0 1rem;
    width: 100%;
    border: none;
    padding-right: 10%;
}

.pf-v5-c-form-control input:focus {
    border: 1.5px solid var(--wik-outline);
}

.pf-v5-c-form-control input:not(textarea) {
    height: 2.5rem;
}

input:read-only {
    color: gray;
}

.pf-v5-c-form__label-text {
    font-size: 0.75rem;
    line-height: 1rem;
    padding: 0;
    color: var(--wik-on-surface-variant);
    font-weight: 500;
}

.pf-v5-c-form__label {
    cursor: auto !important;
    margin-bottom: 0.75rem;
}

/* used to align form options with wikit links */
.pf-v5-c-check {
    padding-top: 0.2rem;
}

/* used to align form options with wikit links */
.pf-v5-c-check .pf-v5-c-check {
    margin-top: 0;
    margin-bottom: 0;
}

/* used to align form options with wikit links */
.pf-v5-c-check__label {
    font-size: 0.75rem;
    color: var(--wik-on-surface-variant);
    font-weight: 500;
}

.pf-v5-c-check__input {
    transform: translateY(calc(var(--pf-v5-c-check__label--LineHeight) * var(--pf-v5-c-check__label--FontSize) / 2 - 70%));
}

.pf-v5-c-helper-text__item-text {
    font-size: 0.75rem;
    align-self: flex-end;
}

.pf-v5-c-helper-text__item {
    flex-direction: row-reverse;
}

/* used to display eye lash to hide/show password inside the password input */
.pf-v5-c-input-group {
    display: flex;
    outline: none;
    -moz-border-radius: 1rem;
    -webkit-border-radius: 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
    background-color: var(--wik-surface-container);
    color: var(--wik-on-surface);
    border: none;
    position: relative;
}

/* used to display button to hide/show password inside the password input */
.pf-v5-c-input-group .pf-v5-c-form-control {
    padding-right: 2.5rem;
}

/* used to display button to hide/show password inside the password input */
.pf-v5-c-input-group .pf-v5-c-form-control:focus {
    z-index: auto;
}

/* used to display button to hide/show password inside the password input */
.pf-v5-c-button.pf-m-control {
    align-items: center;
    height: 100%;
    position: absolute;
    right: 0;
    background: none;
    padding: 0 1rem 0 0;
}

.kc-tooltip-text {
    font-size: 0.875rem;
}

.pf-v5-c-input-group__item {
    border: none;
}

.pf-v5-c-button.pf-m-control:after {
    content: none;
}

.pf-v5-c-input-group .pf-v5-c-form-control {
    padding-right: 0;
}

/** Invalid input style */
.required {
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--wik-danger);
    margin-top: 0.375rem;
    margin-left: 0.25rem;
}

/** Remove user agent autofill styles */
input:autofill {
    box-shadow: inset 0 0 0 100px var(--wik-surface-container);
}

/*******************
 * Buttons and links
 *******************/

button {
    border: none;
    background: none;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    border-radius: initial;
}

.pf-v5-c-button.pf-m-secondary:after, button.pf-v5-c-button.btn-default.pf-m-block.btn-lg:after {
    content: none;
}

a, .pf-v5-c-button.pf-m-secondary, button.pf-v5-c-button.btn-default.pf-m-block.btn-lg {
    background: rgba(0, 0, 0, 0);
    color: var(--wik-on-tertiary);
    height: 1.75rem;
    -webkit-border-radius: 30px;
    border-radius: 30px;
    transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    -moz-transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    -o-transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    -webkit-transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    display: inline-flex;
    width: max-content;
    align-items: center;
    min-width: 6rem;
    justify-content: center;
    padding: 0.75rem 0.875rem;
    font-size: 0.75rem;
}

button.pf-v5-c-button.btn-default.pf-m-block.btn-lg {
    margin-bottom: 10px;
}

a:hover, .pf-v5-c-button.pf-m-secondary:hover, button.pf-v5-c-button.btn-default.pf-m-block.btn-lg:hover {
    text-decoration: none;
    background: var(--wik-layer-hover);
    color: var(--wik-on-tertiary);
}

/** primary button */
.pf-v5-c-button.pf-m-primary {
    background: var(--wik-primary);
    color: var(--wik-on-primary);
    height: 2.75rem;
    -webkit-border-radius: 30px;
    border-radius: 30px;
    transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    -moz-transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    -o-transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    -webkit-transition: background cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    font-size: 0.875rem;
    display: inline-flex;
    width: max-content;
    align-items: center;
    min-width: 6rem;
    justify-content: center;
    padding: 0.75rem 0.875rem;
    width: 100%;
    justify-content: center;
}

.pf-v5-c-button.pf-m-primary:hover {
    background-size: 300% 100%;
    background-position: 100% 0;
}

.pf-v5-c-button.pf-m-primary:focus {
    outline: none;
    border: 1px solid var(--wik-outline);
    box-shadow: inset 0 0 0 1px var(--wik-outline), inset 0 0 0 2.5px #fff;
}

/***************
 * Notifications
 ***************/

.pf-v5-c-alert {
    border: none;
    border-radius: 0.5rem;
    padding: 0.875rem 0.75rem;
    display: flex;
    margin-bottom: 1.5rem;
}

.pf-v5-c-alert.pf-m-inline {
    min-height: 3rem;
}

.pf-v5-c-alert__title,
.pf-v5-c-alert__icon {
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
}

.pf-v5-c-alert__icon {
    font-size: 1.25rem;
}

/*
 * Danger notification
 */
.pf-v5-c-alert.pf-m-danger {
    background-color: var(--wik-notification-error);
    color: var(--wik-notification-on-error);
}

.pf-v5-c-alert.pf-m-danger .pf-v5-c-alert__title, .pf-v5-c-alert.pf-m-danger .pf-v5-c-alert__icon {
    color: var(--wik-notification-on-error);
}

/*
 * Success notification
 */
.pf-v5-c-alert.alert-success {
    background-color: var(--wik-notification-success);
    color: var(--wik-notification-on-success);
}

.pf-v5-c-alert.alert-success .pf-v5-c-alert__title, .pf-v5-c-alert.alert-success .pf-v5-c-alert__icon {
    color: var(--wik-notification-on-success);
}

/*
 * Warning notification
 */
.pf-v5-c-alert.alert-warning {
    background-color: var(--wik-notification-warning);
    color: var(--wik-notification-on-warning);
}

.pf-v5-c-alert.alert-warning .pf-v5-c-alert__title, .pf-v5-c-alert.alert-warning .pf-v5-c-alert__icon {
    color: var(--wik-notification-on-warning);
}

/*
 * Info notification
 */
.pf-v5-c-alert.alert-info {
    background-color: var(--wik-notification-warning);
    color: var(--wik-notification-on-warning);
}

.pf-v5-c-alert.alert-info .pf-v5-c-alert__title, .pf-v5-c-alert.alert-info .pf-v5-c-alert__icon {
    color: var(--wik-notification-on-warning);
}

/************
 * Responsive
 ************/

@media (max-width: 767px) {
    .wikit-main-title {
        font-size: 1.2rem;
    }

    .pf-v5-c-login__container {
        max-width: none;
        width: 100%;
    }

    .wik-login__main {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-top: 20px;
        border-top: 0;
        box-shadow: 0 0;
        border-radius: 0;
    }
}

@media (max-width: 767px) {
    #kc-header {
        padding-left: 15px;
        padding-right: 15px;
        float: none;
        text-align: left;
    }

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: bold;
        padding: 20px 60px 0 0;
        letter-spacing: 0;
    }

    div.kc-logo-text {
        margin: 0;
        width: 50px;
        height: 50px;
        background-size: 100%;
    }

    #login-select-toggle {
        background: none;
        color: var(--wik-surface);
        font-size: 1rem;
    }

    .pf-v5-c-login__main-header-utilities {
        position: absolute;
        top: 20px;
        right: 20px;
        text-align: right;
        z-index: 9999;
    }
}
