@font-face {
  font-family: "Bressay";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/bressay/bressay_300.woff2") format("woff2");
}

@font-face {
  font-family: "Museo";
  font-style: normal;
  font-weight: 300;
  src: url("../fonts/museo/museosans_300.woff2") format("woff2");
}

@font-face {
  font-family: "Museo";
  font-style: bold;
  font-weight: 700;
  src: url("../fonts/museo/museosans_700.woff2") format("woff2");
}

h1 {
  font-family: var(--fonts-headings);
  color: var(--bfx-primary);
}

.login-pf-page .login-pf-header h1 {
  font-size: 20px;
}

body {
  font-family: Museo, HelveticaNeue, Arial, sans-serif;
  font-size: 14px;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  --bfx-primary: hsl(230, 71.4%, 41.2%);
  --bfx-primary-highlight: hsl(230, 71.4%, 44%);
  --bfx-secondary: hsl(102, 59%, 61.8%);
  --bfx-secondary-highlight: hsl(193.5, 72.1%, 57.8%);
  --border-radius: 3px;

  --pf-global--BackgroundColor--dark-100: var(--bfx-primary);
  --pf-global--link--Color: var(--bfx-primary);
  --pf-global--primary-color--100: var(--bfx-primary);
  --pf-global--primary-color--dark-100: var(--bfx-primary);
  --pf-global--Color--100: #333333;

  --fonts-headings: "Bressay", "HelveticaNeue", Arial, sans-serif;
  --fonts-text: Museo, HelveticaNeue, Arial, sans-serif;
}

.login-pf a,
.login-pf a:visited {
  color: var(--pf-global--link--Color);
}

.login-pf a:hover,
.login-pf a:focus {
  color: var(--bfx-primary-highlight);
}

.pf-c-form-control {
  --pf-c-form-control--PaddingTop: 0.4rem;
  --pf-c-form-control--PaddingBottom: 0.4rem;
  --pf-c-form-control--BorderRadius: var(--border-radius);
}

.pf-c-button {
  --pf-c-button--m-primary--BackgroundColor: var(--bfx-secondary);
  --pf-c-button--m-primary--hover--BackgroundColor: var(
    --bfx-secondary-highlight
  );
  --pf-c-button--m-primary--active--BackgroundColor: var(
    --bfx-secondary-highlight
  );
  --pf-c-button--m-primary--active--BackgroundColor: var(
    --bfx-secondary-highlight
  );
  --pf-c-button--m-primary--focus--BackgroundColor: var(
    --bfx-secondary-highlight
  );
  font-weight: bold;
  font-size: 16px;
}

.pf-c-button.btn-sm {
  font-size: 14px;
  font-weight: normal;
}

.pf-c-button.btn-link {
  color: var(--pf-global--link--Color);
  &:hover {
    color: var(--bfx-primary-highlight);
  }
}

a.bfx-button,
a.bfx-button:visited,
a.bfx-button:link {
  background-color: var(--bfx-secondary);
  display: inline-block;
  color: white;
  font-weight: bold;
  padding: 8px 32px;
  text-decoration: none;
  font-family: var(--fonts-text);
  border-radius: var(--border-radius);

  &:hover {
    color: white;
    background-color: var(--bfx-secondary-highlight);
  }
}

input {
  padding: 1rem;
}

.pf-c-form-control[aria-invalid="true"] {
  border: 1px solid var(--pf-c-form-control--invalid--BorderBottomColor);
}

.pf-c-form__helper-text.pf-m-error {
  margin-top: 0.25rem;
  display: inline-block;
}

.pf-c-form__label {
  margin-bottom: 0.25rem;
  font-weight: bold;
}

.card-pf {
  @media (min-width: 768px) {
    border-radius: var(--border-radius);
  }
}

.btn-lg {
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
}

.login-pf body {
  background-image: none;
  background-color: var(--bfx-primary);
}

div.pattern-two {
  display: none;
  position: absolute;
  z-index: -1;
  right: -256px;
  top: -256px;
  width: 868px;
  height: 1024px;
  background-image: url("../img/blue-bubbles.png");
  background-size: 868px 1024px;
  background-position: center;
  background-repeat: no-repeat;
  @media (min-width: 1200px) {
    display: block;
  }
}

div.pattern-one {
  display: none;
  position: absolute;
  z-index: -1;
  left: -48px;
  bottom: -48px;
  width: 195px;
  height: 195px;
  background-image: url("../img/green-bubble.png");
  background-size: 195px 195px;
  background-position: center;
  background-repeat: no-repeat;
  @media (min-width: 1200px) {
    display: block;
  }
}

.maintenance-hint {
  display: flex;
  position: absolute;
  margin: auto;
  max-width: 280px;
  right: 32px;
  top: 240px;
  left: auto;
  color: white;
  font-family: var(--fonts-text);
  font-size: 16px;
  line-height: 1.25rem;
  flex-direction: column;
  gap: 1rem;
}

.maintenance-hint h4 {
  font-size: 18px;
  line-height: 1.5rem;
  font-family: var(--fonts-headings);
}

.hide-small {
  @media (max-width: 1200px) {
    display: none;
  }
}

#kc-select-try-another-way-form {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
}

#kc-header-wrapper {
  padding: 16px 16px 0 16px;
}

.login-pf-page .card-pf {
  @media (max-width: 767px) {
    padding-top: 16px;
  }
}

div.kc-logo-text {
  background-image: url("../img/baufinex-white.svg");
  background-size: 200px 80px;
  background-position: center;
  background-repeat: no-repeat;
  width: auto;
  height: 80px;
  margin: 0 auto;
}
