body {
  background-color: #f9f9f9;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.login-pf {
  background: none;
}

.login-pf-page .card-pf {
  background: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 400px;
  margin: 60px auto;
  padding: 40px;
  border-radius: 8px;
}
#kc-header{
  display: none !important;
}
h1#kc-page-title {
  margin: 0 0 24px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  text-align: center;
}

#kc-form-login .form-group {
  margin-bottom: 20px;
}

textarea.pf-c-form-control,
input.pf-c-form-control {
  font-size: 1rem;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.alert-error.pf-c-alert.pf-m-inline.pf-m-danger{
  background-color: lightcoral;
}

.alert-warning.pf-c-alert.pf-m-inline.pf-m-warning{
  background-color: lightcoral;
}

.pf-c-alert.pf-m-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

input#username {
  width: 93%;
}

input#password {
  width: 80%;
}

.required{
  color: red;
}

input#password-confirm {
  width: 80%;
}

#kc-register-form.textarea.pf-c-form-control, input.pf-c-form-control{
   width: 80%;
}

#kc-info-message p.instruction {
  display: none !important;
}

button[data-password-toggle] {
  background-color: #0F3E63;
  border: none;
  color: #fff;
  font-size: 1rem;
  padding: 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.pf-c-button.pf-m-primary,
.kc-login .pf-c-button.pf-m-primary,
#authenticateWebAuthnButton {
    background-color: #237B61;
    border: none;
    color: #fff;
    font-size: 1rem;
    padding: 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
    cursor: pointer;
    display: block;
    text-align: center;
}

.pf-c-button.pf-m-primary:hover,
#authenticateWebAuthnButton:hover {
    background-color: #1e6b54;
}

@media (max-width: 768px) {
    .pf-c-button.pf-m-primary,
    #authenticateWebAuthnButton {
        font-size: 0.95rem;
        padding: 10px;
    }
}


button[data-password-toggle]:hover {
  background-color: #0F3E63;
}

#input-error,
.kc-feedback-text.pf-m-error {
    color: red !important;
}


#kc-username.form-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
}

#kc-attempted-username {
  font-weight: 500;
  font-size: 1rem;
  color: #333;
}

#reset-login {
  text-decoration: none;
  font-size: 0.9rem;
  color: #237B61;
  display: flex;
  align-items: center;
}

.kc-login-tooltip {
  display: flex;
  align-items: center;
}

.kc-login-tooltip i {
  margin-right: 4px;
}

#kc-otp-login-form .form-group {
  margin-bottom: 1.5rem;
}

#kc-otp-login-form:has(#otp)::before,
#kc-totp-settings-form:has(#totp)::before {
  content:
    "Enter the 6-digit code from your authenticator app.\A\A"
    "Approved apps:\A"
    "• Google Authenticator\A"
    "• FreeOTP\A\A"
    "Not supported:\A"
    "• Microsoft Authenticator\A"
    "• Duo Authenticator";

  display: block;
  background-color: #f8fafc;
  border-left: 4px solid #237B61;

  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 8px;

  font-size: 0.88rem;
  line-height: 1.45;
  color: #0f172a;

  white-space: pre-line;
  box-shadow: none;
}


/* Email OTP form has #emailCode — explicitly hide */
#kc-otp-login-form:has(#emailCode)::before { content: none; display: none; }

#otp.pf-c-form-control {
  font-size: 1rem;
  padding: 12px;
  border-radius: 4px;
  border: 1px solid #ccc;
  width: 100%;
}


.pf-c-button.pf-m-primary,
.kc-login .pf-c-button.pf-m-primary {
  background-color: #237B61;
  border: none;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  padding: 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.pf-c-button.pf-m-primary:hover {
  background-color: #237B61;
}

.login-pf a {
  color: #237B61;
  text-decoration: none;
  font-size: 0.9rem;
}

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

#kc-locale-dropdown {
  display: inline-block;
  text-align: right;
  margin-top: 10px;
}

#kc-locale-dropdown ul {
  display: none;
  background-color: #fff;
  padding: 0;
  list-style: none;
  border: 1px solid #ccc;
  position: absolute;
  z-index: 1000;
  min-width: 100px;
}

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

#kc-locale-dropdown a,
#kc-locale-dropdown button {
  color: #237B61;
  font-size: 0.875rem;
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: right;
}

#kc-logo {
  width: 100%;
}

#kc-header-wrapper {
  font-size: 1.5rem;
  color: #333;
  text-align: center;
  padding-bottom: 20px;
  text-transform: none;
  letter-spacing: normal;
}

.kc-social-links {
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

.kc-social-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kc-social-item {
  font-size: 15px;
  text-align: center;
  margin-bottom: 10px;
}

.kc-social-providers ul {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.fa.fa-google::before {
  font-family: "Font Awesome 5 Brands";
  content: "\f1a0";                    
  font-weight: 400;
}

.fa.fa-windows::before {
  font-family: "Font Awesome 5 Brands";
  content: "\f17a";                    
  font-weight: 400;
}

.select-auth-container {
  margin-top: 2rem;
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.select-auth-box-parent {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: 1rem;
  text-align: left;
  gap: 1rem;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.select-auth-box-parent:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.select-auth-box-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
}

.select-auth-box-icon i {
  font-size: 1.5rem;
  color: #237B61;
}

.select-auth-box-parent .pf-l-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.select-auth-box-headline {
  font-weight: 600;
  font-size: 1rem;
  color: #212529;
}

.select-auth-box-desc {
  font-size: 0.85rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.select-auth-box-arrow i {
  color: #6c757d;
  transition: transform 0.2s ease;
}

.select-auth-box-parent:hover .select-auth-box-arrow i {
  transform: translateX(4px);
}

.pf-m-fill {
  display: none;
}

@media (max-width: 768px) {
  .login-pf-page .card-pf {
    margin: 30px 10px;
    padding: 30px 20px;
  }
  div.kc-logo-text {
    height: 40px;
    width: 140px;
  }
  h1#kc-page-title {
    font-size: 1.25rem;
  }
  .pf-c-button.pf-m-primary {
    font-size: 0.95rem;
    padding: 10px;
  }
}
