.login-pf body {
    background: #ffffff;
    min-height: 100%;
}

.alert {
    border-radius: 8px;
    padding: 4px 12px;
}

.alert-error {
    background-color: #fad4d1;
    border-color: #fad4d1;
    color: #000000;
}

.material-icons-error {
    color: #ea473b;
}

.alert-success {
    background-color: #d3f8db;
    border-color: #d3f8db;
    color: #000000;
}

.alert-info {
    background-color: #efe8e5;
    border-color: #efe8e5;
    color: #000000;
}

.alert-warning {
    background-color: #fad4d1;
    border-color: #fad4d1;
    color: #000000;
}

.kc-feedback-text {
    position: relative;
    top: -6px;
}

#kc-locale {
    position: relative;
    z-index: 9999;
}

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

#kc-locale: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: #666666;
    background-color: #e8ddd9;
}

#kc-locale-dropdown a {
    color: #666666;
    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::after {
    content: "\2c5";
    margin-left: 4px;
}

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

.login-pf a:not(.btn):hover {
    text-decoration: underline;
}

#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: #ffffff;
    overflow: visible;
    white-space: nowrap;
}

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

#kc-content {
    margin-top: 30px;
    width: 100%;
}

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

#kc-username {
    text-align: center;
}

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

#kc-info-wrapper {
    font-size: 13px;
}

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

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

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

#kc-registration {
    margin-bottom: 15px;
}

.subtitle {
    text-align: right;
    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%;
}

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

#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;
}

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

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

.login-pf-page {
    background-color: #EFE8E5;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    height: 100%;
}

.login-pf-page .login-pf-social {
    margin: 0;
}

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

.login-pf-page .login-pf-accounts {
    width: 100%;
    flex-direction: column;
    justify-content: center;
}

.card-pf {
    background-color: transparent;
    margin: 0 auto;
    padding: 0 20px;
    max-width: 500px;
    border-top: 0;
    box-shadow: 0 0 0;
    min-height: 100vh;
}

.login-pf-page .login-pf-signup {
    margin: 0;
    font-size: 15px;
    color: #72767b;
}

#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.form-container {
    display: flex;
    justify-content: center;
    flex: 100%;
}

.form-wrapper {
    background-color: #fff;
    max-width: 462px;
    border-radius: 6px;
    padding: 30px 40px 40px 40px;
    align-self: center;
    justify-self: center;
    width: 100%;
    box-shadow: 0 4px 12px 6px rgba(0, 0, 0, 0.06);
}

.form-wrapper:has(.terms-content) {
    max-width: unset;
}

.login-pf-page .login-pf-social-section {
    -ms-flex: 0 1 50%;
    flex: 0 1 50%;
    max-width: 100%;
}

.login-pf-page .login-pf-social-link {
    margin-bottom: 25px;
}

.login-pf-page .login-pf-social-link a {
    display: flex;
    height: 50px;
    padding: 2px 0;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e6e6;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.login-pf-page .login-pf-social-link a:hover {
    text-decoration: none;
    background: #f9fafb;
}

.login-pf-social-link a.active.focus,
.login-pf-social-link a.active:focus,
.login-pf-social-link a.focus,
.login-pf-social-link a:active.focus,
.login-pf-social-link a:active:focus,
.login-pf-social-link a:focus {
    text-decoration: none;
    border: 1px solid;
    box-shadow: 0 0 0 2px #c1d9fe;
}

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

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

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

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

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

.form-group .control-label {
    font-size: 14px;
    font-weight: 400;
    color: #666666;
}

#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: 0;
}

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

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

/* Custom Mentessa style */
@font-face {
    font-family: 'Suisse Int\'l';
    src: local('Suisse Int\'l'),
    url('https://static.mentessa.com/fonts/SuisseIntl-Regular.otf') format('opentype'),
    url('https://static.mentessa.com/fonts/SuisseIntl-Regular-WebM.woff2') format('woff2'),
    url('https://static.mentessa.com/fonts/SuisseIntl-Regular-WebM.woff') format('woff'),
    url('https://static.mentessa.com/fonts/SuisseIntl-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Suisse Int\'l';
    src: local('Suisse Int\'l'),
    url('https://static.mentessa.com/fonts/SuisseIntl-Medium.otf') format('opentype'),
    url('https://static.mentessa.com/fonts/SuisseIntl-Medium-WebM.woff2') format('woff2'),
    url('https://static.mentessa.com/fonts/SuisseIntl-Medium-WebM.woff') format('woff'),
    url('https://static.mentessa.com/fonts/SuisseIntl-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

body {
    font-family: 'Suisse Int\'l', Helvetica Neue, sans-serif;
    font-size: 14px;
}

h1 {
    font-weight: 600;
    margin: 0;
}

footer {
    height: 40px;
    padding: 25px;
}

footer > div {
    left: 0;
    position: absolute;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

footer > div > div {
    width: 300px;
    text-align: center;
}

.instruction {
    text-align: center;
}

.instruction > a {
    font-weight: bold;
}

footer > div:first-of-type {
    text-align: start;
}

footer > div:last-of-type {
    text-align: end;
}

footer .footer-bold-link {
    font-weight: bold;
}

.text-center {
    text-align: center !important;
}

.material-icons {
    font-family: "Material Icons";
    font-weight: normal;
    font-style: normal;
    font-size: 24px; /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    padding: 5px 0;

    /* Support for all WebKit browsers. */
    -webkit-font-smoothing: antialiased;
    /* Support for Safari and Chrome. */
    text-rendering: optimizeLegibility;

    /* Support for Firefox. */
    -moz-osx-font-smoothing: grayscale;

    /* Support for IE. */
    font-feature-settings: "liga";
}

.m-login-header-description {
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    color: #6b7280;
}

.login-pf-page .card-pf {
    padding: 20px;
}

.login-pf-page .login-pf-page-header {
    margin-bottom: 0;
}

.login-pf-page input.form-control {
    border-radius: 8px;
    border-color: #e6e6e6;
    height: 48px;
    padding: 2px 16px;
    font-size: 14px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.login-pf-page input.form-control:hover {
    border-color: #9ca3af;
}

.login-pf-page input.form-control:active,
.login-pf-page input.form-control:focus {
    box-shadow: 0 0 0 2px #f5f9ff;
}

.login-pf-page input.form-control::placeholder {
    color: #6b7280;
    font-style: normal;
}

.login-pf-social-section {
    flex-basis: 100%;
    max-width: 380px;
}

#kc-form-wrapper,
#kc-social-providers {
    border: none;
    padding-left: 0;
    padding-right: 0;
}

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

.btn {
    height: 48px;
    border-radius: 8px;
    outline: none;
    border: 0;
}

.fill-width {
    width: 100%;
}

a.btn {
    padding-left: 10px;
    padding-right: 10px;
    line-height: 42px;
}

.btn.active.focus,
.btn.active:focus,
.btn.focus,
.btn:active.focus,
.btn:active:focus,
.btn:focus {
    background-color: #666666;
    outline: none;
}

.btn-primary {
    background-image: none;
    font-size: 14px;
    font-weight: 500;
}

.m-divider-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 380px;
    margin: 10px 0;
}

.m-divider {
    width: 100%;
    height: 1px;
    background-color: #e7e5e4;
}

.m-divider-text {
    padding: 0 15px;
    font-size: 16px;
    font-weight: 700;
    color: #78716c;
    text-transform: capitalize;
    background-color: #ffffff;
}

.m-provider-icon {
    margin-right: 16px;
    width: 32px;
    height: 32px;
}

.m-provider-icon-linkedin {
    background: url(../img/logo-linkedin.svg) center no-repeat;
    background-size: cover;
}

.m-provider-icon-google {
    background: url(../img/logo-google.png) center no-repeat;
    background-size: cover;
}

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

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

    .form-wrapper {
        padding: 40px;
    }

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

    .login-pf body {
        background: white;
    }

    #kc-header {
        /*padding-left: 15px;*/
        /*padding-right: 15px;*/
    }

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: bold;
        padding: 20px 0;
        color: #72767b;
        letter-spacing: 0;
    }

    .form-wrapper {
        box-shadow: 0px 0px 0px rgba(0, 0, 0, 0);
        padding: 30px;
    }

    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);
        margin-top: 15px;
        padding-top: 15px;
        padding-left: 0px;
        padding-right: 15px;
    }

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

    #kc-locale {
        position: absolute;
        width: 200px;
        top: 20px;
        z-index: 9999;
    }

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

    .m-divider-wrap {
        margin: 0 0 15px;
    }

    footer > div {
        flex-direction: column;
        align-items: center;
        padding: 40px;
    }

    footer {
        height: 135px;
    }
}

.kc-content-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 36px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 40px #ffffff inset !important;
}

.m-error-text {
    color: #6F1DCD;
}
