body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 12px;
    font-weight: 400;
    color: #232831;
    line-height: 1.5;
}

h1 {
    font-size: 28px;
    font-weight: 500;
    margin: 14px 0;
    color: #232831;
}

h1 span {
    color: #727272;
}

a {
    color: #66BFA2;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

input {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0;
}

button,
input[type='submit'] {
    cursor: pointer;
}

input[type='submit'] {
    background: #66BFA2;
    color: #ffffff;
    border: 1px solid #66BFA2;
    margin: 0 0.1em 0 0;
    outline: 0 none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: inline-block;
    position: relative;
    padding: 0.5em 0;
    text-decoration: none !important;
    text-align: center;
    overflow: visible;
    width: 100%;
}

button,
input[type='text'],
input[type='password'] {
    color: #495057;
    background: #ffffff;
    border: 1px solid #c8ced3;
    box-sizing: border-box;
    outline: 0 none;
    font-size: 12px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

input[type='text'],
input[type='password'] {
    width: 100%;
    padding: 3px 28px 3px 7px;
}

input[type='text']:hover,
input[type='password']:hover {
    border-color: #66BFA2;
}

input[type='text']:focus,
input[type='password']:focus {
    border-color: #66BFA2;
    box-shadow: 0 0 0 0.2em #c2e5da;
}

input[type='checkbox'] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    outline: none;
    top: 3px;
    transition: background-color 0.2s, border-color 0.2s;
}

input[type='checkbox']:checked {
    background-color: #66BFA2;
    border-color: #66BFA2;
}

input[type='checkbox']:checked::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 3px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.with-info-icon,
.pf-v5-c-input-group {
    position: relative;
}

.pf-v5-c-input-group button,
.info-icon {
    position: absolute;
    top: 4px;
    right: 4px;
    border: none;
    background: none;
    text-align: center;
    width: 25px;
}

.info-icon {
    right: 4px;
    top: 6px;
    opacity: 0.5;
}

.info-icon-left {
    right: auto;
    left: 3px;
    top: 8px;
}

.info-icon-white {
    opacity: 1;
    color: white;
}

.pf-m-error .info-icon {
    right: 18px;
    color: #f44336;
    opacity: 1;
}

.pf-v5-c-form__label {
    color: #495057;
    font-size: 12px;
    margin-left: 8px;
}

#login-root {
    min-height: 100vh;
}

#kc-header-wrapper {
    background: url("../img/logo-black.png") no-repeat;
    background-size: 200px 60px;
    width: 200px;
    height: 60px;
}

.pf-v5-c-form__group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}

.pf-m-inline {
    display: flex;
    margin-bottom: 10px;
}

#kc-form-buttons {
    margin: 10px 0;
}

#kc-form-buttons .info-icon {
    pointer-events: none;
}

/* errors/warnings/info */
.pf-m-success {
    color: #63c2de;
}

.pf-m-error {
    display: flex;
    gap: 5px;
}

.pf-m-error input,
.pf-m-error input:hover,
.pf-m-error input:focus {
    border-color: #f44336;
    box-shadow: none;
}

.pf-m-error.pf-v5-c-helper-text__item,
.pf-m-error .pf-m-status i {
    color: #f44336;
}

/* Media: Desktop */
@media screen and (min-width: 992px) {
    #keycloak-bg {
        background: url("../img/bg-login.jpg");
        background-size: cover;
        padding: 0;
        margin: 0;
        height: 100vh;
    }

    #login-root {
        background-color: #efefef;
        padding: 80px 15% 80px 80px;
        display: inline-block;
        box-sizing: border-box;
    }

    #kc-header-wrapper {
        margin-bottom: 75px;
    }

    #kc-form {
        width: 300px;
    }
}

/* Media: Tablet/Mobile */
@media screen and (max-width: 992px) {
    #keycloak-bg {
        background-color: #efefef;
    }

    #login-root {
        max-width: 400px;
        padding: 40px 20px 20px;
        margin: 0 auto;
    }
}