html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

body {
    background-color: #2a404a;
    background-image: url("../img/inform_background.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-content: center;
    color: #222;
    font-family: Roboto, sans-serif;
    font-size: 14px;
}

.inform-wrapper {
    max-width: 960px;
    flex: 1 1 960px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.inform-header,
.inform-content,
.inform-footer {
    background-color: white;
    border-radius: 4px;
}

.inform-header {
    height: 80px;
    flex: 0 0 80px;
    display: flex;
    flex-direction: row;
    padding: 0 60px;
    justify-content: center;
}

.customer-image {
    padding: 10px 0;
}

.inform-header.with-customer-image {
    justify-content: space-between;
}

.brand-image {
    height: 100%;
}

.inform-notification {
    background-color: #8C0D19;
    color: white;
    margin: 4px 0px;
    border-radius: 4px;
    padding: 4px 16px;
    min-height: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: 16px;
    visibility: hidden;
}

.inform-notification.visible {
    visibility: visible;
}

.inform-notification svg {
    width: 24px;
    min-width: 24px;
    margin: 4px;
}

.inform-notification path {
    fill: white;
}

.inform-content {
    margin: 0px 0 24px;
    padding: 40px 60px;
}

.inform-footer {
    height: 48px;
    flex: 0 0 48px;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.application-title {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 16px;
    text-align: center;
}

#kc-page-title {
    font-size: 32px;
    font-weight: 100;
    text-align: center;
    margin: 0 0 8px;
}

.inform-alert {
    margin: 0 0 8px;
    color: #8c0d19;
}

#kc-form {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.inform-content-container,
#kc-header-wrapper,
#kc-register-form {
    flex: 1 1 auto;
    padding: 10px 0;
    max-width: 500px;
    width: 100%;
}

.inform-content-container#kc-info-wrapper {
    padding: 0px;
}

#kc-info-text {
    padding: 0px 0px 10px 0px;
}

a[href] {
    color: #007081;
}

.pure-form-stacked input[type="text"],
.pure-form-stacked input[type="password"] {
    width: 100%;
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 2px;
    margin-bottom: 8px;
}

.pure-form-stacked input[type="text"]:focus,
.pure-form-stacked input[type="password"]:focus {
    border-color: #0090a7;
    border-radius: 2px;
    outline: none;
}

.inform-form-settings {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

#kc-registration-container {
    text-align: left;
}

#kc-register-form .inform-form-group:last-child {
    /* last inform-form-group in register page should be the button container */
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

#kc-register-form .inform-form-group:last-child .pure-button {
    /* bottom margin, for mobile in case we can't align the buttons next to each other */
    margin-bottom: 8px;
}

.pure-form-stacked label {
    color: #666;
    display: inline;
}

#kc-content-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#kc-content-wrapper .pure-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    background-color: #0090a7;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    color: white;
}

#kc-content-wrapper .pure-button-primary {
    background-color: #007081;
}

.login-form-separator {
    width: 100%;
    height: 0.6em;
    border-bottom: 1px solid black;
    text-align: center;
}

.login-form-separator-text {
    background-color: white;
    padding: 0 10px;
}

#kc-login {
    width: 100%;
}

#kc-social-providers h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

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

#kc-social-providers .pure-button,
#kc-passwd-update-form .pure-button,
#kc-update-profile-form .pure-button,
#kc-totp-settings-form .pure-button {
    width: 100%;
}

#kc-passwd-update-form #kc-form-buttons,
#kc-totp-settings-form .otp-config-with-cancel-footer {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
    margin-top: 4px;
}

#kc-passwd-update-form #kc-form-buttons .pure-button,
#kc-totp-settings-form .otp-config-with-cancel-footer .pure-button {
    width: auto;
}

.login-idp-button {
    margin-bottom: 16px;
}

.inform-input-error {
    color: #8c0d19;
    margin: 8px 0;
}

.inform-form-group .inform-input-error {
    display: block;
    margin: 0 0 12px;
    font-size: 12px;
}

#input-error {
    margin: 8px 0;
    height: auto;
}

#kc-info {
    text-align: left;
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

.inform-form-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
}

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

#kc-attempted-username {
    font-size: 24px;
}

#reset-login {
    text-align: right;
}

.form-actions {
    display: flex;
    flex-direction: row-reverse;
}

.form-actions .pure-button {
    margin: 0 16px;
}

.pure-form-stacked .control-label {
    display: inline-block;
}

.control-label+.required {
    display: inline-block;
    color: #8c0d19;
}

/* locale dropdown styling, taken from keycloak */

.inform-footer-entry {
    position: relative;
    width: 192px;
    height: 100%;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

#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: #4d5258;
    background-color: #d4edfa;
}

#kc-locale-dropdown a {
    background: 0 0;
    padding: 0 15px 0 0;
}

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

a#kc-current-locale-link {
    display: flex;
    padding: 0 5px;
    align-items: center;
}

.inform-globe-icon {
    width: 1em;
    font-size: 14px;
    margin-right: 4px;
}

.inform-globe-icon path {
    fill: #007081;
}

@media (max-height: 800px) {
    .inform-wrapper {
        justify-content: start;
    }
}

/* reduced  phone + tablet style */

@media (max-width: 767px) {
    body {
        background-color: white;
        background-image: none;
    }

    .inform-wrapper {
        width: 100%;
        justify-content: start;
    }

    .inform-header,
    .inform-content,
    .inform-footer {
        background-color: white;
        border-radius: 0;
    }

    .inform-header {
        height: 65px;
        flex: 0 0 65px;
        padding: 0 8px;
    }

    .inform-notification {
        margin: 4px 16px;
    }

    .inform-content {
        margin: 0;
        padding: 16px;
    }

    .inform-footer {
        flex-direction: column;
        padding: 32px 0px 0px 0px;

    }

    .application-title,
    #kc-page-title {
        font-size: 28px;
        margin: 0 0 8px;
    }

    .inform-form-settings {
        margin-bottom: 16px;
    }

    #kc-locale ul {
        max-height: 400px;
        bottom: 32px;
        overflow: auto;

    }

    #kc-form {
        flex-direction: column;
        align-items: center;
    }

    #kc-attempted-username {
        font-size: 20px;
    }
}

.policy-state-icon>svg {
    font-size: inherit;
    height: 1em;
    width: 1.25em;
}

.policy-state-icon {
    margin-right: 4px;
}

.password-policy-list {
    list-style: none;
    font-size: 12px;
    padding: 0 8px;
    color: #222222;
}

.password-policy-list>li {
    display: flex;
    flex-direction: row;
    margin-bottom: 4px;
}

.policy-success {
    color: #666666;
}

.policy-success .policy-state-icon {
    color: #becb00;
}

#strength-meter {
    width: 100%;
    height: 10px;
    background-color: #ccc;
}

.password-strength {
    margin-top: 8px;
    padding: 4px;
}

.password-strength h4 {
    font-size: 12px;
    font-weight: normal;
    padding: 0 8px;
    color: #222222;
    margin: 0;
    padding: 0;
}

#strength-meter,
#strength-bar {
    border-radius: 4px;
}

#strength-bar {
    height: 100%;
    transition: width 0.6s ease;
}

.password-strength-weak {
    background-color: #c00222;
    width: 20%;
}

.password-strength-fair {
    background-color: #c00222;
    width: 40%;
}

.password-strength-good {
    background-color: #fabb00;
    width: 60%;
}

.password-strength-strong {
    background-color: #1fa22e;
    width: 80%;
}

.password-strength-verystrong {
    background-color: #1fa22e;
    width: 100%;
}

.password-strength-passed {
    background-color: #1fa22e;
    width: 100%;
}

.inform-select-auth-list-item {
    margin-bottom: 16px;
}

.inform-select-auth-list-item .pure-button {
    width: 100%;
}