body,
html {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  font-size: 14px;
  margin: 0;
  height: 100%;
}

body {
  margin: 0;
}

.login-pf {
  height: 100%;
  position: relative;
  background: transparent;
}

.login-pf::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/background-vector.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.03;
  z-index: -1;
}

.login-pf-page-header {
  background-image: url('../img/keycloak-logo.svg');
  background-repeat: no-repeat;
  background-size: 45px;
  height: 40px;
  margin-left: 4%;
}

.login-pf body {
  background: none;
  background-color: transparent;
}

.login-pf-page {
  display: flex;
  flex-direction: column;
}

.login-pf-page .login-pf-header h1 {
  font-size: 16px;
  font-weight: 400;
  color: #697586;
  margin-bottom: 1px;
}

.login-pf-page .login-pf-header {
  margin-bottom: 1px;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding-top: none;
  margin-right: -20px;
  margin-left: -20px;
  padding-bottom: 10px;
  box-sizing: border-box;
  height: 70px;
}

.center-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.left-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 10px;
}

#kc-header {
  width: 200px;
  height: 50px;
  margin-left: 50px;
}

.signup-title,
.forget-password-title {
  color: #ff8c1a;
  font-size: 24px;
  font-weight: 600;
}

.subtitle {
  font-weight: 400;
  font-size: 16px;
  text-align: left;
  color: #021829;
  margin-top: 8px;
  white-space: nowrap;
}

.forget-password-subtitle {
  font-weight: 400;
  font-size: 16px;
  text-align: left;
  color: black;
  margin-top: 10px;
  white-space: nowrap;
}

.forget-password-instruction {
  font-weight: 400;
  font-size: 16px;
  text-align: left;
  color: black;
  margin-top: 8px;
  line-height: 24px;
}

.other-auth-title {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  color: black;
  margin-top: 10px;
  margin-bottom: 10px;
  white-space: nowrap;
}

textarea.pf-c-form-control {
  height: auto;
}

.pf-c-alert__title {
  font-size: var(--pf-global--FontSize--xs);
}

p.instruction {
  margin: 5px 0;
}

.pf-c-button.pf-m-control {
  border-color: rgba(230, 230, 230, 0.5);
}

h1#kc-page-title {
  margin-top: 10px;
}

#kc-locale ul {
  background-color: var(--pf-global--BackgroundColor--100);
  display: none;
  top: 20px;
  min-width: 100px;
  padding: 0;
}

#kc-locale-dropdown {
  display: inline-block;
}

#kc-locale-dropdown:hover ul {
  display: block;
}

#kc-locale-dropdown a {
  color: var(--pf-global--Color--200);
  text-align: right;
  font-size: var(--pf-global--FontSize--sm);
}

a#kc-current-locale-link::after {
  content: '\2c5';
  margin-left: var(--pf-global--spacer--xs);
}

.login-pf .container {
  padding-top: 40px;
}

.login-pf a:hover {
  color: #ff8c1a;
}

#kc-logo {
  width: 100%;
}

div.kc-logo-text {
  background-image: url(../img/keycloak-logo-text.png);
  background-repeat: no-repeat;
  height: 63px;
  width: 300px;
  margin: 0 auto;
}

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

#kc-header {
  color: #ededed;
  overflow: visible;
  white-space: nowrap;
}

#kc-header-wrapper {
  font-size: 29px;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.2em;
  padding: 62px 10px 20px;
  white-space: normal;
}

#kc-content {
  width: 100%;
}

#kc-attempted-username {
  font-size: 20px;
  font-family: inherit;
  font-weight: normal;
  padding-right: 10px;
}

#kc-username {
  text-align: center;
  margin-bottom: -10px;
}

#kc-webauthn-settings-form {
  padding-top: 8px;
}

#kc-form-webauthn .select-auth-box-parent {
  pointer-events: none;
}

#kc-form-webauthn .select-auth-box-desc {
  color: var(--pf-global--palette--black-600);
}

#kc-form-webauthn .select-auth-box-headline {
  color: var(--pf-global--Color--300);
}

#kc-form-webauthn .select-auth-box-icon {
  flex: 0 0 3em;
}

#kc-form-webauthn .select-auth-box-icon-properties {
  margin-top: 10px;
  font-size: 1.8em;
}

#kc-form-webauthn .select-auth-box-icon-properties.unknown-transport-class {
  margin-top: 3px;
}

#kc-form-webauthn .pf-l-stack__item {
  margin: -1px 0;
}

#kc-content-wrapper {
  margin-top: 1px;
}

#kc-form-wrapper,
#kc-passwd-update-form {
  margin-top: 10px;
}

#kc-info-wrapper {
  font-size: 13px;
}

#kc-form-options span {
  display: flex;
  justify-content: space-between;
}

#kc-form-options .checkbox {
  display: flex;
  color: #4b4b4c;
  font-size: 14px;
  font-weight: 400;
  align-items: center;
}

#kc-form-options .checkbox label span {
  margin-left: 10px;
  margin-top: 1px;
  color: #4b4b4c;
}

#kc-terms-text {
  margin-bottom: 20px;
}

#kc-registration-terms-text {
  max-height: 100px;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 5px;
}

#kc-registration {
  margin-bottom: 0;
}

.required {
  color: var(--pf-global--danger-color--200);
}

ol#kc-totp-settings {
  margin: 0;
  padding-left: 20px;
}

ul#kc-totp-supported-apps {
  margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
  max-width: 150px;
  max-height: 150px;
}

#kc-totp-secret-key {
  background-color: #fff;
  color: #333333;
  font-size: 16px;
  padding: 10px 0;
}

#kc-oauth h3 {
  margin-top: 0;
}

#kc-oauth ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#kc-oauth ul li {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
  border-top: 0;
}

#kc-oauth .kc-role {
  display: inline-block;
  width: 50%;
}

#kc-code textarea {
  width: 100%;
  height: 8em;
}

.kc-social-links {
  margin-top: 20px;
  margin-bottom: 10px;
}

.kc-social-links li {
  width: 100%;
}

.kc-social-provider-logo {
  font-size: 23px;
  width: 30px;
  height: 25px;
  margin-right: 20px;
}

.kc-social-gray {
  color: var(--pf-global--Color--200);
}

.kc-social-item {
  margin-bottom: var(--pf-global--spacer--sm);
  font-size: 15px;
  text-align: center;
}

.kc-social-provider-name {
  position: relative;
}

.kc-social-icon-text {
  left: -15px;
  color: #021829;
  font-size: 16px;
}

.kc-social-grid {
  display: grid;
  grid-column-gap: 10px;
  grid-row-gap: 5px;
  grid-column-end: span 6;
  --pf-l-grid__item--GridColumnEnd: span 6;
}

.kc-social-grid .kc-social-icon-text {
  left: -10px;
}

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

.kc-social-section {
  text-align: center;
}

.kc-social-section hr {
  margin-bottom: 10px;
}

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

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

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

@media (min-width: 768px) {
  #kc-container-wrapper {
    position: absolute;
    width: 100%;
  }

  .login-pf .container {
    padding-right: 80px;
  }

  #kc-locale {
    position: relative;
    text-align: right;
    z-index: 9999;
  }
}

@media (max-width: 767px) {
  .login-pf body {
    background: white;
  }

  #kc-header {
    padding-left: 15px;
    padding-right: 15px;
    float: none;
    text-align: left;
  }

  #kc-header-wrapper {
    font-size: 16px;
    font-weight: bold;
    padding: 20px 60px 0 0;
    color: #72767b;
    letter-spacing: 0;
  }

  div.kc-logo-text {
    margin: 0;
    width: 150px;
    height: 32px;
    background-size: 100%;
  }

  #kc-form {
    float: none;
  }

  #kc-info-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
  }

  .login-pf .container {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #kc-locale {
    position: absolute;
    width: 200px;
    top: 20px;
    right: 20px;
    text-align: right;
    z-index: 9999;
  }
}

@media (min-height: 646px) {
  #kc-container-wrapper {
    bottom: 12%;
  }
}

@media (max-height: 645px) {
  #kc-container-wrapper {
    padding-top: 50px;
    top: 20%;
  }
}

.card-pf form.form-actions .btn {
  float: right;
  margin-left: 10px;
}

#kc-form-buttons {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.login-pf-page .login-pf-brand {
  margin-top: 20px;
  max-width: 360px;
  width: 40%;
}

.select-auth-box-arrow {
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.select-auth-box-icon {
  display: flex;
  flex: 0 0 2em;
  justify-content: center;
  margin-right: 1rem;
  margin-left: 3rem;
}

.select-auth-box-parent {
  border-top: 1px solid var(--pf-global--palette--black-200);
  padding-top: 1rem;
  padding-bottom: 1rem;
  cursor: pointer;
}

.select-auth-box-parent:hover {
  background-color: #f7f8f8;
}

.select-auth-container {
  padding-bottom: 0px !important;
}

.select-auth-box-headline {
  font-size: var(--pf-global--FontSize--md);
  color: var(--pf-global--primary-color--100);
  font-weight: bold;
}

.select-auth-box-desc {
  font-size: var(--pf-global--FontSize--sm);
}

.select-auth-box-paragraph {
  text-align: center;
  font-size: var(--pf-global--FontSize--md);
  margin-bottom: 5px;
}

.card-pf {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 500px;
  border-color: #e3e8ef;
  border-width: 1px;
  border-style: solid;
  border-radius: 12px;
  box-shadow: 0px 24px 38px 0px rgba(9, 15, 37, 0.07);
  @media (min-width: 500px) {
    min-width: 500px;
    margin: auto;
  }
}

@media (max-width: 767px) {
  .login-pf-page .card-pf {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 40px;
    border-top: 0;
    box-shadow: 0 0;
  }

  .kc-social-grid {
    grid-column-end: 12;
    --pf-l-grid__item--GridColumnEnd: span 12;
  }

  .kc-social-grid .kc-social-icon-text {
    left: -15px;
  }
}

.login-pf-page .login-pf-signup {
  font-size: 15px;
  color: #72767b;
}
#kc-content-wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.login-pf-page.login-pf-page-accounts {
  margin-left: auto;
  margin-right: auto;
}

.login-pf-page .btn-primary {
  margin-top: 0;
}

.login-pf-page .list-view-pf .list-group-item {
  border-bottom: 1px solid #ededed;
}

.login-pf-page .list-view-pf-description {
  width: 100%;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type,
#kc-update-email-form div.form-group:last-of-type {
  margin-bottom: 0px;
}

.no-bottom-margin {
  margin-bottom: 0;
}

#kc-back {
  margin-top: 5px;
}

.kc-recovery-codes-warning {
  margin-bottom: 32px;
}
.kc-recovery-codes-warning .pf-c-alert__description p {
  font-size: 0.875rem;
}
.kc-recovery-codes-list {
  list-style: none;
  columns: 2;
  margin: 16px 0;
  padding: 16px 16px 8px 16px;
  border: 1px solid #d2d2d2;
}
.kc-recovery-codes-list li {
  margin-bottom: 8px;
  font-size: 11px;
}
.kc-recovery-codes-list li span {
  color: #6a6e73;
  width: 16px;
  text-align: right;
  display: inline-block;
  margin-right: 1px;
}

.kc-recovery-codes-actions {
  margin-bottom: 24px;
}
.kc-recovery-codes-actions button {
  padding-left: 0;
}
.kc-recovery-codes-actions button i {
  margin-right: 8px;
}

.kc-recovery-codes-confirmation {
  align-items: baseline;
  margin-bottom: 16px;
}

.google-button {
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  height: 48px;
  margin: 0 !important;
  background: #f8f8f8;
  border: 1px solid #e3e8ef;
  border-radius: 12px;
  flex: none;
  align-self: stretch;
  color: black;
  font-weight: bold;
  text-decoration: none;
}

.google-button:hover {
  text-decoration: none;
  color: black;
}

#kc-social-providers {
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  color: #b8b8b9;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #b8b8b9;
}

.login-divider::before {
  margin-right: 10px;
}

.login-divider::after {
  margin-left: 10px;
}

.kcFormGroupContainer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.kcFormGroupContainer .kcFormGroupClass {
  flex: 1;
}

.kcInputWrapperClass {
  width: 100%;
}

.kcInputGroup {
  display: flex;
  align-items: center;
  position: relative;
}

.kcInputClass {
  flex: 1;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e3e8ef;
  background-color: #f8f8f8;
  padding: 20px 10px 10px;
}

.inputClass {
  flex: 1;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e3e8ef;
  padding: 10px;
  outline: none;
  transition: border-color 0.2s ease;
}

input:-webkit-autofill,
input:-webkit-autofill:focus {
  transition:
    background-color 0s 600000s,
    color 0s 600000s !important;
}

.inputClass:focus {
  border-color: #ff6e31;
}

.kcFormPasswordVisibilityButtonClass {
  border-radius: 0 12px 12px 0;
  border: 1px solid #ccc;
  background-color: #fff;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  height: 100%;
  border-left: none;
}

.password-toggle {
  border: none;
  background-color: transparent;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
}

.kcLabelWrapperClass {
  margin-left: 20px;
}

.kcLabelClass {
  position: absolute;
  top: 5px;
  left: 30px;
  font-size: 12px;
  color: black;
  pointer-events: none;
}

.labelClass {
  position: absolute;
  top: -10px;
  left: 35px;
  font-size: 12px;
  color: #646464;
  pointer-events: none;
  background-color: white;
  padding: 0 2px 0;
  margin: 0;
}

.passwordLabelClass {
  position: absolute;
  top: 5px;
  left: 30px;
  font-size: 12px;
  color: black;
  pointer-events: none;
}

.kcCheckboxInputClass {
  background-color: black;
}

.kcButtonClass {
  background-color: #ff6e31;
  width: 100%;
  height: 44px;
  border: 1px solid #ccc;
  border-radius: 12px;
  color: white;
}

.kcButtonClass:disabled {
  background-color: #e5e5e5; /* Light grey background */
  color: #9ca3af; /* Grey text */
  cursor: not-allowed;
}

.kcBackButtonClass {
  background-color: transparent;
  width: 100%;
  height: 44px;
  border: 1px solid #ff6e31;
  border-radius: 12px;
  color: #ff6e31;
}

.kcFormOptionsClass {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

#kc-info-message a {
  color: #ff6e31;
}

.password-requirements-container {
  margin-top: 32px;
}

.password-requirements-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 12px;
}

.password-requirement {
  margin-bottom: 12px;
  color: #7f7f80;
}

.password-requirement-icon {
  font-size: 18px;
  margin-right: 8px;
  color: #c23636;
}

.valid {
  color: #54b070;
}

button,
input,
optgroup,
select,
textarea {
  color: #7f7f80;
  font: inherit;
  margin: 0;
}

.custom-checkbox {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 2px;
  display: inline-block;
  cursor: pointer;
  background-color: transparent;
  position: relative;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.custom-checkbox:checked {
  background-color: #ff6e31;
  border-color: #ff6e31;
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.link-style {
  color: #4b4b4c;
  font-weight: 500;
  font-size: 14px;
}

.sign-up-title {
  color: #4b4b4c;
  font-size: 14px;
  font-weight: 500;
}

.google-icon-style {
  width: 25px;
  height: 25px;
  margin-right: 25px;
}

button,
input,
optgroup,
select,
textarea {
  color: #000;
  font: inherit;
  margin: 0;
}

input.invalid {
  border: 2px solid #c23636;
}

.error-message {
  color: #c23636;
  font-size: 0.9em;
  display: none;
  margin-top: 5px;
}

.error-message.visible {
  display: block;
}

.terms-link {
  color: #ff8c1a;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}
