.pf-v5-c-login__container {
    max-width:450px;
    display:block;
    padding:0;
    position:relative;
}

:where(:root) {

  --brk-red: #e60005;
  --brk-dark-red: #a51e0f;

  --brk-black: #000;
  --brk-gray: #ccc;
  --brk-light-gray: #f2f2f2;
  --brk-dark-gray: #aaa;

  --pf-v5-global--primary-color--100: var(--brk-red);
  --pf-v5-global--primary-color--200: var(--brk-dark-red);
  --pf-v5-global--primary-color--300: var(--pf-v5-global--primary-color--100);
  --pf-v5-global--link--Color: #2276d0;
  --pf-v5-global--link--Color--hover: #002d55;
  --pf-v5-global--link--Color--visited: #2276d0;
  --keycloak-card-top-color: var(--brk-red) !important;
  --pf-v5-global--active-color--100:var(--pf-v5-global--primary-color--100);
  --pf-v5-global--primary-color--dark-100: var(--brk-red);
}

:where(.pf-v5-theme-dark) {
  --pf-v5-global--primary-color--200: var(--brk-dark-red);
  --pf-v5-global--primary-color--300: var(--brk-red);
  --pf-v5-global--link--Color: rgb(242 242 242);
  --pf-v5-global--link--Color--hover: rgb(153 153 153);
  --pf-v5-global--link--Color--visited: rgb(242 242 242);
  --keycloak-card-top-color: var(--brk-red);
}
body {
    background-color:#f2f2f2;
    font-family:Arial, sans-serif;
    padding-bottom: 4rem;

    --pf-v5-global--FontFamily--heading: Georgia, serif;
}

.pf-v5-c-check__label {
    --pf-v5-c-check__label--FontSize: 0.9rem;
}

.pf-v5-c-check__input {
    margin-top:-2px;
}

:where(.pf-v5-theme-dark) body {
    background-color:#252525;
}

.pf-v5-c-login__main {
    border-radius: 5px;
    background-color: #fff;
    border-top:3px solid #aaa
}

.pf-v5-theme-dark .pf-v5-c-login__main {
    background-color: #26292d;
    border-top:3px solid var(--pf-v5-global--primary-color--100)
}

.pf-v5-c-title {
    --pf-v5-c-title--FontFamily: Arial, sans-serif;
    color: var(--brk-dark-red);
    margin-bottom: 1rem;
    margin-inline: auto;
    font-weight:bold;
    font-size:clamp(1.25rem, 1rem + 1vw, 1.5rem);
    line-height: 1.2;
    text-align: center;
    white-space: normal;
    text-wrap: balance;
    max-width: 22ch;
}

.pf-v5-c-form__label-text {
    display: block;
    width: 100%;
    text-align: center;
}

.pf-v5-theme-dark  .pf-v5-c-title {
    color:white;
}


#kc-header-wrapper {
    background-image: url("../img/logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    color: transparent !important;
    margin-bottom: 0;
    aspect-ratio: 1239/375;
}

.pf-v5-c-login__header {
    padding: 1rem;
    background-color: var(--brk-light-gray);
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    margin-bottom: 2rem;
    border-radius: var(--pf-v5-global--BorderRadius--sm);
}

.pf-v5-theme-dark .pf-v5-c-login__header {
    box-shadow: 0 0 5px 0 #000;
}

.kc-custom-quick-guide-text {
    margin-top: 0.9rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.4;
}

.pf-v5-c-login__main a {
    color: var(--pf-v5-global--link--Color);
    text-decoration: none;
}

.pf-v5-c-login__main a:hover {
    color: var(--pf-v5-global--link--Color--hover);
    text-decoration: underline;
}

.kc-custom-footer {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 10;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #5b5b5b;
    background: var(--brk-light-gray);
    border-top: 1px solid #ddd;
}

.kc-custom-footer__content {
    max-width: 60rem;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}

.kc-custom-footer__text {
    text-align: center;
    margin-inline-end: 0.5rem;
}

.kc-custom-footer__links {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.kc-custom-footer__separator {
    margin-inline: 0.35rem;
}

@media (max-width: 420px) {
    .kc-custom-footer__content {
        flex-direction: column;
    }

    .kc-custom-footer__text {
        margin-inline-end: 0;
    }

    .kc-custom-footer__links {
        flex-wrap: wrap;
        white-space: normal;
    }
}

.kc-custom-footer a {
    color: var(--pf-v5-global--link--Color);
    text-decoration: none;
}

.kc-custom-footer a:hover {
    color: var(--pf-v5-global--link--Color--hover);
    text-decoration: underline;
}

.pf-v5-theme-dark .kc-custom-footer {
    color: #d7d7d7;
    background: #252525;
    border-top-color: #3b3f45;
}
