@font-face {
  font-family: 'SwissReSansOT';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/SwissReSansOT-light.ttf') format('truetype');
}

@font-face {
  font-family: 'SwissReSansOT';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/SwissReSansOT-regular.ttf') format('truetype');
}

@font-face {
  font-family: 'SwissReSansOT';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/SwissReSansOT-bold.ttf') format('truetype');
}

:root {
  --keycloak-logo-url: url('../img/keycloak-logo-text.svg');
  --keycloak-bg-logo-url: url('../img/keycloak-bg.png');
  --keycloak-logo-height: 63px;
  --keycloak-logo-width: 300px;
}

.pf-v5-c-login__main {
  background-color: #fff!important;
}

.pf-v5-c-login__main-additional-info {
  margin-top: 30px;
  padding-top: 30px;
  padding-bottom: 0 !important;
  border-top: 1px solid rgba(60, 65, 80, 0.2);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.pf-v5-c-login__main-additional-info .additional-info__title {
  font-family: 'SwissReSansOT';
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #000!important;
}

.pf-v5-c-login__main-additional-info .additional-info__text {
  font-family: 'SwissReSansOT';
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  color: rgba(99, 103, 115, 1);
}

.pf-v5-c-login__main-additional-info .additional-info__text a {
  font-family: 'SwissReSansOT';
  font-weight: 300;
  font-size: 18px;
  line-height: 24px;
  color: rgba(0, 110, 115);
  border-bottom: 1px solid rgba(0, 110, 115, 1);
  text-decoration: none;
}

.pf-v5-c-login__main-additional-info .additional-info__text a:hover {
  border-bottom: 1px solid #cce2e3;
}

#kc-select-try-another-way-form,
.pf-v5-c-login__main-footer-band,
#kc-header {
  display: none;
}

h1.pf-v5-c-title {
  font-family: 'SwissReSansOT';
  font-size: 30px !important;
  font-weight: 300 !important;
  line-height: 38px !important;
  color: #000!important;
}

.pf-v5-c-login__container {
  display: flex;
  margin: 0;
  padding: 0;
}

.pf-v5-c-button.pf-m-primary {
  background-color: transparent !important;
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 30px;
  padding-right: 30px;
  gap: 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  height: 50px;
  cursor: pointer;
  position: relative;
  justify-content: center;
  z-index: 1;
  color: #ffffff;
  font-family: 'SwissReSansOT';
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
}

.pf-v5-c-button.pf-m-primary:after {
  display: none;
}

.pf-v5-c-button.pf-m-primary:hover {
  color: #006e73;
  background-color: transparent;
}

.pf-v5-c-button.pf-m-primary:hover:before {
  background-color: rgba(0, 0, 0, 0) !important;
  border-color: #cce2e3 !important;
}

.pf-v5-c-button.pf-m-primary:before {
  background-color: #006e73 !important;
  border-color: rgba(0, 0, 0, 0) !important;
}

.pf-v5-c-button.pf-m-primary:before {
  box-sizing: border-box;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 100px;
  border: 2px solid;
  border-color: transparent;
  z-index: -1;
  transition: background-color 0.2s cubic-bezier(0.39, 0.575, 0.565, 1),
    border-color 0.2s cubic-bezier(0.39, 0.575, 0.565, 1),
    transform 0.2s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.pf-v5-c-login__main-footer-links-item-link {
  padding-top: 0px;
  padding-bottom: 0px;
  padding-left: 30px;
  padding-right: 30px;
  gap: 10px;
  border-radius: 100px;
  display: flex;
  align-items: center;
  height: 50px;
  cursor: pointer;
  position: relative;
  justify-content: center;
  z-index: 1;
  color: #006e73;
  font-family: 'SwissReSansOT';
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  text-decoration: none;
}

.pf-v5-c-login__main-footer-links-item-link:before {
  background-color: rgba(0, 0, 0, 0) !important;
  border-color: #cce2e3 !important;
  box-sizing: border-box;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 100px;
  border: 2px solid;
  border-color: transparent;
  z-index: -1;
  transition: background-color 0.2s cubic-bezier(0.39, 0.575, 0.565, 1),
    border-color 0.2s cubic-bezier(0.39, 0.575, 0.565, 1),
    transform 0.2s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.pf-v5-c-login__main-footer-links-item-link:hover {
  color: #ffffff;
  border-color: rgba(0, 0, 0, 0) !important;
  background-color: rgba(0, 0, 0, 0) !important;
}

.pf-v5-c-login__main-footer-links-item-link:hover:before {
  background-color: #006e73 !important;
  border-color: rgba(0, 0, 0, 0) !important;
}

.pf-v5-c-login__main {
  padding: 40px;
  border-radius: 15px;
  width: 614px;
  align-self: center;
}

.pf-v5-c-login__main-header {
  padding: 0;
  display: flex !important;
  justify-content: space-between;
}

@media (max-width: 1279px) {
  .pf-v5-c-login__main {
    width: 514px !important;
  }
}

@media (max-width: 767px) {
  .pf-v5-c-login {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0 20px;
  }

  .pf-v5-c-login__container {
    max-width: 100% !important;
    display: flex;
    grid-column-start: 1;
    grid-column-end: 5;
  }

  .pf-v5-c-login__main {
    width: 100% !important;
  }
}

.pf-v5-c-login__main-header:after {
  content: '';
  min-width: 223px;
  height: 36px;
  background: url('../img/keycloak-logo-text.svg');
}
@media (max-width: 768px) {
  .pf-v5-c-login__main-header:after  {
    min-width: 99px;
  }
}

.pf-v5-c-login__main-body {
  padding: 0;
  margin-top: 30px;
  margin-bottom: 20px;
}

.pf-v5-c-form__actions {
  margin: 0;
}

.pf-v5-c-form__group {
  position: relative;
}

label.pf-v5-c-form__label {
  position: absolute;
  left: 16px;
  top: -12px;
  z-index: 1;
  background-color: #ffffff;
  margin: 0px;
  padding-left: 3px;
  padding-right: 3px;
  font-weight: 400;
  font-size: 14px;
  line-height: 24px;
  color: #3c4150;
}

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

.pf-v5-c-form-control {
  background-color: #fff!important;
}

.pf-v5-c-form-control input[type='text'] {
  margin: 0px;
  padding-top: 13px;
  padding-bottom: 13px;
  padding-right: 16px;
  padding-left: 20px;
  height: 50px;
  position: relative;
  border-radius: 4px;
  border: 1px solid #d8d9dc;
  color: #3c4150;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  outline-offset: unset;
  outline: none;
}

.pf-v5-c-form-control:before,
.pf-v5-c-form-control::after {
  display: none;
}

.pf-v5-c-form-control input[type='text']:focus {
  border-color: #3c4150;
}

.pf-v5-c-form-control input[type='text']::placeholder {
  color: #8a8d96;
}

.pf-v5-c-form {
  gap: 0;
}

#kc-login {
  margin: 20px 0 0 0;
}

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

.pf-v5-c-login__main-footer-links-item {
  width: 100%;
  padding: 0;
  margin: 0;
}

.pf-v5-c-login__main-footer-links-item-link svg path {
  display: none;
}

.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%;
  }
}

input:-internal-autofill-selected,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  transition: background-color 5000s ease-in-out 0s;
}
