.login-pf {
  height: fit-content;
  min-height: 100%;
  background-image: url("../img/08Background.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
}

.login-pf body {
  padding-bottom: 50px;
  background: none;
}

#kc-header {
  content: url("../img/candace-logo-white.png");
  width: 300px;
  margin: 0 auto;
  max-width: 90%;
  cursor: pointer;
}

#kc-header-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

.pf-c-form-control {
  background-color: rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  padding: 10px 40px 10px 10px !important;
  width: 100% !important;
  margin-bottom: 15px !important;
  border-radius: 5px !important;
  font-size: 16px !important;
  box-sizing: border-box !important;
  position: relative;
  z-index: 1;
}

.pf-c-input-group {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 2;
}

.pf-c-form-control:not(textarea):focus-within {
  outline-color: #280377;
}

button.pf-c-button.pf-m-control {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: transparent !important;
  color: #ffffff !important;
  padding: 0 !important;
  position: absolute !important;
  right: 10px;
  top: 35%;
  transform: translateY(-50%) !important;
  z-index: 100 !important;
  cursor: pointer;
}

.kc-social-item {
  border-width: 2px !important;
}

#kc-social-providers h2 {
  text-align: center;
}

.pf-c-button.pf-m-control:after {
  border: unset;
  border-radius: unset;
}

button.pf-c-button.pf-m-control .fa-eye {
  color: #ffffff;
  font-size: 24px;
  display: inline-block;
}

button.pf-c-button.pf-m-control .fa.fa-eye-slash {
  color: #ffffff;
  font-size: 24px;
  display: inline-block;
}

.pf-c-input-group {
  box-shadow: none !important;
}

.pf-c-radio label {
  color: white;
}

.g-recaptcha {
  display: flex;
  align-items: center;
  justify-content: center;
}

#kc-form-options > div {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.fa-twitter:before {
  content: url("../img/x-logo.svg");
  display: block;
}

.fa-facebook:before {
  content: url("../img/facebook-wordmark.svg");
  display: block;
}

.fa-google:before {
  content: url("../img/google-wordmark.svg");
  display: block;
}

.kc-social-provider-name {
  display: none;
}

.card-pf {
  width: 800px;
  max-width: 90%;
  margin: 20px auto;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.85);
  padding: 30px;
  color: white;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
}

#kc-form-buttons {
  display: flex;
  justify-content: center;
}

#kc-form-buttons input, .form-actions input {
  width: fit-content;
  background-color: transparent !important;
  color: #b5ef35 !important;
  border: 2px solid #b5ef35 !important;
  font-size: 26px;
  font-weight: bold;
  padding: 12px;
  border-radius: 5px;
  text-transform: uppercase;
  cursor: pointer;
}

ul.kc-social-links {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0 !important;
  margin: 20px 0 !important;
}

@media (min-width: 600px) {
  ul.kc-social-links {
    flex-direction: row !important;
  }
}

.kc-social-links .kc-social-item {
  width: 120px !important;
  border-radius: 5px;
  border: 1px solid #b5ef35;
  background-color: #000;
  color: #ffffff;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s;
}

.kc-social-links .kc-social-item:hover {
  background-color: #b5ef35;
  border-color: #ffffff;
  color: #000;
}

.select-auth-box-parent {
  cursor: pointer;
  margin-top: 10px;
}

.select-auth-box-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid #ffffff;
  border-radius: 5px;
  margin-right: 10px;
  background-color: black;
}

.form-group:has(#picture),
.form-group:has(#displayName),
.form-group:has(#dateOfBirth),
.form-group:has(#gender-Male),
.form-group:has(#country),
.form-group:has(#state) {
  display: none;
}

#kc-form-options a {
  color: #b5ef35;
  font-weight: bold;
  text-decoration: none;
}

#kc-registration a {
  color: #b5ef35;
  font-weight: bold;
  text-decoration: none;
}

#kc-form-options a:hover {
  text-decoration: underline;
}

#kc-registration a:hover {
  text-decoration: underline;
}

#kc-page-title {
  text-align: center;
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  width: 100%;
}

#saveTOTPBtn {
  width: fit-content;
  background-color: transparent;
  color: #b5ef35;
  border: 2px solid #b5ef35;
  font-size: 26px;
  font-weight: bold;
  padding: 12px;
  border-radius: 5px;
  text-transform: uppercase;
  cursor: pointer;
}

#cancelTOTPBtn,
.btn-default {
  width: fit-content;
  background: none;
  color: #b5ef35;
  border: none;
  font-size: 26px;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  margin-left: 10px;
}

.btn-default:hover {
  background: none;
  color: #b5ef35;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  width: 1em;
  height: 1em;
  line-height: 100%;
  border: 1px solid #696969;
  border-radius: 0.1em;
  outline: none !important;
}

input[type="checkbox"]:after {
  display: none;
  text-align: center;
  content: "✔";
  width: 100%;
  height: 100%;
  border-radius: 0.1em;
  background-color: #696969;
  color: #b5ef35;
}

input[type="checkbox"]:checked:after {
  display: block;
}

input:focus {
  outline: none;
}

#mode-manual,
#mode-barcode {
  color: #b5ef35;
}

.pf-c-button:after {
  border: none;
}

.pf-c-form-control[aria-invalid="true"] {
  border-color: #bf0000 !important;
}

.pf-c-form__helper-text.pf-m-error {
  font-size: 16px;
  font-weight: 600;
  color: #bf0000;
}

#password.pf-c-form-control[aria-invalid="true"] {
  background: none;
}

.login-pf-header .subtitle {
  padding: 0;
}

.pf-c-input-group:has(input:-webkit-autofill) .fa-eye,
.pf-c-input-group:has(input:-webkit-autofill) .fa-eye-slash,
.pf-c-input-group:has(input:autofill) .fa-eye,
.pf-c-input-group:has(input:autofill) .fa-eye-slash {
  color: #000000 !important;
}

#password.pf-c-form-control:focus-within {
  background-color: transparent !important;
}

div:has(> #termsAccepted) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

#termsAccepted {
  margin: 0;
}

div:has(> #termsAccepted) label a, #kc-terms-text a {
  color: inherit;
  text-decoration: underline;
}

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

@media (max-width: 599px) {
  .form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .form-actions input {
    margin: 0;
  }
}
