.pf-v5-c-login__container {
  grid-template-columns: 34rem;
  grid-template-areas: "header"
    "main"
}

#kc-header-wrapper {
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  background-image: url('../img/logo.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  height: 60px;
}

.login-pf body {
  background: var(--keycloak-bg-logo-url) no-repeat center center fixed;
  background-size: cover;
  height: 100%;
}

div.kc-logo-text {
  background-image: var(--keycloak-logo-url);
  height: var(--keycloak-logo-height);
  width: var(--keycloak-logo-width);
  background-repeat: no-repeat;
  background-size: contain;
  margin: 0 auto;
}

div.kc-logo-text span {
  display: none;
}

.kc-login-tooltip {
  position: relative;
  display: inline-block;
}

.kc-login-tooltip .kc-tooltip-text {
  top: -3px;
  left: 160%;
  background-color: black;
  visibility: hidden;
  color: #fff;

  min-width: 130px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  padding: 5px;

  position: absolute;
  opacity: 0;
  transition: opacity 0.5s;
}

/* Show tooltip */
.kc-login-tooltip:hover .kc-tooltip-text {
  visibility: visible;
  opacity: 0.7;
}

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
  content: " ";
  position: absolute;
  top: 15px;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent black transparent transparent;
}

#kc-recovery-codes-list {
  columns: 2;
}

#certificate_subjectDN {
  overflow-wrap: break-word
}

#kc-header-wrapper {
  font-size: 29px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2em;
  white-space: normal;
  color: var(--pf-v5-global--Color--light-100) !important;
  text-align: center;
}

hr {
  margin-top: var(--pf-v5-global--spacer--sm);
  margin-bottom: var(--pf-v5-global--spacer--md);
}

@media (min-width: 768px) {
  div.pf-v5-c-login__main-header {
    grid-template-columns: 70% 30%;
  }
}

/* Social identity provider buttons */
#kc-social-providers ul {
  display: flex;
  flex-direction: column;
  gap: var(--pf-v5-global--spacer--sm);
}

#kc-social-providers li {
  margin: 0;
}

#kc-social-providers a {
  display: flex;
  align-items: center;
  gap: var(--pf-v5-global--spacer--sm);
  padding: var(--pf-v5-global--spacer--sm) var(--pf-v5-global--spacer--md);
}

#kc-social-providers img,
#kc-social-providers svg {
  max-width: 24px;
  max-height: 24px;
  width: auto;
  height: auto;
}

/* Form controls */
/* Inputs outline */
.pf-v5-c-form-control input:focus-visible,
.pf-v5-c-form-control select:focus-visible {
  outline: solid 1px var(--color-grey-light);
}
/* Checkbox */
.pf-v5-c-check__input {
  accent-color: var(--pf-v5-global--active-color--100);
}
/* Transitions */
input, button, select {
  transition: all 300ms ease-out;
}

/* Socials */
[id^="social-"] {
  --socials-background-color: black;
  --socials-text-color: white;
  background-color: var(--socials-background-color) !important;
  color: var(--socials-text-color) !important;
  transition: all 200ms ease-out;
}
[id^="social-"]:hover {
  filter: brightness(90%) !important;
}
[id^="social-"]:after {
  border: none !important;
}

/* Social apple */
#social-apple {
  --socials-background-color: black;
}
#social-apple > svg {
  background-image: url('../img/logo-apple.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
#social-apple > svg * {
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

/* Social facebook */
#social-facebook {
  --socials-background-color: #0865fa;
}
#social-facebook > svg {
  background-image: url('../img/logo-facebook.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
#social-facebook > svg * {
  opacity: 0;
  user-select: none;
  pointer-events: none;
}

/* Social google */
#social-google {
  --socials-background-color: white;
  --socials-text-color: var(--pf-v5-global--Color--dark-100);
  border: solid 1px var(--pf-v5-global--Color--dark-100);
}