@font-face {
    font-family: "Montserrat Bold";
    src: url("https://static.europ-assistance.fr/fonts/Montserrat/Montserrat-Bold.woff2");
}

@font-face {
    font-family: "Montserrat Regular";
    src: url("https://static.europ-assistance.fr/fonts/Montserrat/Montserrat-Regular.woff2");
}

@font-face {
    font-family: "Montserrat Light";
    src: url("https://static.europ-assistance.fr/fonts/Montserrat/Montserrat-Light.woff2");
}

html{
    height: auto !important;
}

body{
    font-family: "Montserrat Regular";
}

.alert-success,
.alert-warning, 
.alert-info, 
.kcRecoveryCodesWarning,
.alert-error{
    margin-bottom: 20px;
}

#kc-header{
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin: 0 auto 40px !important;
}

#kc-header-wrapper{
    opacity: 0;
    margin-bottom: 20px;
}

.kcFormCardClass{
    box-shadow: none;
    border: none;
    border-radius: 12px;
    background-color: blue;
}

.kcInputWrapperClass label,
.kcFormGroupClass label{
    background: none;
}

.kcInputWrapperClass label::before,
.kcFormGroupClass label::before{
     border: none;
}

.kcFormHeaderClass{
    align-items: center;
}

#kc-page-title{
    font-size: 20px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    font-family: "Montserrat Bold";
}

.sd-header-baseline{
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 10px 0;
    font-family: "Montserrat Regular";
    letter-spacing: 1px;
}

.sd-form-options{
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

#kc-form-buttons{
    display: flex;
    justify-content: center;
    margin: auto;
    width: 100%;
}

.kcFormButtonsWrapperClass{
    width: 100%;
    display: flex;
}

.kcLabelClass[for="username"],
.kcLabelClass[for="password"]{
    margin-bottom: 5px;
    font-family: "Montserrat Regular";
}

.kcInputClass[name="email"],
.kcInputClass[name="password"]{
    background-repeat: no-repeat;
    background-color: #fff;
    background-position-y: center;
    padding-left: 33px;
}

.kcInputClass[name="email"]{
    background-image: url("../img/BLANK-Icon-material-mail-outline.svg");
    background-position-x: 7px;
}

.kcInputClass[name="password"]{
    background-image: url("../img/BLANK-Icon-material-lock-outline.svg");
    background-position-x: 10px;
}

.kcInputClass[type="text"],
.kcInputClass[type="password"]{
    font-family: "Montserrat Light";
    font-size: 0.8rem !important;
    border: none;
}

.kcInputClass[name="email"][aria-invalid="true"]{
    background-image: url("../img/BLANK-Icon-material-mail-outline.svg"), url("../img/BLANK-close_red_24dp.svg");
    background-position: 7px 50%, 99% 50%;
    border: 1px solid #E25F5F !important;
    background-size: auto, 24px;
}

.kcInputClass[name="password"][aria-invalid="true"]{
    background-image: url("../img/BLANK-Icon-material-lock-outline.svg"), url("../img/BLANK-close_red_24dp.svg");
    background-position: 10px 50%, 99% 50%;
    border: 1px solid #E25F5F !important;
    background-size: auto, 24px;
}

.kcInputClass[aria-invalid="true"]{
    background-image: url("../img/BLANK-close_red_24dp.svg");
    background-position: 99% 50%;
    border: 1px solid #E25F5F !important;
    background-size: auto, 24px;
}

.kcInputClass:focus{
    outline: none;
    border: none;
}

.sd-email-logo{
    background-image: url("../img/BLANK-Icon-material-mail-outline.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    bottom: 0;
    left: 10px;
    margin: auto;
}

.sd-password-logo{
    background-image: url("../img/BLANK-Icon-material-lock-outline.svg");
    background-repeat: no-repeat;
    background-size: contain;
    position: absolute;
    width: 16px;
    height: 16px;
    top: 0;
    bottom: 0;
    left: 10px;
    margin: auto;
    z-index: 999;
}

.sd-parent-block-center {
    width: 100%;
}

.kcFormPasswordVisibilityButtonClass {
    display: flex;
    align-items: center;
    justify-content: center;
    right: 0;
    background-color: transparent !important;
    background-size: contain;
    background-repeat: no-repeat;
}

.kcFormPasswordVisibilityButtonClass[aria-label="Show password"]{
    background-image: url("../img/oeil-ouvert.png");
    background-position-y: 1px;
}

.kcFormPasswordVisibilityButtonClass[aria-label="Hide password"]{
    background-image: url("../img/oeil-ferme.png");
}

.kcFormPasswordVisibilityButtonClass::after {
    border-color: transparent;
}

.kcFormSocialAccountNameClass,.kc-social-provider-name,.kc-social-icon-text {
    color: #6f6f6f !important;
}

.kcLabelWrapperClass .subtitle{
    color: #fff;
}

.oeilOuvert, .oeilFerme {
    color: #0F4C86;
    fill: #0F4C86;
    cursor: pointer;
}

.checkbox label{
    cursor: inherit;
}

input:checked ~ .checkmark{
    border-radius: 5px;
}

.checkmark{
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    border-radius: 5px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 9px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

input:checked ~ .checkmark:after {
    display: block;
}

span[data-kc-msg="doForgotPassword"]{
    text-decoration: underline;
    font-family: "Montserrat Light";
}

.kcButtonClass {
    font-weight: 600;
    font-size: 14px;
    padding: 10px 30px;
    border-radius: 999px;
    font-family: "Montserrat Regular";
    text-decoration: none;
}

.kcInputGroup{
    position: relative;
}

input[type="checkbox"]{
    display: none;
}

@media (max-width: 767px) {
    .kcLoginClass{
        width: 90%;
        margin: auto;
        padding-bottom: 30px;
    }

    #kc-header {
        padding-left: 15px;
        padding-right: 15px;
        float: none;
        text-align: left;
        height: 100px;
    }

    .sd-blank-bg-logo{
        margin-top: 30px;
    }
}

#kc-content-wrapper a{
    text-decoration: underline;
}

.kcButtonClass{
    width: fit-content !important;
    margin: auto;
}

#kc-username.kcFormGroupClass {
    flex-direction: row;
    align-items: center;
    margin: auto;
}

.sd-for-form-totp{
    display: flex;
}

#kc-info-wrapper {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    border-top: 1px solid #ffffff29;
}

@media (max-width: 767px) {
    #kc-info-wrapper {
        background-color: transparent !important;
    }
}

a.kcButtonBlockClass {
    text-decoration: none !important;
}

body[data-page-id="login-trusted-device-register"] h2 {
    text-align: center;
}
 
body[data-page-id="login-trusted-device-register"] .kcButtonClass {
    margin: 0 !important;
    margin-top: 0 !important;
}
 
body[data-page-id="login-trusted-device-register"] .sd-div-trusted-device-register {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    margin: 0 auto 10px auto;
    width: 45%;
}
 
body[data-page-id="login-trusted-device-register"] .kcFormButtonsClass h2 {
    font-size: unset;
}