.pf-v5-c-login {
    width: 100%;
    align-items: flex-start;
    padding-top: 0;
    color: #3c3a49;
}

.pf-v5-c-login__main-footer-band {
    border-block-start: none;
    padding: 0;
}

.pf-v5-c-login__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: unset;
}

.pf-v5-c-brand {
   display: none;
}

.pf-v5-c-login__main {
    width: 100%;
}

.pf-v5-c-login__main-footer-band-item {
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .pf-v5-c-login__main {
        max-width: 500px;
    }
}

/* header */
.pf-v5-c-login__header {
    width: 100%;
    padding: 24px;
    height: 90px;
    background-image: url(../img/logo.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-position-x: center;
    background-origin: content-box;
    margin-bottom: 24px;
}

/* info */
#kc-info-wrapper {
    margin-top: 16px;
    font-size: 0.9rem;
}

/* primary button */
.pf-v5-c-button.pf-m-primary {
    border-radius: 4px;
    border: 2px solid var(--pf-v5-global--primary-color--100);
}

.pf-v5-c-button.pf-m-primary:hover {
    color: var(--pf-v5-global--primary-color--100);
    background: #ffffff;
    border: 2px solid var(--pf-v5-global--primary-color--100);
}

.pf-v5-c-button.pf-m-primary:disabled {
    border: unset;
    /*noinspection CssUnresolvedCustomProperty*/
    border: 2px solid var(--pf-v5-global--disabled-color--200);
}

.pf-v5-c-button.pf-m-primary.loading .spinner {
    display: block; /* show spinner */
}

/* password input */
.password_input_container {
    display: flex;
}

.pf-v5-c-input-group.password_input_container button {
    cursor: pointer;
    position: absolute;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    right: 0;
    background-color: transparent;
    border: none;
}

/* password visibility toggle button */
.pf-v5-c-button.pf-m-control {
    border: none;
    margin-left: 4px;
    margin-right: 28px;
    padding: 0px;
}

.pf-v5-c-button.pf-m-control:after {
    border: none;
}

/* form */
.pf-v5-c-form-control>:is(input,select,textarea) {
    outline: unset;
    min-height: 38px;
    padding-left: 16px;
    border:none;
    --pf-v5-c-form-control--Color: #575756;
    font-size: 0.875rem;
}

.pf-v5-c-form-control::before {
    border: 1px solid #3C3A48;
    border-radius: 8px;
}

.pf-v5-c-form-control::after {
    border: none;
}

.pf-v5-c-form-control::placeholder {
    opacity: 0.6;
}

.pf-v5-c-form-control:disabled{
    color: #a6a5a5;
    font-style: italic;
}

.pf-v5-c-form {
    --pf-v5-c-form__label-text--FontWeight: regular;
}

.pf-v5-c-helper-text__item-text {
    font-size: 0.9rem;
}

/* date selector */
.flatpickr-months svg {
    height: 12px !important;
    width: 12px !important;
}

.flatpickr-current-month {
    font-size: 0.9rem !important;
}

/* alert boxes */
.pf-v5-c-alert {
    border: none;
    border-radius: 4px;
    --pf-v5-c-alert__title--FontWeight: normal;
    --pf-v5-c-alert--m-inline--m-danger--BackgroundColor:  rgb(253, 237, 237);
    --pf-v5-c-alert--m-inline--m-info--BackgroundColor: rgb(229, 246, 253);
}

/* error messages */
.pf-v5-c-helper-text__item-text.pf-m-error.kc-feedback-text {
    color: var(--pf-v5-global--danger-color--200);
}

/* spinner */
.spinner {
    display: none;
    width: 16px;
    height: 16px;
    top: 10px;
    border: 2px solid var(--pf-v5-global--primary-color--100);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.password-policy-list ul {
    padding-left: 16px;
    list-style: unset;
}

.instruction {
    font-size: 0.9rem;
}

/* global vars */
:where(:root) {
    --pf-v5-global--FontFamily--text:  "Montserrat", serif;
    --pf-v5-global--FontFamily--heading:  "Montserrat", serif;
    --pf-v5-global--FontSize--3xl: 1.7rem;
    --pf-v5-global--primary-color--100: #009844;
    --pf-v5-global--primary-color--200: #009844;
    --pf-v5-global--link--Color: #009844;
    --pf-v5-global--link--Color--hover: #009844;
    --pf-v5-global--link--Color--visited: #009844;
}
