.alert-error {
    background-color: #ffffff;
    border-color: #cc0000;
    color: #333333;
}

@media (min-width: 768px) {
    body {
        background-color: #dae6f0;
    }
}

@media (max-width: 767px) {
    body {
        background-color: #fff;
    }
}


.login-pf-page .form-control:not(textarea) {
    height: 40px;
    text-overflow: initial;
}

#kc-locale ul {
    display: none;
    position: absolute;
    background-color: #fff;
    list-style: none;
    right: 0;
    top: 72px;
    min-width: 100px;
    padding: 2px 0;
    border: solid 1px #bbb;
}

#kc-locale-wrapper:hover ul {
    display: block;
    margin: 0;
}

#kc-locale ul li a {
    display: block;
    padding: 5px 14px;
    color: #000 !important;
    text-decoration: none;
    line-height: 20px;
}

#kc-locale ul li a:hover {
    color: #4d5258;
    background-color: #d4edfa;
}

#kc-locale-dropdown a {
    color: white;
    background: 0 0;
    padding: 0 15px 0 0;
    font-weight: 300;
}

#kc-locale-dropdown a:hover {
    text-decoration: none;
}

a#kc-current-locale-link {
    display: block;
    padding: 0 5px;
}

/* a#kc-current-locale-link:hover {
    background-color: rgba(0,0,0,0.2);
} */

a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: 4px;
}

.login-pf .container {
    padding-top: 40px;
}

.login-pf a:hover {
    color: #0099d3;
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url(../img/keycloak-logo-2.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 62px auto 0;
}

div.kc-logo-text {
    background-image: url(../img/keycloak-logo-text.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

#kc-header {
    color: #ededed;
    overflow: visible;
    white-space: nowrap;
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 10px 20px;
    white-space: normal;
}

#kc-content {
    width: 100%;
}

#kc-attempted-username{
    font-size: 20px;
    font-family:inherit;
    font-weight: normal;
    padding-right:10px;
}

#kc-webauthn-settings-form{
    padding-top:8px;
}

#kc-info {
    font-size: 16px;
    line-height: 24px;
    text-align: left;
    margin-top: 0px !important;
    margin-bottom: 20px;
    color: #223654;
}

#kc-form-options span {
    display: block;
}

#kc-form-options .checkbox {
    margin-top: 0;
    color: #72767b;
}

#kc-terms-text {
    margin-bottom: 20px;
}

.min-height-58 {
    min-height: 58px;
}

/* TOTP */

.subtitle {
    margin-top: 30px;
    color: #909090;
}

.required {
    color: #CB2915;
}

ol#kc-totp-settings {
    margin: 0;
    padding-left: 20px;
}

ul#kc-totp-supported-apps {
  margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
    max-width:150px;
    max-height:150px;
}

#kc-totp-secret-key {
    background-color: #fff;
    color: #333333;
    font-size: 16px;
    padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
    margin-top: 0;
}

#kc-oauth ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-oauth ul li {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
    border-top: 0;
}

#kc-oauth .kc-role {
    display: inline-block;
    width: 50%;
}

/* Code */
#kc-code textarea {
    width: 100%;
    height: 8em;
}

/* Social */

#kc-social-providers ul {
    padding: 0;
}

#kc-social-providers li {
    display: block;
}

#kc-social-providers li:first-of-type {
    margin-top: 0;
}

.kc-login-tooltip{
    position:relative;
    display: inline-block;
}

.kc-login-tooltip .kc-tooltip-text{
    top:-3px;
    left:160%;
    background-color: black;
    visibility: hidden;
    color: #fff;

    min-width:130px;
    text-align: center;
    border-radius: 2px;
    box-shadow:0 1px 8px rgba(0,0,0,0.6);
    padding: 5px;

    position: absolute;
    opacity:0;
    transition:opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
    visibility: visible;
    opacity:0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 15px;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}

.zocial,
a.zocial  {
    width: 100%;
    font-weight: normal;
    font-size: 14px;
    text-shadow: none;
    border: 0;
    background: #f5f5f5;
    color: #72767b;
    border-radius: 0;
    white-space: normal;
}
.zocial:before {
  border-right: 0;
  margin-right: 0;
}
.zocial span:before {
    padding: 7px 10px;
    font-size: 14px;
}
.zocial:hover {
    background: #ededed !important;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter {
    background-image: none;
    border: 0;

    box-shadow: none;
    text-shadow: none;
}

/* Copy of zocial windows classes to be used for microsoft's social provider button */
.zocial.microsoft:before{ content: "\f15d"; }
.zocial.stackoverflow:before{ color: inherit; }


@media (min-width: 768px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

    .login-pf .container {
        padding-right: 80px;
    }

    #entetePiv {
        max-width: 670px;
    }
}

@media (max-width: 767px) {

    .login-pf body {
      background: white;
    }

    #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;
      color: #72767b;
      letter-spacing: 0;
    }

    div.kc-logo-text {
        margin: 0;
        width: 150px;
        height: 32px;
        background-size: 100%;
    }

    #kc-form {
        float: none;
    }

    #kc-info-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background-color: transparent;
        height: 51px;
        padding-right: 20px;
    }

    #kc-social-providers li {
        display: block;
        margin-right: 5px;
    }

    .login-pf .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    #kc-logo-wrapper {
        background-size: 100px 21px;
        height: 21px;
        width: 100px;
        margin: 20px 0 0 20px;
    }

}

@media (min-height:670px ) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 645px) {
    #kc-container-wrapper {
        padding-top: 50px;
        top: 20%;
    }
}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}

#kc-form-buttons {
  margin-top: 20px;
}

.login-pf-page .login-pf-brand {
  margin-top: 20px;
  max-width: 360px;
  width: 40%;
}

.card-pf {
    background: #fff;
    padding: 0 20px;
    max-width: 670px;
    box-shadow: 0 6px 24px 0px #223654;
    margin: auto;
    margin-top: 20px;
  }

@media (max-width: 767px) {
    .login-pf-page .card-pf{
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
        border-top: 0;
        box-shadow: 0 0;
    }

    .card-pf.login-pf-accounts{
      max-width: none;
    }

    #kc-locale ul {
        top: 100px;
    }
}

.login-pf-page .login-pf-signup {
  font-size: 15px;
  color: #72767b;
}
#kc-content-wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 768px) {
  .login-pf-page .login-pf-social-section:first-of-type {
    padding-right: 39px;
    border-right: 1px solid #d1d1d1;
    margin-right: -1px;
  }
  .login-pf-page .login-pf-social-section:last-of-type {
    padding-left: 40px;
  }
  .login-pf-page .login-pf-social-section .login-pf-social-link:last-of-type {
    margin-bottom: 0;
  }
}

.login-pf-page .login-pf-social-link {
  margin-bottom: 25px;
}
.login-pf-page .login-pf-social-link a {
  padding: 2px 0;
}

.login-pf-page.login-pf-page-accounts {
  margin-left: auto;
  margin-right: auto;
}

.login-pf-page .list-view-pf .list-group-item {
    border-bottom: 1px solid #ededed;
}

.login-pf-page .list-view-pf-description {
    width: 100%;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type {
    margin-bottom: 0px;
}

#kc-back {
    margin-top: 5px;
}

form#kc-select-back-form div.login-pf-social-section {
    padding-left: 0px;
    border-left: 0px;
}

.login-pf-page {
	padding-top: 0px;
}

.login-pf-page .login-pf-header h1 {
    font-size: 2rem;
}

.login-pf-page .login-pf-header h2 {
    font-size: 1.75rem;
}

.login-pf-page .login-pf-header h3 {
    font-size: 1.5rem;
}

.login-pf-page .login-pf-header h4 {
    font-size: 1.3125rem;
}

.login-pf-page .login-pf-header h5 {
    font-size: 1.125rem;
}

.login-pf-page .login-pf-header h6 {
    font-size: 1rem;
}

@media (min-width: 768px) {
    .login-pf-page .login-pf-header h1 {
        font-size: 2.5rem;
    }

    .login-pf-page .login-pf-header h2 {
        font-size: 2rem;
    }
    
    .login-pf-page .login-pf-header h3 {
        font-size: 1.75rem;
    }
}

.btn {
    padding: 16px;
    min-width: 156px;
    font-weight: bold;
    font-size: 1rem;
}

.btn:disabled {
    color: #737679 !important;
    pointer-events: none;
    background-color: #d2d2d2 !important;
    border: none;
}

.btn-primary {
    color: #FFFFFF;
    background-color: #095797;
    border: 2px solid #095797;
    box-shadow: 0.1rem 0.1rem 7px #c4c8ce;
    width: auto;
    background-image: none;
}

.btn-primary:disabled {
    box-shadow: 0.1rem 0.1rem 7px #c4c8ce;
}

.btn-primary:hover {
    background-color: #156bb2;
    border: 2px solid #095797;
    box-shadow: 0.1rem 0.1rem 7px #c4c8ce;
}

.btn-primary:focus {
    background-color: #156bb2;
    border: 2px solid #223654;
    box-shadow: 0.1rem 0.1rem 7px #c4c8ce;
    outline: none;
}

.btn-secondary {
    color: #095797;
    background-color: #FFFFFF;
    border: 2px solid #095797;
    width: auto;
    background-image: none;
}

.btn-secondary:hover {
    color: #FFFFFF;
    background-color: #095797;
    border: 2px solid #095797;
}

.btn-secondary:focus {
    color: #FFFFFF;
    background-color: #095797;
    border: 2px solid #223654;
    outline: none;
}

.btn-tertiary {
    color: #095797;
    text-decoration: none;
    width: auto;
    background-image: none;
    box-shadow: none;
}

.btn-tertiary::after {
    border: none;
}

.btn-tertiary:hover {
    color: #095797;
    text-decoration: underline;
}

.btn-tertiary:focus {
    color: #095797;
    text-decoration: underline;
    border: none;
    outline: none;
}

.btn-tertiary:active {
    box-shadow: none;
}

.login-pf-page .btn-primary {
    margin-top: 0px;
}

input[type=submit].btn-block {
    width: auto;
}

.inputMedium {
    max-width: 156px;
    height: 40px;
}

.inputLarge {
    max-width: 249px;
    height: 40px;
}

.inputExtraLarge {
    max-width: 528px;
    height: 40px;
}

.textePrecision {
    font-size : 0.875rem;
    color : #223654;
    margin: 0;
}

.login-pf-page .card-pf p {
    color: #223654;
}

.form-control {
    border: 1px solid #808a9d;
    font-size: 16px;
}

.form-control:hover {
    border-color: #808A9D;
}

.form-control:focus {
    outline: 2px solid #89bce5;
    border: 2px solid #5b6476;
    box-shadow: none;
}

.form-control[aria-invalid="true"] {
    border : 3px solid #cb381f;
}

a {
    color: #095797;
    text-decoration: underline;
    background-color: transparent;
}

#kc-locale-wrapper {
    width: fit-content;
    float: right;
    overflow: auto;
    height: 100%;
}

.form-group {
    margin-bottom: 32px;
}

#kc-form-wrapper {
    margin-top: 10px;
}

#kc-content-wrapper {
    margin-top: 20px;
}

label {
    margin-bottom: 0px;
}

.margeBouton {
    margin-right: 32px;
}

.alert .pf-c-alert__icon {
    padding: 0px 8px 0px 8px;
    font-size: 16px;
    font-size: var(--pf-c-alert--m-inline__icon--FontSize);
    justify-content: center;
    align-items: center;
}

.alert-success .pf-c-alert__icon {
    color: #4f813d;
    background-color: #bcda9a;
}

.alert-success .kc-feedback-text {
    color: #223654;
}

.alert-error .pf-c-alert__icon {
    color: #cb381f;
    background-color: #edbab1;
}

.alert-error .kc-feedback-text {
    color: #cb381f;
}

.alert-warning .pf-c-alert__icon {
    color: #e0ad03;
    background-color: #f8e69a;
}

.alert-warning .kc-feedback-text {
    color: #223654; 
}

.alert-info .pf-c-alert__icon {
    color: #095797;
    background-color : #d9e6f0;
}

.alert-info .kc-feedback-text {
    color: #223654;
}

.kc-feedback-text {
    font-size: 14px;
    padding: 5px 8px;
    padding: var(--pf-c-alert__title--PaddingTop) var(--pf-c-alert__title--PaddingRight) var(--pf-c-alert__title--PaddingBottom) var(--pf-c-alert__title--PaddingLeft);
}

.alert {
    padding: 0;
    margin: 0;
    border: 1px solid #c5cad2;
    display: flex;
}

.section-message {
    width: 100%;
    padding: 16px;
}

.alert-success {
    background-color: transparent;
}

.alert-warning {
    background-color: transparent;
}

.alert-danger {
    background-color: transparent;
}

.alert-info {
    background-color: transparent;
}

.login-pf-header .form-group {
    margin-bottom: 0px;
}

.alert {
    margin-bottom: 8px;
}

.form-horizontal div.form-group {
    margin-bottom: 32px;
}
.kc-dropdown {
    display: flex;
    align-items: center;
    height: 100%;
}

#kc-locale {
    padding-right: 14px;
    position: relative;
    text-align: right;
    z-index: 9999;
    margin-left: auto;
}

#listePIV {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 72px;
}

#listePIV ul {
    list-style: none;
}

#listePIV a {
    font-size: 14px;
}

#entetePiv {
    margin: auto;
    height: 72px;
}

#logoPIV {
    display: inline-block;
}
#kc-registration a {
    padding: 0;
}

#kc-form-options .btn-tertiary {
    padding: 16px 0px 16px 0px;
}

.requiredMessage {
    float: right;
}

a:hover {
    color: #3374cc;
    text-decoration: none;
}

#registerButton {
    margin-bottom: 0;
}

#realmNameSection {
    text-align: center;
}


#kc-page-title {
    font-family: Roboto;
    font-size: 48px;
    line-height: 56px;
    font-weight: bold;
    color: #223654;
    margin-top: 72px;
    margin-bottom: 32px;
    text-align: left;
    word-break: break-word;
}

@media (max-width: 1200px) {
    #kc-page-title {
        font-family: Roboto;
        font-size: 36px;
        line-height: 40px;
        font-weight: bold;
        color: #223654;
        margin-top: 48px;
        margin-bottom: 16px;
        text-align: left;
    }
}

#kc-page-title:after {
   content: "";
   display: block;
   margin: 0px;
   width: 48px;
   padding-top: 4px;
   border-bottom: 4px solid #E58271;
}

#kc-page-title-realm {
    font-family: Roboto;
    font-size: 28px;
    line-height: 32px;
    font-weight: bold;
    color: #223654;
    margin-top: 24px;
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    #kc-page-title-realm {
        font-family: Roboto;
        font-size: 25px;
        line-height: 32px;
        font-weight: bold;
        color: #223654;
        margin-top: 24px;
        margin-bottom: 16px;
    }
}

#kc-info-message {
    word-break: break-word;
}

@media (max-width: 767px) {
    .btn {
        margin-bottom: 32px;
    }

    #reset-login {
        margin: 0;
    }

    #listePIV {
        height: 100px;
    }

    #listePIV ul {
        margin-right: 20px;
    }

    #entetePiv {
        height: 100px;
    }

    #logoPIV {
        height: 100px;
    }
}


.boutonRenvoyer {
    background-color: transparent;
    border: none;
    cursor: pointer;
    float: none;
    padding-left: 0px;
  }

boutonRenvoyer:focus {
    outline: none;
}

.flexContainer2xBtn {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

}

.flexContainer3xBtn {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cancelIn3xBtnContainer {
    margin-right: 4%;
    margin-left: auto!important;
}

@media (max-width: 320px) {
    .flexContainer2xBtn :nth-child(1) { order: 2;}
    .flexContainer2xBtn :nth-child(2) { order: 1;}

    .flexContainer2xBtn {
        flex-direction: column;
        align-items: center;
        align-self: center;
        align-content: center;
    }

    .defaultButton {
        width: 90%
    }
}

@media (max-width: 469px) {
    .flexContainer3xBtn :nth-child(1) { order: 3;}
    .flexContainer3xBtn :nth-child(2) { order: 2;}
    .flexContainer3xBtn :nth-child(3) { order: 1;}

    .flexContainer3xBtn {
        flex-direction: column;
        align-items: center;
        align-self: center;
        align-content: center;
    }

    .defaultButton {
        width: 90%
    }

    .cancelIn3xBtnContainer {
        margin-left: 0px;
        margin-right: 0px;
    }
}

.defaultButton {
    visibility: visible;
}

.pf-c-button.pf-m-control.mcn-show-password-control {
    --pf-c-button--after--BorderColor: var(--pf-c-button--m-control--after--BorderBottomColor);
}

.pf-c-button.pf-m-control.mcn-show-password-control:active {
    --pf-c-button--after--BorderWidth: var(--pf-c-button--hover--after--BorderWidth);
}

.pf-c-button.pf-m-control.mcn-show-password-control:hover {
    --pf-c-button--after--BorderWidth: var(--pf-c-button--hover--after--BorderWidth);
}

.pf-c-button.pf-m-control.mcn-show-password-control:focus {
    --pf-c-button--after--BorderWidth: var(--pf-c-button--hover--after--BorderWidth);
}

.captchaPlaceholder {
    background-color: #f3f3f3;
    border: solid #bababa 1px;
    padding: 10px;
    border-radius: 5px;
    max-width: 600px;
    position: relative;

    > * {
        width: 100%;
    }
}