.login-pf body {
  background: none !important;
  background-color: var(--clr-black) !important;
}

.login-pf {
  background: none !important;
  background-color: var(--clr-black) !important;
}

.login-pf-page .login-pf-header h1 {
  width: 75%;
  margin: 2rem auto 1rem;
  padding-bottom: 0.5rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.8px;
  border-bottom: var(--border-light);
}

.form-group select {
  height: 32px;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background-color: var(--clr-white);
  border: var(--border-light);
  border-radius: var(--border-radius-button);
}

.form-group .policy-text {
  color: var(--clr-grey-mid) !important;
}

.form-control.ehotel {
  height: auto;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: var(--border-light);
  border-radius: var(--border-radius-button);
}

.form-control.ehotel:hover {
  border-color: var(--primary-color) !important;
}

.form-control.ehotel:focus {
  border-color: var(--primary-color) !important;
  outline: 0;
  box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.075),
    0 0 8px rgba(227, 31, 33, 0.6) !important;
}

.alert-error {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.5rem !important;
  gap: 1rem;
  border-radius: var(--border-radius-button);
  background-color: var(--clr-white);
  border-color: var(--clr-error);
  color: var(--clr-error);
  font-weight: 600;

  @media (min-width: 768px) {
    padding: 0.75rem 1.5rem !important;
  }
}

.alert-error .pficon {
  position: static !important;
}

.alert-error .pficon:before {
  color: var(--clr-error) !important;
}

#kc-locale ul {
  display: none;
  position: absolute;
  background-color: #fff;
  list-style: none;
  right: 0;
  top: 20px;
  min-width: 100px;
  padding: 2px 0;
  border: solid 1px #bbb;
}

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

#kc-locale ul li a {
  display: block;
  padding: 5px 14px;
  color: #000 !important;
  text-decoration: none;
  line-height: 20px;
}

#kc-locale ul li a:hover {
  color: #4d5258;
  background-color: #d4edfa;
}

#kc-locale-dropdown a {
  color: #4d5258;
  background: 0 0;
  padding: 0 15px 0 0;
  font-weight: 300;
}

#kc-locale-dropdown a:hover {
  text-decoration: none;
}

a#kc-current-locale-link {
  display: block;
  padding: 0 5px;
}

a#kc-current-locale-link::after {
  content: "\2c5";
  margin-left: 4px;
}

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

.login-pf a,
.ehotel-back-to-login a {
  color: var(--primary-color);
  text-decoration: none;
}

.login-pf-page a:hover,
.ehotel-back-to-login a:hover {
  color: var(--primary-hover-color) !important;
  text-shadow:
    0.35px 0 0 currentColor,
    -0.35px 0 0 currentColor !important;
}

.login-pf .card-pf {
  border-radius: 1rem;
}

#kc-logo {
  width: 100%;
}

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

div.kc-logo-text {
  background-repeat: no-repeat;
  height: 60px;
  width: 150px;
  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: 0px 10px 20px;
  white-space: normal;
}

#kc-content {
  width: 100%;
}

#kc-content-wrapper {
  line-height: 1.2;
}

#kc-info {
  padding-bottom: 200px;
  margin-bottom: -200px;
}

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

#kc-form-options span {
  display: block;
}

#kc-form-options .checkbox {
  display: flex;
  justify-content: center;
  margin-top: 0;
  color: var(--clr-grey-mid);
}

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

#kc-registration {
  margin-bottom: 15px;
}

/* TOTP */

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

/* OAuth */

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

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

/* Social */

#kc-social-providers ul {
  padding: 0;
}

#kc-social-providers li {
  display: block;
}

#kc-social-providers li:first-of-type {
  margin-top: 0;
}

.zocial,
a.zocial {
  width: 100%;
  font-weight: normal;
  font-size: 14px;
  text-shadow: none;
  font-weight: 600;
  border: 0;
  color: var(--clr-grey-mid);
  border-radius: 0;
  white-space: normal;
}

.zocial:before {
  border-right: 0;
  margin-right: 0;
}

.zocial span:before {
  padding: 7px 10px;
  font-size: 14px;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter {
  background-image: none;
  border: 0;

  box-shadow: none;
  text-shadow: none;
}

/* Copy of zocial windows classes to be used for microsoft's social provider button */
.zocial.microsoft:before {
  content: "\f15d";
}

.zocial.stackoverflow:before {
  color: inherit;
}

@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 !important;
  }

  #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 auto;
    width: 150px;
    height: 60px;
    background-size: 100%;
  }

  #kc-form {
    float: none;
  }

  #kc-info-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 15px;
    padding-top: 15px;
    padding-left: 0px;
    padding-right: 15px;
  }

  #kc-social-providers li {
    display: block;
    margin-right: 5px;
  }

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

  #kc-logo-wrapper {
    background-size: 100px 21px;
    height: 21px;
    width: 100px;
    margin: 20px 0 0 20px;
  }
}

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

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

#kc-register-form .form-group:has(.form-options) {
  width: fit-content;
  margin: 20px auto 0;
}

#kc-register-form .form-options span a,
.ehotel-back-to-login a {
  padding: 8px 16px;
  font-weight: 500;
  border-radius: var(--border-radius-button);
  border: var(--border-red);
}

.ehotel-back-to-login {
  display: block;
  width: fit-content;
  margin: 3rem auto 0;
}

.card-pf {
  background: #fff;
  margin: 0 auto;
  padding: 0 20px;
  max-width: 500px;
  border-top: 0;
  box-shadow: 0 0 0;
}

.login-pf-page #kc-form-buttons {
  padding-bottom: 20px;
  border-bottom: var(--border-light);
}

/*tablet*/
@media (max-width: 840px) {
  .login-pf-page .card-pf {
    max-width: none;
    margin-left: 20px;
    margin-right: 20px;
    padding: 20px 20px 30px 20px;
  }
}

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

  .card-pf.login-pf-accounts {
    max-width: none;
  }
}

.login-pf-page .login-pf-signup {
  font-size: 15px;
  color: #72767b;
}

#kc-content-wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

@media (min-width: 768px) {
  .login-pf-page .login-pf-social-section:first-of-type {
    padding-right: 39px;
    border-right: 1px solid #d1d1d1;
    margin-right: -1px;
  }

  .login-pf-page .login-pf-social-section:last-of-type {
    padding-left: 40px;
  }

  .login-pf-page .login-pf-social-section .login-pf-social-link:last-of-type {
    margin-bottom: 0;
  }
}

.login-pf-page .login-pf-social-link a {
  padding: 1rem;
  font-size: 14px;
  color: var(--primary-color);
  background-color: var(--clr-white);
  border-radius: var(--border-radius-button);
  border: var(--border-red);
  border-width: 2px;
}

.login-pf-page .login-pf-social-section:last-of-type {
  border: none;
}

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

.login-pf-page .btn-primary-ehotel {
  margin-top: 0;
  padding: 1rem;
  border: none;
}

.login-pf-page #kc-form-buttons {
  padding-bottom: 0;
  border-bottom: none;
}

.btn-primary-ehotel:hover,
.btn-primary-ehotel:focus,
.btn-primary-ehotel.focus,
.btn-primary-ehotel:active,
.btn-primary-ehotel.active,
.open > .dropdown-toggle.btn-primary-ehotel {
  color: var(--clr-white);
  background-color: var(--primary-hover-color);
}

.btn-primary-ehotel:active,
.btn-primary-ehotel.active,
.open > .dropdown-toggle.btn-primary-ehotel {
  background-image: none;
}

.btn-primary-ehotel.disabled,
.btn-primary-ehotel[disabled],
fieldset[disabled] .btn-primary-ehotel,
.btn-primary-ehotel.disabled:hover,
.btn-primary-ehotel[disabled]:hover,
fieldset[disabled] .btn-primary-ehotel:hover,
.btn-primary-ehotel.disabled:focus,
.btn-primary-ehotel[disabled]:focus,
fieldset[disabled] .btn-primary-ehotel:focus,
.btn-primary-ehotel.disabled.focus,
.btn-primary-ehotel[disabled].focus,
fieldset[disabled] .btn-primary-ehotel.focus,
.btn-primary-ehotel.disabled:active,
.btn-primary-ehotel[disabled]:active,
fieldset[disabled] .btn-primary-ehotel:active,
.btn-primary-ehotel.disabled.active,
.btn-primary-ehotel[disabled].active,
fieldset[disabled] .btn-primary-ehotel.active {
  background-color: var(--primary-color);
}

.btn-primary-ehotel .badge {
  color: var(--primary-color);
  background-color: var(--clr-white);
}

.btn-primary-ehotel {
  background-color: var(--primary-color);
  color: var(--clr-white);
  border-radius: var(--border-radius-button);
}

.btn-primary-ehotel:hover,
.btn-primary-ehotel:focus,
.btn-primary-ehotel:active,
.btn-primary-ehotel.active,
.open .dropdown-toggle.btn-primary-ehotel {
  background-color: var(--primary-hover-color);
  background-image: none;
  color: var(--clr-white);
}

.btn-primary-ehotel:active,
.btn-primary-ehotel.active,
.open .dropdown-toggle.btn-primary {
  background-image: none;
}

.btn-primary-ehotel.disabled,
.btn-primary-ehotel[disabled],
fieldset[disabled] .btn-primary-ehotel,
.btn-primary-ehotel.disabled:hover,
.btn-primary-ehotel[disabled]:hover,
fieldset[disabled] .btn-primary-ehotel:hover,
.btn-primary-ehotel.disabled:focus,
.btn-primary-ehotel[disabled]:focus,
fieldset[disabled] .btn-primary-ehotel:focus,
.btn-primary-ehotel.disabled:active,
.btn-primary-ehotel[disabled]:active,
fieldset[disabled] .btn-primary-ehotel:active,
.btn-primary-ehotel.disabled.active,
.btn-primary-ehotel[disabled].active,
fieldset[disabled] .btn-primary-ehotel.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.marked,
label.validation-required {
  color: #2c89c4 !important;
}

.marked,
label.validation-required:after {
  content: "*";
}

.form-group {
  margin-bottom: 10px !important;
}

.ehotel-e {
  color: var(--clr-error);
}

.ehotel-insider-checkbox {
  float: left;
  margin-right: 8px;
  line-height: 1.2;
  border: 2px solid #c1c1c1;
}

.ehotel-insider-label {
  font-size: 14px;
  font-weight: 400;
}

hr {
  display: block;
  margin-top: 0px;
  margin-bottom: 0px;
  border-style: inset;
}

.bonusmiles-checkbox {
  float: left;
  margin-right: 8px;
  line-height: 1.2;
  border: 2px solid #c1c1c1;
}

.bonusmiles-label {
  text-align: right;
  font-size: 14px;
  font-weight: 400;
}

.marketing-container {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  padding-bottom: 12px;
}

.marketing-header {
  font-weight: 600;
  font-size: 1.2em;
  display: inline;
}

.rememberMe input {
  margin: 0;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.rememberMe span {
  color: var(--clr-grey-dark);
}

/* Update Password */
.ehotel-password-policy {
  margin-top: 0.5rem;
}

/*  Patternfly Overrides */
.login-pf-social-link {
  flex-basis: 100% !important;
}
