:root,
.pf-v5-theme-dark {
  color-scheme: light;
  --theoffice-primary: #336699;
  --theoffice-primary-dark: #244766;
  --theoffice-primary-soft: #d8e4f0;
  --theoffice-surface: #ffffff;
  --theoffice-surface-muted: #f5f5f5;
  --theoffice-text: #242424;
  --theoffice-text-strong: #111111;
  --theoffice-muted: #777777;
  --theoffice-border: rgba(190, 190, 190, 0.58);
  --theoffice-radius: 1.125rem;
  --theoffice-radius-pill: 999px;
  --theoffice-shadow-card: 0 18px 34px rgba(48, 48, 48, 0.16), 0 5px 12px rgba(48, 48, 48, 0.08);
  --theoffice-shadow-control: 0 5px 12px rgba(122, 122, 122, 0.14), 0 1px 2px rgba(122, 122, 122, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.78), inset 0 -1px 1px rgba(116, 116, 116, 0.06);
  --theoffice-shadow-primary: 0 5px 12px rgba(36, 71, 102, 0.22), 0 1px 2px rgba(36, 71, 102, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.24), inset 0 -1px 1px rgba(36, 71, 102, 0.16);
  --pf-v5-global--FontFamily--sans-serif: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  --pf-v5-global--primary-color--100: var(--theoffice-primary);
  --pf-v5-global--primary-color--200: var(--theoffice-primary-dark);
  --pf-v5-global--link--Color: var(--theoffice-primary);
  --pf-v5-global--link--Color--hover: var(--theoffice-primary-dark);
}

html,
body,
#keycloak-bg {
  min-height: 100%;
  background: var(--theoffice-surface-muted);
  color: var(--theoffice-text);
  font-family: var(--pf-v5-global--FontFamily--sans-serif);
  letter-spacing: 0;
}

#keycloak-bg {
  background-image: none;
}

.pf-v5-c-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 4vw, 3rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(245, 245, 245, 0.92)),
    var(--theoffice-surface-muted);
}

.pf-v5-c-login__container {
  display: flex !important;
  width: min(100%, 30rem) !important;
  max-width: 30rem !important;
  padding: 0 !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0 !important;
}

#kc-header {
  width: 100% !important;
  max-width: none !important;
  inline-size: 100% !important;
  max-inline-size: none !important;
  align-self: stretch !important;
  margin: 0 0 1.125rem;
  text-align: left;
}

#kc-header-wrapper {
  color: transparent;
  font-size: 0;
  width: fit-content;
  min-width: 0;
  line-height: 0.95;
  text-shadow: none;
  text-align: left !important;
  text-transform: uppercase;
}

#kc-header-wrapper::before,
#kc-header-wrapper::after {
  display: block;
  color: var(--theoffice-primary);
  letter-spacing: 0;
}

#kc-header-wrapper::before {
  content: "THE";
  font-size: 1.1rem;
  font-weight: 500;
}

#kc-header-wrapper::after {
  content: "OFFICE";
  font-size: 2rem;
  font-weight: 850;
}

.pf-v5-c-login__main {
  overflow: hidden;
  width: 100% !important;
  max-width: none !important;
  inline-size: 100% !important;
  max-inline-size: none !important;
  align-self: stretch !important;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: var(--theoffice-radius);
  background: var(--theoffice-surface);
  color: var(--theoffice-text);
  box-shadow: var(--theoffice-shadow-card);
}

.pf-v5-c-login__main-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 1rem;
  padding: 1.75rem 1.75rem 0.75rem;
  background: var(--theoffice-surface);
}

.pf-v5-c-login__main-body {
  padding: 0.5rem 1.75rem 1.75rem;
}

.pf-v5-c-login__main-footer {
  margin: 0;
}

.pf-v5-c-login__main-footer-band {
  margin-top: 1.25rem;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(190, 190, 190, 0.32);
  background: transparent;
}

#kc-page-title {
  margin: 0;
  color: var(--theoffice-text-strong);
  font-size: 1.375rem;
  font-weight: 850;
  line-height: 1.18;
}

.pf-v5-c-form {
  display: grid;
  gap: 1rem;
}

.pf-v5-c-login__main-body > p,
.pf-v5-c-login__main-body .instruction {
  margin: 0;
  color: var(--theoffice-text);
  line-height: 1.55;
}

.pf-v5-c-login__main-body > p + .pf-v5-c-form,
.pf-v5-c-login__main-body .instruction + .pf-v5-c-form,
.pf-v5-c-login__main-body > p + form,
.pf-v5-c-login__main-body .instruction + form {
  margin-top: 1rem;
}

.pf-v5-c-form__group {
  margin-block: 0;
}

.pf-v5-c-form__label,
.pf-v5-c-form__label-text {
  color: var(--theoffice-muted);
  font-size: 0.8125rem;
  font-weight: 750;
  line-height: 1.2;
}

.pf-v5-c-form__group-label {
  padding-bottom: 0.375rem;
}

.pf-v5-c-form-control {
  --pf-v5-c-form-control--BorderColor: transparent;
  --pf-v5-c-form-control--BorderRadius: 0.875rem;
  --pf-v5-c-form-control--BackgroundColor: #ffffff;
  --pf-v5-c-form-control--after--BorderBottomColor: transparent;
  --pf-v5-c-form-control--after--BorderBottomWidth: 0;
  --pf-v5-c-form-control--before--BorderBottomColor: transparent;
  --pf-v5-c-form-control--before--BorderBottomWidth: 0;
  border: 1px solid var(--theoffice-border);
  border-radius: 0.875rem;
  background: #ffffff;
  color: var(--theoffice-text-strong);
  box-shadow: inset 0 2px 5px rgba(110, 110, 110, 0.18), inset 0 -1px 1px rgba(255, 255, 255, 0.58);
}

.pf-v5-c-form-control::before,
.pf-v5-c-form-control::after,
.pf-v5-c-input-group::before,
.pf-v5-c-input-group::after {
  display: none !important;
  content: none !important;
}

.pf-v5-c-form-control:focus-within {
  border-color: rgba(51, 102, 153, 0.58);
  box-shadow:
    0 0 0 4px rgba(51, 102, 153, 0.14),
    inset 0 2px 5px rgba(110, 110, 110, 0.16);
}

.pf-v5-c-form-control > input,
.pf-v5-c-form-control > select,
.pf-v5-c-form-control input,
.pf-v5-c-form-control select {
  min-height: 2.5rem;
  padding: 0 0.875rem;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: var(--theoffice-text-strong);
  font-size: 0.9375rem;
  font-weight: 560;
}

.pf-v5-c-form-control > input::placeholder {
  color: #a9a9a9;
}

.pf-v5-c-input-group {
  overflow: hidden;
  align-items: stretch;
  border: 1px solid var(--theoffice-border);
  border-radius: 0.875rem;
  background: #ffffff;
  box-shadow: inset 0 2px 5px rgba(110, 110, 110, 0.18), inset 0 -1px 1px rgba(255, 255, 255, 0.58);
}

.pf-v5-c-input-group:focus-within {
  border-color: rgba(51, 102, 153, 0.58);
  box-shadow:
    0 0 0 4px rgba(51, 102, 153, 0.14),
    inset 0 2px 5px rgba(110, 110, 110, 0.16);
}

.pf-v5-c-input-group .pf-v5-c-form-control {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.pf-v5-c-input-group .pf-v5-c-form-control:focus-within {
  border: 0;
  box-shadow: none;
}

.pf-v5-c-button {
  border-radius: var(--theoffice-radius-pill);
  border-color: rgba(255, 255, 255, 0.58);
  min-height: 2.5rem;
  padding-inline: 1.1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.pf-v5-c-button:hover {
  transform: scale(0.98);
}

.pf-v5-c-button.pf-m-primary {
  background: var(--theoffice-primary);
  color: #ffffff;
  box-shadow: var(--theoffice-shadow-primary);
}

.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus {
  background: var(--theoffice-primary-dark);
  color: #ffffff;
}

.pf-v5-c-button.pf-m-control {
  --pf-v5-c-button--after--BorderColor: transparent;
  --pf-v5-c-button--after--BorderWidth: 0;
  width: 3rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--theoffice-text);
  box-shadow: none;
}

.pf-v5-c-button.pf-m-control::before,
.pf-v5-c-button.pf-m-control::after {
  display: none !important;
  content: none !important;
}

.pf-v5-c-button.pf-m-control:hover,
.pf-v5-c-button.pf-m-control:focus {
  background: rgba(51, 102, 153, 0.08);
  color: var(--theoffice-primary-dark);
}

.pf-v5-c-form-control input:focus,
.pf-v5-c-form-control select:focus,
.pf-v5-c-input-group input:focus,
.pf-v5-c-input-group button:focus {
  outline: 0 !important;
  box-shadow: none !important;
}

.pf-v5-c-login__main-header-utilities .pf-v5-c-form-control {
  min-width: 8.5rem;
  border-radius: var(--theoffice-radius-pill);
  background: #ffffff;
  box-shadow: var(--theoffice-shadow-control);
}

.pf-v5-c-login__main-header-utilities select {
  min-height: 2.25rem;
  padding-inline: 0.875rem 2rem;
  font-size: 0.8125rem;
  font-weight: 650;
}

#kc-info,
#kc-info-wrapper,
#kc-registration {
  color: var(--theoffice-muted);
  font-size: 0.8125rem;
}

a,
.pf-v5-c-login a {
  color: var(--theoffice-primary);
  font-weight: 750;
  text-decoration: none;
}

a:hover,
.pf-v5-c-login a:hover {
  color: var(--theoffice-primary-dark);
  text-decoration: none;
}

.pf-v5-c-alert {
  border-radius: 0.875rem;
  box-shadow: none;
}

.pf-v5-c-alert.pf-m-danger {
  border-color: rgba(184, 52, 68, 0.34);
  background: #fde2e6;
  color: #8d2532;
}

.pf-v5-c-helper-text,
.pf-v5-c-form__helper-text {
  color: var(--theoffice-muted);
  font-size: 0.75rem;
}

.pf-v5-c-form__actions,
#kc-form-buttons {
  margin-top: 0;
  padding-top: 0.5rem;
}

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

.theoffice-info-message {
  display: grid;
  gap: 1rem;
}

.theoffice-info-message .instruction {
  margin: 0;
}

.theoffice-info-actions {
  margin: 0;
}

.theoffice-info-actions a {
  display: inline-flex;
  width: 100%;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--theoffice-radius-pill);
  background: var(--theoffice-primary);
  color: #ffffff;
  box-shadow: var(--theoffice-shadow-primary);
  font-size: 0.8125rem;
  font-weight: 800;
}

.theoffice-info-actions a:hover,
.theoffice-info-actions a:focus {
  background: var(--theoffice-primary-dark);
  color: #ffffff;
}

.theoffice-redirect-note {
  margin: -0.25rem 0 0;
  color: var(--theoffice-muted);
  font-size: 0.8125rem;
}

.pf-v5-c-check {
  color: var(--theoffice-muted);
  font-size: 0.8125rem;
}

@media (max-width: 42rem) {
  .pf-v5-c-login {
    align-items: stretch;
    padding: 1rem;
  }

  .pf-v5-c-login__container {
    display: flex;
    width: 100%;
    min-height: calc(100vh - 2rem);
    flex-direction: column;
    justify-content: center;
  }

  #kc-header {
    margin-left: 0.25rem;
  }

  .pf-v5-c-login__main-header {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.25rem 0.75rem;
  }

  .pf-v5-c-login__main-body {
    padding: 0.5rem 1.25rem 1.5rem;
  }

  .pf-v5-c-login__main-header-utilities {
    justify-self: start;
  }
}
