:root {
  --pf-v5-global--primary-color--100: var(--pf-v5-global--palette--green-200);
  --pf-v5-global--primary-color--200: var(--pf-v5-global--palette--green-300);
  --pf-v5-global--primary-color--300: var(--pf-v5-global--palette--green-500);
  --pf-v5-global--primary-color--light-100: var(
                  --pf-v5-global--palette--green-200
  );
  --pf-v5-global--primary-color--dark-100: var(
                  --pf-v5-global--palette--green-600
  );
  --pf-v5-global--BoxShadow--xl: 0 1rem 1rem 0 rgba(3, 3, 3, 0.16),
  0 0 0.5rem 0 rgba(3, 3, 3, 0.1);
  --pf-v5-global--BorderRadius--sm: 10px;
}

/* Show tooltip */
/* Arrow for tooltip */
.pf-v5-c-login__container {
  grid-template-columns: 25rem;
  grid-template-rows: 11rem;
  grid-template-areas: "header" "main";
  position: absolute;
}

.login-pf {
  height: 100%;
}
.login-pf body {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  font-family: "Segoe UI", Segoe, Tahoma, Helvetica, Arial, sans-serif;
  height: 100%;
  background-image: url("../images/login_fondo2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.login-pf body .pf-v5-c-brand {
  height: 75%;
}
.login-pf body .navbar-header {
  position: relative;
  display: flex;
  min-height: 150px;
  height: 22vh;
  width: 100vw;
  justify-content: right;
  padding: 1rem 10%;
  box-sizing: border-box;
}
.login-pf body .navbar-header a {
  padding: 0 1rem;
  border-right: 2px solid #fff;
}
.login-pf body .navbar-header a:last-child {
  border: none;
}
.login-pf body .container-logo {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}
.login-pf body .container-logo h2 {
  font-size: 18px;
  font-weight: bold;
}
.login-pf body .container-logo img {
  width: 50%;
  height: 50%;
}
.login-pf body .kc-login-main {
  border-radius: 26px;
  box-shadow: none;
  position: absolute;
  top: -65vh;
  max-width: 400px;
}
.login-pf body .kc-login-main .pf-v5-c-login__main-header {
  padding: 0;
  margin-top: 0.3rem;
  display: flex;
  justify-content: center;
}
.login-pf body .kc-login-main .pf-v5-c-login__main-header img {
  min-height: 110px;
}
.login-pf body .pf-m-control {
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  max-height: 1.8rem;
}
.login-pf body .pf-v5-c-form-control:hover {
  color: #8f8e8e;
}
.login-pf body .pf-v5-c-form {
  gap: 0.3rem;
}
.login-pf body input {
  max-height: 1.8rem;
  padding: 0 0.5rem;
  display: flex;
  align-items: center;
  border: none;
  border-radius: 5px;
  border-bottom: 2px solid #e6d9d9;
}

.custom-siriiagro-banner-inline {
  position: absolute;
  top: 4px;
  left: 36px;
  width: 380px;
  background-color: #ffe082;
  color: #424242;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 0.9em;
  z-index: 10;
  white-space: normal;
  word-wrap: break-word;
}

.kc-login-tooltip {
  position: relative;
  display: inline-block;
}
.kc-login-tooltip .kc-tooltip-text {
  top: -3px;
  left: 160%;
  background-color: black;
  visibility: hidden;
  color: white;
  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;
}
.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-login-tooltip:hover .kc-tooltip-text {
  visibility: visible;
  opacity: 0.7;
}

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

#certificate_subjectDN {
  overflow-wrap: break-word;
}

#kc-header-wrapper {
  color: var(--pf-v5-global--Color--light-100) !important;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
#kc-header-wrapper img {
  width: 50%;
}

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

.pf-v5-c-login__main-body {
  padding: 0 15px;
  width: 380px;
  padding-bottom: 1rem !important;
}
.pf-v5-c-login__main-body .form-actions {
  display: flex;
}
.pf-v5-c-login__main-body .form-actions .pf-v5-c-form__group div {
  display: flex;
}

.pf-v5-c-button.pf-m-primary.pf-m-block.btn-lg {
  min-height: 2rem;
}

.pf-v5-c-login {
  position: absolute;
  height: 83%;
  min-height: 50px;
  width: 100vw;
  align-items: end;
}

.pf-v5-c-form__label-text {
  font-weight: normal;
}

.--pf-v5-c-title--m-xl--FontSize {
  font-size: 1.1rem;
}

@media (max-width: 1300px) {
  .login-pf body .kc-login-main {
    top: -52vh;
  }
  .login-pf body input {
    font-size: 0.9rem;
    max-height: 1.3rem;
  }
  .login-pf body .pf-v5-c-form__label {
    font-size: 0.9rem;
  }
  .login-pf body .pf-m-control {
    padding: 0 0.5rem;
    max-height: 1.3rem;
  }
  .login-pf .pf-v5-c-login {
    top: -16vh;
  }
}