/* =========== Variables =========== */

:root {
    --primary:                                    #4358DB;
    --primary-rgb:                                67, 88, 219;
    --primary-light:                              #465be8;
    --primary-medium:                             #3b4cc8;
    --primary-dark:                               #2d399d;
    --primary-sub:                                #2c3899;

    --special-grey :                               rgba(var(--primary-rgb), 0.03);
    --grey-ultra-light :                           #f1f1f1;
    --grey-light :                                 #d9d9d9;
    --grey-medium :                                #bcbcbc;
    --grey-dark :                                  #8B8E90;
    --grey-black :                                 #4C5053;
    --black :                                      #213D57;
    --white:                                       #fefefe;

    --error:                                       #FF3434;
    --error-rgb:                                   255, 52, 52;
    --error-light:                                       #ff5e5e;

    --warning:                                     #f2b746;
    --warning-rgb:                                 242, 183, 70;

    --success:                                     #87d122;
    --success-rgb:                                 135, 209, 34;
    --success-light:                               #98e03a;

    --transitionOut:                               180ms ease-in;
    --transitionIn:                                240ms ease-in-out;

    --global-radius:                               4px;

    --font-primary:                                "PT Sans", sans-serif;
    --font-secondary:                              "Work Sans", Arial, sans-serif;
}

/* =========== Utils =========== */

.text-primary { color: var(--primary);}
.text-center { text-align: center;}
._spaceTop { padding-top: 24px;}
._spaceBottom { padding-bottom: 24px;}
._spaceY { padding: 24px 0;}
._spaceX { padding: 0 24px;}
._spaceXY { padding: 24px;}
._justifyRight { justify-content: right !important;}
._justifyCenter { justify-content: center !important;}

/* =========== Core ============= */

@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap');

body, html {
    display: block;
    height: 100%;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;

    * {
        font-family: var(--font-primary);
    }

    @media screen and (max-width: 1025px) {
        overflow-y: auto;
    }
}

a {
    color: var(--primary);
    text-decoration: none;
}

hr {
    clear: both;
    max-width: 1152px;
    height: 0;
    margin: 22px auto;
    border-top: 0;
    border-right: 0;
    border-bottom: 1px solid var(--grey-medium);
    border-left: 0;
}

/* =========== Animations =========== */

@keyframes showCallout {
    0% {
        -webkit-transform: translateY(54px);
        transform: translateY(54px);
        opacity: 0;
    }
    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

/* =========== Elements UI =========== */

/* ----- Labels */
.label {
    display: block;
    font-size: 14px;
    font-weight: normal;
    line-height: 1.8;
    color: var(--black);
}

.required {
    color: var(--error);
    font-size: 18px;
}

/* ----- Links */
.link {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    text-decoration: underline;
}

.link:hover {
    text-decoration: none;
}

/* ----- Fields  */

.form-fields-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-inner-group {
    position: relative;
    display: flex;
}

.form-fields-group  .field {
    margin-bottom: 0;
}

.field-inner-group._hasIcon .field {
    padding-left: 34px;
    margin: 0;
}

.field-inner-group._hasIcon .fieldIcon {
    position: absolute;
    bottom: .6875rem;
    left: .625rem;
    font-size: 17px;
    z-index: 1;
    opacity: .8;
    color: var(--black);
}

.field {
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 39px;
    margin: 0 0 18px;
    padding: 9px;
    border: 1px solid #bcbcbc;
    border-radius: 4px;
    background-color: #fefefe;
    box-shadow: inset 0 1px 2px rgba(33, 61, 87, 0.1);
    font-family: inherit;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    color: #213D57;
    transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
}

.field::placeholder {
    color: var(--grey-medium);
}

.field-password-visibility {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 39px;
    width: 39px;
    border: none;
    background: transparent;
    font-size: 18px;
    color: var(--grey-medium);
    cursor: pointer;
}

/* ----- Buttons  */
.button, a.button {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
    justify-content: center;
    height: 39px !important;
    margin: 0 0 16px 0;
    padding: 0 12px;
    border-radius: 999px;
    line-height: 1;
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
    text-align: center;
    cursor: pointer;
    border: none;
    z-index: 1;
    overflow: hidden;
    transition: var(--transitionOut);
}

.button._noSpace, a.button._noSpace {
    margin-bottom: 0;
}

button.button {
    width: 100%;
}

.button:hover {
    box-shadow: 0 1px 4px rgba(var(--primary-rgb), 0.5);
}

.button i {
    font-size: 12px;
}

.button:focus {
    box-shadow: rgba(var(--primary-rgb), 0.4) 0px 1px 4px, rgb(var(--primary-rgb), 0.4) 0px 0px 0px 3px;
    background-color: var(--primary-light);
}

.button-outlined {
    background: white !important;
}

/* > Default */
.button-default {
    box-shadow: inset 0px 0px 0px 2px var(--grey-light);
    background-color: var(--grey-ultra-light);
    color: var(--grey-black);
    transition: var(--transitionIn);
}

.button-default:hover {
    box-shadow: inset 0px 0px 0px 2px var(--grey-light);
    background-color: var(--white);
    transition: var(--transitionIn);
}

/* > Primary */
.button-primary {
    box-shadow: inset 0px 0px 0px 2px var(--primary);
    background-color: var(--primary);
    color: white;
}

.button-primary:hover {
    background-color: var(--primary-light);
    transition: var(--transitionIn);
}

.button-outlined.button-primary {
    box-shadow: inset 0px 0px 0px 2px var(--primary);
    color: var(--primary);
}

.button-outlined.button-primary:hover,
.button-outlined.button-primary:focus {
    background-color: var(--special-grey) !important;
}

.button-fade.button-primary {
    background-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: inset 0px 0px 0px 2px rgba(var(--primary-rgb), 0.2);
    color: var(--grey-black);
}

.button-fade.button-primary:hover,
.button-fade.button-primary:focus {
    background-color: var(--special-grey) !important;
}

/* > Success */
.button-success {
    box-shadow: inset 0px 0px 0px 2px var(--success);
    background-color: var(--success);
    color: white;
}

.button-success:hover,
.button-success:focus {
    box-shadow: inset 0px 0px 0px 2px var(--success) !important;
    background-color: var(--success-light) !important;
    transition: var(--transitionIn);
}

.button-outlined.button-success {
    box-shadow: inset 0px 0px 0px 2px var(--success);
    color: var(--success);
}

.button-outlined.button-success:hover,
.button-outlined.button-success:focus {
    background-color: var(--special-grey);
}

/* > Error */
.button-error {
    box-shadow: inset 0px 0px 0px 2px var(--error);
    background-color: var(--error);
    color: white;
}

.button-error:hover,
.button-error:focus {
    box-shadow: inset 0px 0px 0px 2px var(--error) !important;
    background-color: var(--error-light) !important;
    transition: var(--transitionIn);
}

.button-outlined.button-error {
    box-shadow: inset 0px 0px 0px 2px var(--error);
    color: var(--error);
}

.button-outlined.button-error:hover,
.button-outlined.button-error:focus {
    background-color: var(--special-grey);
}
/* ----- Banner */
.banner {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2;
}

.banner-content {
    position: relative;
    display: flex;
    height: 28px;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 16px;
    overflow: hidden;
    z-index: 1;
}

.banner._warning .banner-content {
    background-color: var(--warning);
}

.banner-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    font-size: 54px;
    color: black;
    opacity: 0.2;
}

.banner-text {
    font-size: 14px;
    flex: 1;
    text-align: center;
    color: var(--black);
}

/* ----- News */
.news {
    width: 100%;
    max-width: 620px;
    object-fit: contain;
    border-radius: 16px;
    overflow: hidden;
}

.news img {
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

@media screen and (max-width: 720px) {

    .news {
        margin-bottom: 44px;
    }

    .news img {
        object-fit: contain;
        height: 100%;
    }
}


/* ----- Callouts */
.callout {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
    max-width: 100%;
    overflow: hidden;
    line-height: 120%;
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
    border-radius: var(--global-radius);
    padding: 12px;
}

.callout-item {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.callout li {
    list-style: none;
}

.callout-error {
    color: var(--error);
    background-color: rgb(255, 224.55, 224.55);
    animation: showCallout 280ms cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.callout-info {
    color: var(--primary-dark);
    background-color: rgba(var(--primary-rgb), 0.15);
}

 /* Effet au focus */
input:focus,
textarea:focus {
    outline: none;
    border: 1px solid var(--primary);
    background-color: var(--grey-ultra-light);
    box-shadow: 0 0 5px var(--primary);
    transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
}

/* Feedback */

.kc-feedback {
    margin-bottom: 16px;
    padding: 8px;
    border-radius: 12px;
    border-width: 2px;
    border-style: solid;
    font-size: 14px;
    text-align: center;
    animation: showCallout 280ms cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

.kc-feedback.pf-m-info {
    color: var(--primary-dark);
    background-color: rgba(var(--primary-rgb), 0.15);
    border-color: var(--primary-dark);
}

.kc-feedback.pf-m-success {
    background: rgba(var(--success-rgb), 0.4);
    border-color: var(--success);
}

.kc-feedback.pf-m-danger {
    background: rgba(var(--error-rgb), 0.4);
    border-color: var(--error);
}

    /* ----- Title Separator */

.titleSeparator {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: center;
    z-index: 0;
}

.titleSeparator:before {
    content: '';
    position: absolute;
    height: 1px;
    width: 100%;
    top: 50%;
    left: 0;
    background: var(--grey-medium);
    z-index: 0;
}

.titleSeparator h4 {
    position: relative;
    background: white;
    margin: 4px auto;
    padding: 0 16px;
    color: var(--black);
}

/* =========== LOGIN PAGE LAYOUT =========== */
.entity-logo {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    height: 74px;
    width: 74px;
    margin-bottom: 24px;
    background-image:  url('../img/beclm_logo.svg');
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
}

.entity-logo:before {
    position: absolute;
    top: -8px;
    left: -8px;
    color: var(--primary);
    font-weight: bold;
    font-size: 11px;
}

.app-login {
    display: flex;
    flex-flow: column-reverse;
    align-items: stretch;
    min-height: 100vh;
    width: 100vw;
    font-family: "PT Sans", sans-serif;
    background-color: var(--white);

    @media screen and (min-width: 1025px) {
        flex-flow: row wrap;
    }
}

.app-login-intro-container {
    position: sticky;
    top: 0;
    flex: 1;
    height: calc(100vh - 64px);
    min-width: 53%;
    min-height: 680px;
    padding: 64px 34px 0 78px;
    overflow: hidden;

    @media screen and (max-width: 1024px) {
        min-height: inherit;
        height: inherit;
        padding: 34px 34px;
        overflow: hidden;
    }
}

.app-login-intro-container:after {
    position: absolute;
    top: -37vw;
    left: 50%;
    transform: translate(-50%, 0);
    display: block;
    height: 60vw;
    width: 60vw;
    background-color: #F0F1F6;
    border-radius: 100%;
    content: "";
    z-index: 0;
    aspect-ratio: 1/1;

    @media screen and (min-width: 90em) { top: -40vw;}
    @media screen and (max-width: 1024px) { display: none;}
}

.app-login-intro-container:before {
    position: absolute;
    bottom: -46vw;
    left: 50%;
    transform: translate(-50%, 0);
    display: block;
    height: 60vw;
    width: 60vw;
    background-color: #F0F1F6;
    border-radius: 100%;
    content: '';
    z-index: 1;

    @media screen and (min-width: 1200px) { bottom: -51vw;}
    @media screen and (min-width: 1440px) { bottom: -53vw;}
}

.app-login-intro {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 1;
}

.app-login-infos {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* -------- Forms elements wrapper */

.form-options-wrapper {
    display: flex;
}

.actions-forms {
    display: flex;
    justify-content: space-between;
}

.actionsRow {
    flex-direction: row;
    gap: 16px;

    .button {
        flex: 1;
        margin-bottom: 0;
    }
}

.actionsColumn {
    flex-direction: column;
}

.actions-forms-element {
    display: block;
}

.actions-forms-element a,
.actions-forms-element .button {
    margin-bottom: 0;
}

/* -------- Catch Phrase Top */
.loginCatchphrases {
    position: relative;
    padding-top: rem-calc(34px);
    padding-bottom: rem-calc(24px);
}

.loginCatchphrases-sentence {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    font-family: var(--font-secondary);
    font-size: 34px;
    font-weight: 700;
    color: var(--black);
    text-align: center;

    @media screen and (max-width: 1024px) {
        margin: 24px 0;
    }
}

.loginCatchphrases-footer {
    padding-bottom: 28px;
    font-size: 18px;
    font-weight: bold;
    color: var(--black);
    text-align: center;
}

._sub {
    color: var(--primary);
}

/* -------- Concept steps */
.loginConcept {
    pointer-events: relative;
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    gap: 24px;

    @media print, screen and (min-width: 1025px) {
        flex-direction: row;
    }
}

.loginConcept li {
    list-style: none;
}

.loginConcept-title {
    max-width: 174px;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 20px;
    color: var(--primary);
}

.loginConcept-text {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.4;
    text-rendering: optimizeLegibility;
    color: var(--grey-black);
}

/* =========== LOGIN FORM =========== */

/* ----- Layout Block Form  */
.app-login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    @media screen and (max-width: 1025px) {
        padding: 98px 34px 34px 34px;
    }
    @media screen and (min-width: 1025px) { margin: 34px 0;}
}

.block-container {
    margin-bottom: 20px;
    width: 66%;
    max-width: 364px;
    border: none;
    border-radius: 0 20px 0 0;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.14);

    @media screen and (max-width: 1025px) {
      width: 100%;
    }
}

.block-login-head {
    display: block;
    padding: 12px 18px;
    border-radius: 8px 16px 0 0;
    background-color: var(--primary);
    color: var(--white);
    font-weight: bold;
    font-size: 24px;
}

.block-content {
    padding: 16px;
}

/* ----- Social Account List */
.social-account-list {
    padding: 0;
}

.social-account-list li {
    list-style: none;
}

    /* ----- Buttons Services */
.loginModule-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.loginModule {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px;
    border: 2px solid var(--grey-ultra-light);
    color: var(--black);
    border-radius: 54px;
    cursor: pointer;
    transition: var(--transitionOut);
}

.loginModule:hover {
    border-color: var(--primary);
    background-color: var(--special-grey);
    transition: var(--transitionIn);
}

.loginModule:hover .loginModule-link {
    color: var(--primary);
}

.loginModule-link {
    margin-right: 8px;
    font-size: 22px;
    color: rgba(var(--primary-rgb), 0.2);
}

.loginModule-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 40px;
    margin: 0;
    text-align: center;
    border-radius: 40px;

    img {
        max-width: 24px;
        max-height: 24px;
    }

}

.loginModule-name {
    flex: 1;
    padding-left: 8px;
    font-size:14px;
    font-weight: bold;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* > ServiceDesk Module */
.loginModule.serviceDeskModule {
    background-color: var(--special-grey);
}

.loginModule.serviceDeskModule:hover {
    border-color: var(--primary);
}

.loginModule.serviceDeskModule .loginModule-logo {
    background-color: var(--black);
}

.loginModule.serviceDeskModule._selected {
    color: white;
    background-color: var(--primary);
    border-color: var(--primary);
}

/* > Astree Module */

.loginModule.astreeModule {
    background-color: var(--special-grey);
}

.loginModule.astreeModule:hover {
    background-color: #e1e4ef;
    border-color: rgba(var(--primary-rgb), .7);
}

.loginModule.astreeModule .loginModule-logo {

    img {
        max-width: 35px;
        max-height: 45px;
    }
}

/* ----- Layout Block Helper Infos */
.block-info {
    position: relative;
    width: calc(66% - 34px);
    max-width: calc(364px - 34px);
    padding: 16px;
    border-radius: 5px;
    background-color: rgba(var(--primary-rgb), 0.05);
    color: #4c5153a6;
    font-size: 13px;
    box-shadow: 0 1px 6px 0 rgba(0, 0, 0, 0.14);
    overflow: hidden;

    @media screen and (max-width: 1025px) {
        width: calc(100% - 34px);
    }
}

.block-info-list {
    margin-bottom: 0;
    margin-top: 8px;
    padding-left: 16px;
}

.block-info-icon {
    position: absolute;
    top: -10px;
    left: -8px;
    font-size: 54px;
    color: rgba(var( --primary-rgb), 0.1);
    margin-right: 5px;
}

.shortcut {
    display: inline-block;
    margin-bottom: 2px;
    background-color: var(--grey-light);
    font-weight: bold;
    color: var(--black);
    padding: 4px;
    border-radius: 8px;
}

/* Instructions Page */
.instruction {
    text-align: center;
}

/* Forms */
.kc-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    padding-left: 28px;
    font-size: 14px;
    user-select: none;
}

.kc-checkbox-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.kc-checkbox-custom {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: white;
    border: 2px solid var(--grey-medium);
    border-radius: 4px;
    box-sizing: border-box;
}

.kc-checkbox-wrapper input:checked ~ .kc-checkbox-custom {
    background-color: var(--primary);
    border-color: var(--primary-dark);
}

.kc-checkbox-custom::after {
    content: "";
    position: absolute;
    display: none;
}

.kc-checkbox-wrapper input:checked ~ .kc-checkbox-custom::after {
    display: block;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* TOTP Page */

#kc-totp-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
}

#kc-totp-settings strong {
    color: var(--primary-dark);
}

.qrUrl {
    display: block;
    text-align: center;
    color: var(--primary-dark);
    text-decoration: underline;
}

#kc-totp-settings li::marker{
    height: 24px;
    width: 24px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--black);
}

#kc-totp-supported-apps {
    padding: 8px 16px;
}

#kc-totp-secret-qr-code {
    display: block;
    margin:  0 auto;
    width: 200px;
}

#kc-totp-secret-key {
    display: block;
    margin: 16px 0;
    padding: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    color: var(--black);
    background: var(--grey-ultra-light);
    border-radius: 16px;
    max-width: 100%;
}

.otpList {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.otpListItem {
    position: relative;
    padding: 16px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--black);
    border: 1px solid var(--grey-light);
    cursor: pointer;
    transition: var(--transitionOut);
}

.otpListItem:hover, .otpListItem:focus {
    border: 1px solid var(--black);
    background: rgba(var(--primary-rgb), 0.1);
    transition: var(--transitionIn);
}

.otpListItem.selected {
    border-color: var(--primary) !important;
    box-shadow: 0px 0px 0px 4px rgba(var(--primary-rgb), 0.6);
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--primary) !important;
    cursor: default;
}

.otpListItem.selected:after {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translate(0, -50%);
    font-family: var(--fa-style-family, "Font Awesome 6 Free");
    font-weight: var(--fa-style, 900);
    content: '\f058';
}

/* WEBAUTH Page */

.auth-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0;
}

.auth-list-item {
    position: relative;
    list-style: none;
    background-color: var(--grey-ultra-light);
    color: var(--black);
    padding: 8px 24px 8px 8px;
    border-radius: 8px;
    border: 1px solid var(--grey-light);
    cursor: pointer;
    transition: var(--transitionOut);
}

.auth-list-item._key:after {
    display: none !important;
}

.auth-list-item:after {
    font-family: "Font Awesome 6 Free";
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 18px;
    font-weight: 900;
    content: '\f061';
    opacity: 0.2;
    transition: var(--transitionOut);
}

.auth-list-item:hover, .auth-list-item:focus {
    transition: var(--transitionIn);
    background-color: var(--grey-light);
}

.auth-list-item:hover:after , .auth-list-item:focus:after {
    transition: var(--transitionIn);
    opacity: 1;
}

.auth-list-item h2 {
    margin: 4px 0;
    font-size: 18px;
}

.auth-list-item-container {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.auth-list-item-container svg {
    display: block;
    width: 38px;
    margin: 0 auto;
}

.auth-list-item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.auth-list-item-description {
    font-size: 14px;
}

.authenticator-create-date {
    display: flex;
    flex-direction: row;
    gap: 4px;
}