/* -----------------------------------------------
   Aileen Health – Keycloak Login Theme
   Dark Mode as Default, Light Mode as Alternative
----------------------------------------------- */

/* DEFAULT: Dark Mode for All Users */
body,
.login-pf body,
.login-pf-page {
  background: #0f172a !important;
  background-image: none !important;
  color: #e2e8f0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Light Mode - Only for users who prefer light */
@media (prefers-color-scheme: light) {
  body,
  .login-pf body,
  .login-pf-page {
    background: #eef1f5 !important;
    background-image: none !important;
    color: #1f2937 !important;
  }

  .login-pf-page .card-pf,
  .card-pf {
    background: #ffffff !important;
    border-color: #d7dde7 !important;
    box-shadow: 0 8px 22px rgba(25, 35, 55, 0.08) !important;
  }

  #kc-header-wrapper::before {
    background: url('../img/ohif-logo-light-mode.png') center center / contain no-repeat;
  }

  #kc-page-title,
  .aileen-login-title,
  .login-pf-page h1 {
    color: #111827 !important;
  }

  .aileen-login-subtitle,
  .control-label,
  label {
    color: #6b7280 !important;
  }

  .form-control,
  input[type="text"],
  input[type="password"],
  input[type="email"],
  .aileen-input,
  .aileen-input.form-control,
  #username,
  #password {
    background: #ffffff !important;
    border-color: #d3dae5 !important;
    color: #1f2937 !important;
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus,
  textarea:-webkit-autofill,
  select:-webkit-autofill {
    -webkit-text-fill-color: #1f2937 !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
  }

  .form-control:focus,
  input[type="text"]:focus,
  input[type="password"]:focus,
  input[type="email"]:focus,
  .aileen-input:focus,
  .aileen-input.form-control:focus,
  #username:focus,
  #password:focus {
    background: #ffffff !important;
    border-color: #8ab4f8 !important;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15) !important;
    color: #111827 !important;
  }

  .btn-primary,
  input[type="submit"],
  #kc-login {
    background: #ffffff !important;
    border-color: #b8c0cb !important;
    color: #111827 !important;
  }

  .btn-primary:hover,
  input[type="submit"]:hover,
  #kc-login:hover {
    background: #fbfcfd !important;
    border-color: #aab4c2 !important;
    color: #111827 !important;
  }

  .btn-primary:focus,
  input[type="submit"]:focus,
  #kc-login:focus {
    box-shadow: 0 0 0 3px rgba(170, 180, 194, 0.2) !important;
  }

  a,
  a:visited {
    color: #0d8ee8 !important;
  }

  a:hover {
    color: #0b7bca !important;
  }

  .aileen-forgot-link,
  .aileen-forgot-link:visited {
    color: #1594e8 !important;
  }

  .aileen-forgot-link:hover {
    color: #0b7bca !important;
  }

  #kc-registration,
  #kc-registration-container,
  .login-pf-signup,
  #kc-registration-wrapper {
    color: #6b7280 !important;
  }

  #kc-registration a,
  #kc-registration a:visited {
    color: #0d8ee8 !important;
  }

  .login-pf-page hr,
  hr {
    border-color: #e5e7eb !important;
  }

  .checkbox label,
  .login-pf-page .checkbox label {
    color: #6b7280 !important;
  }

  input[type="checkbox"] {
    accent-color: #003947;
  }

  .alert.alert-error,
  .alert-danger {
    background: #fff2f2 !important;
    border-color: #fecaca !important;
    color: #b42318 !important;
  }

  .alert.alert-warning {
    background: #fff7ed !important;
    border-color: #fed7aa !important;
    color: #b45309 !important;
  }

  .alert.alert-success {
    background: #ecfeff !important;
    border-color: #a5f3fc !important;
    color: #0e7490 !important;
  }

  .instruction,
  #kc-info-message p,
  .pf-v5-c-content p {
    color: #6b7280 !important;
  }

  #kc-info {
    color: #9ca3af !important;
  }

  .aileen-ms-title,
  .aileen-ms-subtitle {
    color: #6b7280 !important;
  }

  .aileen-ms-button {
    background: #ffffff !important;
    border-color: #b8c0cb !important;
    color: #111827 !important;
  }

  .aileen-ms-button:hover {
    background: #fbfcfd !important;
    border-color: #aab4c2 !important;
  }

  .aileen-ms-info {
    background: #eaf5ff !important;
    border-color: #abd8f7 !important;
    color: #0b67a4 !important;
  }

  .aileen-ms-divider-line {
    background: #d2dae5 !important;
  }

  .aileen-ms-divider-text {
    color: #c0cad8 !important;
  }

  .aileen-label {
    color: #1f355d !important;
  }

  .aileen-field-icon {
    opacity: 0.65 !important;
    color: inherit !important;
  }

  .aileen-input,
  .aileen-input.form-control,
  #username,
  #password {
    border-color: #c6d0dd !important;
    background: #f6f8fb !important;
  }

  .aileen-input:focus,
  .aileen-input.form-control:focus,
  #username:focus,
  #password:focus {
    border-color: #9ab0d0 !important;
    box-shadow: 0 0 0 3px rgba(60, 114, 187, 0.15) !important;
  }

  #kc-login,
  input[name="login"],
  input[type="submit"] {
    border-color: #1d9adf !important;
    background: #1d9adf !important;
    color: #ffffff !important;
  }

  #kc-login:hover,
  input[name="login"]:hover,
  input[type="submit"]:hover {
    background: #198ed0 !important;
    border-color: #198ed0 !important;
  }

  .aileen-remember-wrap {
    color: #2b4268 !important;
  }

  body,
  .login-pf body,
  .login-pf-page {
    background: #f3f4f6 !important;
  }

  .login-pf-page .card-pf,
  .card-pf {
    background: #ffffff !important;
    border-color: #d9e0ea !important;
    box-shadow: none !important;
    width: 400px !important;
    max-width: calc(100vw - 24px) !important;
    padding: 24px 24px 18px !important;
  }

  .aileen-login-heading {
    margin: 0 0 10px !important;
  }

  .aileen-login-title {
    margin: 0 !important;
    color: #0b1b38 !important;
    font-size: 32px !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
  }

  .aileen-login-subtitle {
    margin: 4px 0 0 !important;
    color: #4f6790 !important;
    font-size: 14px !important;
    line-height: 1.15 !important;
    font-weight: 500 !important;
  }

  .aileen-ms-button {
    height: 52px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    gap: 10px !important;
  }

  .aileen-ms-divider {
    margin: 14px 0 10px !important;
  }

  .aileen-ms-divider-line {
    background: #d6dde8 !important;
  }

  .aileen-ms-divider-text {
    color: #8fa0b9 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }
}

.login-pf-page {
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  padding: 24px 16px !important;
  box-sizing: border-box !important;
  transform: translateY(-30px) !important;
}

#kc-header {
  background: transparent !important;
  border-bottom: none !important;
  margin-bottom: 0 !important;
}

#kc-header-wrapper {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-shadow: none !important;
  text-align: center !important;
  padding: 0 0 4px !important;
  width: min(420px, 94vw) !important;
}

#kc-header-wrapper::before {
  content: "";
  display: inline-block;
  width: 140px;
  max-width: 70%;
  height: 54px;
  background: url('../img/ohif-logo-dark-mode.png') center center / contain no-repeat;
}

.login-pf-page .card-pf,
.card-pf {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4) !important;
  padding: 24px 24px 20px !important;
  width: 420px !important;
  max-width: 420px !important;
  margin: 0 auto !important;
}

#kc-page-title,
.login-pf-page h1 {
  color: #f1f5f9 !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-bottom: 18px !important;
  text-align: center !important;
}

/* Hide framework fallback page title text (e.g., "Sign in to ...") */
#kc-page-title {
  display: none !important;
}

.control-label,
label {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin-bottom: 6px !important;
}

.form-control,
input[type="text"],
input[type="password"],
input[type="email"] {
  background: #0f172a !important;
  border: 1px solid #475569 !important;
  border-radius: 8px !important;
  color: #e2e8f0 !important;
  font-size: 14px !important;
  height: 40px !important;
  padding: 8px 12px !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #e2e8f0 !important;
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  background: #0f172a !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
  color: #e2e8f0 !important;
  outline: none !important;
}

.kc-password-auth-status-container button,
.pf-v5-c-button.pf-m-plain {
  color: #94a3b8 !important;
}

#kc-form-login .pf-c-input-group {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
}

#kc-form-login .pf-c-input-group .pf-c-form-control {
  flex: 1 1 auto !important;
}

#kc-form-login .pf-c-input-group .pf-c-button.pf-m-control {
  flex: 0 0 auto !important;
}

.btn-primary,
input[type="submit"],
#kc-login {
  background: #1e3a8a !important;
  border: 1px solid #2563eb !important;
  border-radius: 12px !important;
  color: #f1f5f9 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  height: 52px !important;
  letter-spacing: 0 !important;
  transition: background 0.15s, border-color 0.15s !important;
  width: 100% !important;
}

.btn-primary:hover,
input[type="submit"]:hover,
#kc-login:hover {
  background: #1e40af !important;
  border-color: #3b82f6 !important;
  color: #f1f5f9 !important;
}

.btn-primary:focus,
input[type="submit"]:focus,
#kc-login:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
  outline: none !important;
}

a,
a:visited {
  color: #60a5fa !important;
}

a:hover {
  color: #93c5fd !important;
  text-decoration: underline !important;
}

#kc-registration,
#kc-registration-container,
.login-pf-signup {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  text-align: left !important;
  margin-top: 14px !important;
}

.login-pf-page hr,
hr {
  border-color: #334155 !important;
  margin: 16px 0 !important;
}

.checkbox label,
.login-pf-page .checkbox label {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

input[type="checkbox"] {
  accent-color: #3b82f6;
}

.alert.alert-error,
.alert-danger {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  border: 1px solid #ef4444 !important;
  border-top: 0 !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.28) !important;
}

.alert.alert-error p,
.alert-danger p,
.alert.alert-error span,
.alert-danger span {
  color: #ffffff !important;
  margin: 0 !important;
}

.alert.alert-error .pf-v5-c-alert__icon,
.alert-danger .pf-v5-c-alert__icon,
.alert.alert-error .kc-feedback-text > span:first-child,
.alert-danger .kc-feedback-text > span:first-child {
  color: #ffffff !important;
}

.alert.alert-warning {
  background: #78350f !important;
  border: 1px solid #f59e0b !important;
  border-radius: 8px !important;
  color: #fcd34d !important;
}

.alert.alert-success {
  background: #064e3b !important;
  border: 1px solid #10b981 !important;
  border-radius: 8px !important;
  color: #a7f3d0 !important;
}

.instruction,
#kc-info-message p,
.pf-v5-c-content p {
  color: #cbd5e1 !important;
  font-size: 13px !important;
}

.zocial,
.btn-social {
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* Hide Keycloak's default social login row (duplicate Microsoft block). */
#kc-social-providers {
  display: none !important;
}

.form-group {
  margin-bottom: 14px !important;
}

#kc-info {
  color: #94a3b8 !important;
  font-size: 12px !important;
  text-align: center !important;
  margin-top: 16px !important;
}

.aileen-ms-block {
  margin-bottom: 12px !important;
}

.aileen-ms-title {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  margin: 0 0 6px 0 !important;
}

.aileen-ms-subtitle {
  color: #cbd5e1 !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  margin: 0 0 14px 0 !important;
}

.aileen-ms-button {
  width: 100% !important;
  height: 52px !important;
  border: 1px solid #475569 !important;
  border-radius: 12px !important;
  background: #1e293b !important;
  color: #e2e8f0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  cursor: pointer !important;
}

.aileen-ms-button-icon {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain !important;
}

.aileen-ms-button-text {
  line-height: 1 !important;
}

.aileen-ms-button:hover {
  background: #334155 !important;
  border-color: #64748b !important;
}

.aileen-ms-info {
  margin-top: 12px !important;
  border: 1px solid #2563eb !important;
  border-radius: 12px !important;
  background: #1e3a8a !important;
  color: #93c5fd !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  padding: 10px 12px !important;
  text-align: center !important;
}

.aileen-ms-divider {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 14px 0 6px !important;
}

.aileen-ms-divider-line {
  flex: 1 !important;
  height: 1px !important;
  background: #475569 !important;
}

.aileen-ms-divider-text {
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

/* -----------------------------------------------
   Reuse loading-card styling for sign-out/info card
----------------------------------------------- */
.login-pf-page .card-pf:has(#kc-info-wrapper),
.login-pf-page .card-pf:has(#kc-logout-confirm) {
  border: 1px solid rgba(28, 201, 233, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(10, 20, 38, 0.18) !important;
  box-shadow: 0 0 0 1px rgba(213, 227, 255, 0.04) !important;
}

.login-pf-page #kc-info-wrapper,
.login-pf-page #kc-logout-confirm {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 16px !important;
  min-width: 220px !important;
  min-height: 132px !important;
  padding: 34px 44px !important;
}

.login-pf-page #kc-info-wrapper p,
.login-pf-page #kc-logout-confirm p {
  margin: 0 !important;
  color: #cbd5e1 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
}

.login-pf-page #kc-logout-confirm .btn,
.login-pf-page #kc-logout-confirm .btn-primary,
.login-pf-page #kc-info-wrapper .btn,
.login-pf-page #kc-info-wrapper .btn-primary,
.login-pf-page #kc-info-wrapper input[type="submit"] {
  width: auto !important;
  min-width: 112px !important;
  align-self: flex-start !important;
}

/* -----------------------------------------------
   Final screenshot-aligned overrides (Dark Mode Default)
----------------------------------------------- */

body,
.login-pf body,
.login-pf-page {
  background: #0a0f1f !important;
}

.login-pf-page .card-pf,
.card-pf {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  width: 400px !important;
  max-width: calc(100vw - 24px) !important;
  padding: 24px 24px 18px !important;
}

.aileen-login-heading {
  margin: 0 0 10px !important;
}

.aileen-login-title {
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 32px !important;
  line-height: 1.1 !important;
  font-weight: 700 !important;
  text-align: center !important;
}

.aileen-login-subtitle {
  margin: 32px 0 0 !important;
  color: rgb(169, 195, 230) !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
}

.aileen-ms-block {
  margin: 14px 0 12px !important;
}

.aileen-ms-button {
  height: 52px !important;
  border: 1px solid #475569 !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  gap: 10px !important;
}

.aileen-ms-button-icon {
  width: 20px !important;
  height: 20px !important;
}

.aileen-ms-info,
.aileen-ms-title,
.aileen-ms-subtitle {
  display: none !important;
}

.aileen-ms-divider {
  margin: 14px 0 10px !important;
}

.aileen-ms-divider-line {
  background: #475569 !important;
}

.aileen-ms-divider-text {
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

.aileen-label {
  color: rgb(169, 195, 230) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  margin-bottom: 6px !important;
}

.aileen-password-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.aileen-forgot-link,
.aileen-forgot-link:visited {
  color: rgb(28, 201, 233) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.aileen-input-wrap {
  position: relative !important;
}

.aileen-field-icon {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 20px !important;
  line-height: 1 !important;
  opacity: 0.7 !important;
  pointer-events: none !important;
  color: #94a3b8 !important;
}

.aileen-input,
.aileen-input.form-control,
#username,
#password {
  height: 50px !important;
  border-radius: 12px !important;
  border: 1px solid #475569 !important;
  background: #0f172a !important;
  font-size: 14px !important;
  padding-left: 44px !important;
  color: #e2e8f0 !important;
}

.aileen-input:focus,
.aileen-input.form-control:focus,
#username:focus,
#password:focus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
}

#kc-form-buttons {
  margin-top: 12px !important;
}

#kc-login,
input[name="login"],
input[type="submit"] {
  height: 52px !important;
  border-radius: 14px !important;
  border: 1px solid #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

#kc-login:hover,
input[name="login"]:hover,
input[type="submit"]:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}

.aileen-remember-wrap {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: rgb(111, 134, 173) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  margin: 2px 0 0 !important;
}

.aileen-remember-wrap input[type="checkbox"] {
  width: 12px !important;
  height: 12px !important;
  margin-left: 5px !important;
}

  #kc-registration,
  #kc-registration-container,
  .login-pf-signup,
  #kc-registration-wrapper {
    text-align: center !important;
    color: #60708d !important;
    font-size: 14px !important;
    margin-top: 14px !important;
  }

  #kc-registration a,
  #kc-registration a:visited {
    color: rgb(28, 201, 233) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  .aileen-ms-button,
  #kc-login,
  input[name="login"],
  input[type="submit"] {
    font-size: 16px !important;
  }

  .aileen-input,
  .aileen-input.form-control,
  #username,
  #password {
    font-size: 15px !important;
  }
}

@media (max-width: 600px) {
  .login-pf-page {
    padding: 14px 10px !important;
    transform: none !important;
    justify-content: flex-start !important;
  }

  .login-pf-page .card-pf,
  .card-pf {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 18px 16px 16px !important;
    border-radius: 14px !important;
  }

  #kc-header-wrapper {
    width: 100% !important;
    padding-bottom: 0 !important;
  }

  #kc-header-wrapper::before {
    width: 132px !important;
    height: 52px !important;
  }

  .aileen-login-heading {
    margin-bottom: 10px !important;
  }

  .aileen-login-title {
    font-size: 24px !important;
  }

  .aileen-login-subtitle {
    font-size: 13px !important;
  }

  .aileen-ms-block {
    margin: 14px 0 12px !important;
  }

  .aileen-ms-button {
    height: 52px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
  }

  .aileen-ms-divider {
    margin: 14px 0 10px !important;
  }

  .aileen-label {
    font-size: 11px !important;
    margin-bottom: 6px !important;
  }

  .aileen-password-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  .aileen-forgot-link,
  .aileen-forgot-link:visited {
    font-size: 13px !important;
  }

  #kc-registration a,
  #kc-registration a:visited {
    font-size: 13px !important;
  }

  .aileen-input,
  .aileen-input.form-control,
  #username,
  #password {
    height: 50px !important;
    font-size: 14px !important;
    padding-left: 40px !important;
  }

  .aileen-field-icon {
    left: 12px !important;
    font-size: 18px !important;
  }

  #kc-form-buttons {
    margin-top: 12px !important;
  }

  #kc-login,
  input[name="login"],
  input[type="submit"] {
    height: 50px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
  }

  .aileen-remember-wrap,
  #kc-registration,
  #kc-registration-container,
  .login-pf-signup,
  #kc-registration-wrapper {
    font-size: 14px !important;
  }
}

@media (max-width: 380px) {
  .login-pf-page {
    padding: 10px 8px !important;
  }

  .login-pf-page .card-pf,
  .card-pf {
    padding: 16px 12px 14px !important;
  }

  .aileen-login-title {
    font-size: 22px !important;
  }

  .aileen-login-subtitle {
    font-size: 12px !important;
  }

  .aileen-ms-button,
  #kc-login,
  input[name="login"],
  input[type="submit"] {
    height: 48px !important;
    font-size: 15px !important;
  }
}

/* -----------------------------------------------
   Match login button to "Open in Viewer" style
----------------------------------------------- */
#kc-form-buttons {
  text-align: center !important;
}

#kc-form-login #kc-login,
#kc-form-login input[name="login"],
#kc-form-login input[type="submit"] {
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 4px 12px !important;
  border: 1px solid #1CC9E9 !important;
  border-radius: 4px !important;
  background: #2a3f5f !important;
  color: #d5e3ff !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  transition: background-color 0.2s !important;
}

#kc-form-login #kc-login:hover,
#kc-form-login input[name="login"]:hover,
#kc-form-login input[type="submit"]:hover {
  background: #3a4f7f !important;
  border-color: #1CC9E9 !important;
}

/* -----------------------------------------------
   Match create-account submit to Continue style
----------------------------------------------- */
#kc-form-buttons .btn-primary,
#kc-form-buttons input[type="submit"],
#kc-form-buttons button[type="submit"],
#kc-form-buttons #kc-register {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 4px 12px !important;
  border: 1px solid #1CC9E9 !important;
  border-radius: 4px !important;
  background: #2a3f5f !important;
  color: #d5e3ff !important;
  text-decoration: none !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  transition: background-color 0.2s !important;
}

#kc-form-buttons .btn-primary:hover,
#kc-form-buttons input[type="submit"]:hover,
#kc-form-buttons button[type="submit"]:hover,
#kc-form-buttons #kc-register:hover {
  background: #3a4f7f !important;
  border-color: #1CC9E9 !important;
}

/* -----------------------------------------------
   Match page backdrop to loading-screen gradient
----------------------------------------------- */
body,
.login-pf body,
.login-pf-page {
  background: radial-gradient(circle at center, rgba(17, 34, 64, 0.94) 0%, rgba(0, 0, 0, 0.98) 70%) !important;
  background-color: #000000 !important;
}

/* -----------------------------------------------
   Match login heading to "Loading..." typography
----------------------------------------------- */
.aileen-login-title {
  color: #d5e3ff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  letter-spacing: 0.02em !important;
}

/* -----------------------------------------------
   Match sign-in card to loading-card appearance
----------------------------------------------- */
.login-pf-page .card-pf,
.card-pf {
  border: 1px solid rgba(28, 201, 233, 0.28) !important;
  border-radius: 14px !important;
  background: rgba(10, 20, 38, 0.18) !important;
  box-shadow: 0 0 0 1px rgba(213, 227, 255, 0.04) !important;
}

h6.aileen-login-title {
  color: #ffffff !important;
}

.aileen-login-logo {
  max-width: 80px !important;
  height: auto !important;
  margin-bottom: 16px !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* -----------------------------------------------
   Final override: error alert as dark pill
----------------------------------------------- */
#kc-content-wrapper .pf-v5-c-alert.pf-m-danger,
#kc-content-wrapper .pf-c-alert.pf-m-danger,
#kc-content-wrapper .alert.alert-error,
#kc-content-wrapper .alert-danger {
  background: rgba(23, 37, 61, 0.85) !important;
  border: 1px solid rgb(248, 113, 113) !important;
  border-radius: 999px !important;
  color: rgb(248, 113, 113) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  padding: 4px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#kc-content-wrapper .pf-v5-c-alert.pf-m-danger::before,
#kc-content-wrapper .pf-c-alert.pf-m-danger::before,
#kc-content-wrapper .alert.alert-error::before,
#kc-content-wrapper .alert-danger::before {
  content: none !important;
  display: none !important;
}

#kc-content-wrapper .pf-v5-c-alert.pf-m-danger .pf-v5-c-alert__title,
#kc-content-wrapper .pf-c-alert.pf-m-danger .pf-c-alert__title,
#kc-content-wrapper .pf-v5-c-alert.pf-m-danger .pf-v5-c-alert__description,
#kc-content-wrapper .pf-c-alert.pf-m-danger .pf-c-alert__description,
#kc-content-wrapper .pf-v5-c-alert.pf-m-danger .pf-v5-c-alert__icon,
#kc-content-wrapper .pf-c-alert.pf-m-danger .pf-c-alert__icon,
#kc-content-wrapper .alert.alert-error .kc-feedback-text,
#kc-content-wrapper .alert-danger .kc-feedback-text,
#kc-content-wrapper .alert.alert-error p,
#kc-content-wrapper .alert-danger p,
#kc-content-wrapper .alert.alert-error span,
#kc-content-wrapper .alert-danger span {
  color: rgb(248, 113, 113) !important;
  margin: 0 !important;
}

#kc-form-login .aileen-error-near-continue {
  margin-top: 8px !important;
  margin-bottom: 10px !important;
}

/* -----------------------------------------------
   Password reveal control: dark background (no white block)
----------------------------------------------- */
#kc-content-wrapper .pf-c-input-group .pf-c-button.pf-m-control,
#kc-content-wrapper .pf-v5-c-input-group .pf-v5-c-button.pf-m-control,
#kc-content-wrapper .pf-c-input-group .pf-c-button.pf-m-plain,
#kc-content-wrapper .pf-v5-c-input-group .pf-v5-c-button.pf-m-plain,
#kc-content-wrapper .kc-password-auth-status-container,
#kc-content-wrapper .kc-password-auth-status-container button,
#kc-content-wrapper .pf-c-input-group .kc-password-auth-status-container,
#kc-content-wrapper .pf-v5-c-input-group .kc-password-auth-status-container {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border-color: transparent !important;
  color: #d5e3ff !important;
  box-shadow: none !important;
}

#kc-content-wrapper .kc-password-auth-status-container button {
  border-left: 0 !important;
}

/* Input-group container border should also be transparent */
#kc-content-wrapper .pf-c-input-group,
#kc-content-wrapper .pf-v5-c-input-group,
#kc-content-wrapper .pf-c-input-group:focus-within,
#kc-content-wrapper .pf-v5-c-input-group:focus-within {
  --pf-c-input-group--BorderColor: transparent;
  --pf-c-input-group--m-focus--BorderColor: transparent;
  --pf-v5-c-input-group--BorderColor: transparent;
  --pf-v5-c-input-group--m-focus--BorderColor: transparent;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Seam between password input and eye toggle should be transparent */
#kc-content-wrapper .pf-c-input-group > input#password.pf-c-form-control,
#kc-content-wrapper .pf-v5-c-input-group > input#password.pf-v5-c-form-control {
  border-right-color: transparent !important;
}

#kc-content-wrapper .pf-c-input-group > .pf-c-button.pf-m-control,
#kc-content-wrapper .pf-v5-c-input-group > .pf-v5-c-button.pf-m-control,
#kc-content-wrapper .pf-c-input-group > .pf-c-button.pf-m-control:hover,
#kc-content-wrapper .pf-v5-c-input-group > .pf-v5-c-button.pf-m-control:hover,
#kc-content-wrapper .pf-c-input-group > .pf-c-button.pf-m-control:focus,
#kc-content-wrapper .pf-v5-c-input-group > .pf-v5-c-button.pf-m-control:focus,
#kc-content-wrapper .pf-c-input-group > .pf-c-button.pf-m-control:active,
#kc-content-wrapper .pf-v5-c-input-group > .pf-v5-c-button.pf-m-control:active {
  border-color: transparent !important;
  border-left-color: transparent !important;
}

/* Exact password toggle button (show/hide) should never show white border */
#kc-content-wrapper button.pf-c-button.pf-m-control[data-password-toggle],
#kc-content-wrapper button.pf-c-button.pf-m-control[data-password-toggle]:hover,
#kc-content-wrapper button.pf-c-button.pf-m-control[data-password-toggle]:focus,
#kc-content-wrapper button.pf-c-button.pf-m-control[data-password-toggle]:active,
#kc-content-wrapper button.pf-c-button.pf-m-control[data-password-toggle]:focus-visible,
#kc-content-wrapper button.pf-c-button.pf-m-control[data-password-toggle][aria-label="Hide password"],
#kc-content-wrapper button.pf-c-button.pf-m-control[data-password-toggle][aria-label="Show password"] {
  border-color: transparent !important;
  border-left-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* -----------------------------------------------
   Password input stays transparent even when revealed
----------------------------------------------- */
#kc-content-wrapper input#password,
#kc-content-wrapper input#password.pf-c-form-control,
#kc-content-wrapper input#password.pf-v5-c-form-control,
#kc-content-wrapper .pf-c-form-control#password,
#kc-content-wrapper .pf-v5-c-form-control#password {
  background: transparent !important;
  background-color: transparent !important;
  color: #e2e8f0 !important;
  border-color: #334155 !important;
}

#kc-content-wrapper input#password:focus,
#kc-content-wrapper input#password.pf-c-form-control:focus,
#kc-content-wrapper input#password.pf-v5-c-form-control:focus,
#kc-content-wrapper .pf-c-form-control#password:focus,
#kc-content-wrapper .pf-v5-c-form-control#password:focus {
  background: transparent !important;
  background-color: transparent !important;
  color: #e2e8f0 !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
}

/* Enforce transparency even when browser autofill/reveal styles kick in */
#kc-content-wrapper input#password[name="password"],
#kc-content-wrapper input#password[name="password"].pf-c-form-control,
#kc-content-wrapper input#password[name="password"].pf-v5-c-form-control,
#kc-content-wrapper input#password[name="password"]:hover,
#kc-content-wrapper input#password[name="password"]:active,
#kc-content-wrapper input#password[name="password"]:focus {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

#kc-content-wrapper input#password[name="password"]:-webkit-autofill,
#kc-content-wrapper input#password[name="password"]:-webkit-autofill:hover,
#kc-content-wrapper input#password[name="password"]:-webkit-autofill:focus,
#kc-content-wrapper input#password[name="password"]:-webkit-autofill:active {
  -webkit-text-fill-color: #e2e8f0 !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
  box-shadow: 0 0 0 1000px transparent inset !important;
  background-color: transparent !important;
  background: transparent !important;
}

/* Absolute final override for the exact Keycloak password input-group */
#kc-content-wrapper .pf-c-input-group:has(> input#password[name="password"]),
#kc-content-wrapper .pf-v5-c-input-group:has(> input#password[name="password"]) {
  background: transparent !important;
  background-color: transparent !important;
}

#kc-content-wrapper .pf-c-input-group > input#password[name="password"][type="password"],
#kc-content-wrapper .pf-c-input-group > input#password[name="password"][type="text"],
#kc-content-wrapper .pf-v5-c-input-group > input#password[name="password"][type="password"],
#kc-content-wrapper .pf-v5-c-input-group > input#password[name="password"][type="text"] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* All password inputs in input-groups (covers confirm password, new password, etc.) */
.pf-c-input-group > input[type="password"],
.pf-c-input-group > input[type="text"].pf-c-form-control,
.pf-v5-c-input-group > input[type="password"],
.pf-v5-c-input-group > input[type="text"].pf-v5-c-form-control {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
}

.pf-c-input-group,
.pf-v5-c-input-group {
  background: transparent !important;
  background-color: transparent !important;
}

.pf-c-input-group > button.pf-c-button.pf-m-control,
.pf-c-input-group > button.pf-c-button.pf-m-control:hover,
.pf-c-input-group > button.pf-c-button.pf-m-control:focus,
.pf-c-input-group > button.pf-c-button.pf-m-control:active,
.pf-v5-c-input-group > button.pf-v5-c-button.pf-m-control,
.pf-v5-c-input-group > button.pf-v5-c-button.pf-m-control:hover,
.pf-v5-c-input-group > button.pf-v5-c-button.pf-m-control:focus,
.pf-v5-c-input-group > button.pf-v5-c-button.pf-m-control:active {
  --pf-c-button--m-control--BackgroundColor: transparent;
  --pf-c-button--m-control--hover--BackgroundColor: transparent;
  --pf-c-button--m-control--focus--BackgroundColor: transparent;
  --pf-c-button--m-control--active--BackgroundColor: transparent;
  --pf-c-button--m-control--BorderColor: transparent;
  --pf-c-button--m-control--BorderTopColor: transparent;
  --pf-c-button--m-control--BorderRightColor: transparent;
  --pf-c-button--m-control--BorderBottomColor: transparent;
  --pf-c-button--m-control--BorderLeftColor: transparent;
  --pf-v5-c-button--m-control--BackgroundColor: transparent;
  --pf-v5-c-button--m-control--hover--BackgroundColor: transparent;
  --pf-v5-c-button--m-control--focus--BackgroundColor: transparent;
  --pf-v5-c-button--m-control--active--BackgroundColor: transparent;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border-color: transparent !important;
  border-top-color: transparent !important;
  border-right-color: transparent !important;
  border-bottom-color: transparent !important;
  border-left-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Username field: transparent background (same as password) */
#kc-content-wrapper input#username[name="username"],
#kc-content-wrapper input#username[name="username"]:focus,
#kc-content-wrapper input#username[name="username"]:-webkit-autofill,
#kc-content-wrapper .pf-c-input-group > input#username[name="username"],
#kc-content-wrapper .pf-v5-c-input-group > input#username[name="username"] {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
}

#kc-content-wrapper .pf-v5-c-input-group:has(> input#username[name="username"]) {
  background: transparent !important;
  background-color: transparent !important;
}

#kc-content-wrapper .pf-c-input-group > button.pf-c-button.pf-m-control[data-password-toggle],
#kc-content-wrapper .pf-c-input-group > button.pf-c-button.pf-m-control[data-password-toggle]:hover,
#kc-content-wrapper .pf-c-input-group > button.pf-c-button.pf-m-control[data-password-toggle]:focus,
#kc-content-wrapper .pf-c-input-group > button.pf-c-button.pf-m-control[data-password-toggle]:active,
#kc-content-wrapper .pf-c-input-group > button.pf-c-button.pf-m-control[data-password-toggle][aria-label="Show password"],
#kc-content-wrapper .pf-c-input-group > button.pf-c-button.pf-m-control[data-password-toggle][aria-label="Hide password"],
#kc-content-wrapper .pf-v5-c-input-group > button.pf-v5-c-button.pf-m-control[data-password-toggle],
#kc-content-wrapper .pf-v5-c-input-group > button.pf-v5-c-button.pf-m-control[data-password-toggle]:hover,
#kc-content-wrapper .pf-v5-c-input-group > button.pf-v5-c-button.pf-m-control[data-password-toggle]:focus,
#kc-content-wrapper .pf-v5-c-input-group > button.pf-v5-c-button.pf-m-control[data-password-toggle]:active {
  --pf-c-button--m-control--BackgroundColor: transparent;
  --pf-c-button--m-control--hover--BackgroundColor: transparent;
  --pf-c-button--m-control--focus--BackgroundColor: transparent;
  --pf-c-button--m-control--active--BackgroundColor: transparent;
  --pf-v5-c-button--m-control--BackgroundColor: transparent;
  --pf-v5-c-button--m-control--hover--BackgroundColor: transparent;
  --pf-v5-c-button--m-control--focus--BackgroundColor: transparent;
  --pf-v5-c-button--m-control--active--BackgroundColor: transparent;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Required fields text, asterisks, and Back link — cyan to match button border */
.pf-c-form__helper-text,
span.required,
.required,
[aria-label="required"] {
  color: #1CC9E9 !important;
}

/* "* Required fields" header text */
.pf-c-form > p,
.pf-c-form .pf-c-form__helper-text,
p.pf-c-form__helper-text,
span.subtitle,
.subtitle,
.required-fields {
  color: #1CC9E9 !important;
}

/* Asterisk on each field label */
.pf-c-form__label-required,
.pf-c-form__label .pf-c-form__label-required,
label .required,
label span[aria-hidden="true"] {
  color: #1CC9E9 !important;
}

/* "« Back to Login" link */
#kc-registration a,
#kc-registration-container a,
.pf-c-login__main-footer-band a,
a[href*="login"] {
  color: #1CC9E9 !important;
}

/* Force ALL pf-c-button pf-m-control borders and outlines away — nuclear override */
button.pf-c-button.pf-m-control,
button.pf-c-button.pf-m-control:hover,
button.pf-c-button.pf-m-control:focus,
button.pf-c-button.pf-m-control:active,
button.pf-c-button.pf-m-control:focus-visible,
button.pf-c-button.pf-m-control[data-password-toggle],
button.pf-c-button.pf-m-control[aria-controls] {
  --pf-c-button--m-control--BorderTopWidth: 0 !important;
  --pf-c-button--m-control--BorderRightWidth: 0 !important;
  --pf-c-button--m-control--BorderBottomWidth: 0 !important;
  --pf-c-button--m-control--BorderLeftWidth: 0 !important;
  --pf-c-button--m-control--BorderColor: transparent !important;
  --pf-c-button--m-control--Color: #d5e3ff;
  border: 0 solid transparent !important;
  border-width: 0 !important;
  border-color: transparent !important;
  border-top: 0 solid transparent !important;
  border-right: 0 solid transparent !important;
  border-bottom: 0 solid transparent !important;
  border-left: 0 solid transparent !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  /* Sit inside the input bubble */
  border-radius: 0 12px 12px 0 !important;
  align-self: stretch !important;
  padding: 0 12px !important;
}

/* PatternFly uses ::before/::after pseudo-elements or border-left for the seam */
button.pf-c-button.pf-m-control::before,
button.pf-c-button.pf-m-control::after {
  border: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Input-group: render as a single rounded pill containing the input + button */
.pf-c-input-group,
.pf-v5-c-input-group {
  display: flex !important;
  align-items: stretch !important;
  border-radius: 12px !important;
  border: 1px solid #475569 !important;
  overflow: hidden !important;
  background: #0f172a !important;
}

/* When inside an input-group, the input loses its own border and right radius */
.pf-c-input-group > input,
.pf-v5-c-input-group > input {
  border: none !important;
  border-radius: 12px 0 0 12px !important;
  flex: 1 !important;
  min-width: 0 !important;
  background: #0f172a !important;
  box-shadow: none !important;
  color: #e2e8f0 !important;
  height: 50px !important;
  padding: 0 14px !important;
  font-size: 14px !important;
}

.pf-c-input-group:focus-within,
.pf-v5-c-input-group:focus-within {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
}

/* Keep eye toggle INSIDE password bubbles (login + registration) */
.pf-c-input-group,
.pf-v5-c-input-group,
.kc-password-auth-status-container {
  position: relative !important;
}

button.pf-c-button.pf-m-control[data-password-toggle],
button.pf-v5-c-button.pf-m-control[data-password-toggle] {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 30px !important;
  height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 3 !important;
}

.pf-c-input-group > input[type="password"],
.pf-c-input-group > input[type="text"],
.pf-v5-c-input-group > input[type="password"],
.pf-v5-c-input-group > input[type="text"],
.kc-password-auth-status-container > input[type="password"],
.kc-password-auth-status-container > input[type="text"] {
  width: 100% !important;
  padding-right: 46px !important;
}

/* Final normalization: all input boxes match height/frame/background */
#kc-content-wrapper input[type="text"],
#kc-content-wrapper input[type="email"],
#kc-content-wrapper input[type="password"],
#kc-content-wrapper input.pf-c-form-control,
#kc-content-wrapper input.pf-v5-c-form-control,
#kc-content-wrapper input.form-control,
#kc-content-wrapper .aileen-input,
#kc-content-wrapper .aileen-input.form-control {
  height: 50px !important;
  min-height: 50px !important;
  border-radius: 12px !important;
  border: 1px solid #475569 !important;
  background: #0f172a !important;
  background-color: #0f172a !important;
  color: #e2e8f0 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

#kc-content-wrapper .pf-c-input-group,
#kc-content-wrapper .pf-v5-c-input-group,
#kc-content-wrapper .kc-password-auth-status-container {
  height: 50px !important;
  min-height: 50px !important;
  border-radius: 12px !important;
  border: 1px solid #475569 !important;
  background: #0f172a !important;
  background-color: #0f172a !important;
}

#kc-content-wrapper .pf-c-input-group > input,
#kc-content-wrapper .pf-v5-c-input-group > input,
#kc-content-wrapper .kc-password-auth-status-container > input {
  height: 100% !important;
  min-height: 100% !important;
  border: none !important;
  background: #0f172a !important;
  background-color: #0f172a !important;
}

/* Absolute final fill unification (global, including registration templates) */
:root {
  --aileen-input-fill: #0f172a;
  --aileen-input-border: #475569;
}

input.form-control,
input.pf-c-form-control,
input.pf-v5-c-form-control,
input[type="text"],
input[type="email"],
input[type="password"],
.aileen-input,
.aileen-input.form-control,
.pf-c-input-group,
.pf-v5-c-input-group,
.kc-password-auth-status-container,
.pf-c-input-group > input,
.pf-v5-c-input-group > input,
.kc-password-auth-status-container > input {
  background: var(--aileen-input-fill) !important;
  background-color: var(--aileen-input-fill) !important;
}

input.form-control,
input.pf-c-form-control,
input.pf-v5-c-form-control,
input[type="text"],
input[type="email"],
input[type="password"],
.aileen-input,
.aileen-input.form-control,
.pf-c-input-group,
.pf-v5-c-input-group,
.kc-password-auth-status-container {
  border-color: var(--aileen-input-border) !important;
}

/* Registration page absolute final override: identical fills for ALL fields */
#kc-register-form input[type="text"],
#kc-register-form input[type="email"],
#kc-register-form input[type="password"],
#kc-register-form input.form-control,
#kc-register-form input.pf-c-form-control,
#kc-register-form input.pf-v5-c-form-control,
#kc-register-form .pf-c-input-group,
#kc-register-form .pf-v5-c-input-group,
#kc-register-form .kc-password-auth-status-container,
#kc-register-form .pf-c-input-group > input,
#kc-register-form .pf-v5-c-input-group > input,
#kc-register-form .kc-password-auth-status-container > input {
  background: #0f172a !important;
  background-color: #0f172a !important;
  background-image: none !important;
  border-color: #475569 !important;
  opacity: 1 !important;
}

#kc-register-form input:-webkit-autofill,
#kc-register-form input:-webkit-autofill:hover,
#kc-register-form input:-webkit-autofill:focus,
#kc-register-form input:-webkit-autofill:active {
  -webkit-text-fill-color: #e2e8f0 !important;
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;
  background-color: #0f172a !important;
}

/* Registration text alignment: same inset and vertical centering for all fields */
#kc-register-form input[type="text"],
#kc-register-form input[type="email"],
#kc-register-form input[type="password"],
#kc-register-form input.form-control,
#kc-register-form input.pf-c-form-control,
#kc-register-form input.pf-v5-c-form-control {
  box-sizing: border-box !important;
  height: 50px !important;
  min-height: 50px !important;
  line-height: 50px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 18px !important;
  text-align: left !important;
  font-family: inherit !important;
}

#kc-register-form .pf-c-input-group > input,
#kc-register-form .pf-v5-c-input-group > input,
#kc-register-form .kc-password-auth-status-container > input {
  padding-left: 18px !important;
  padding-right: 52px !important;
}

/* Hide browser-native password icons/reveal controls (keep only custom eye toggle) */
#kc-register-form input[type="password"]::-ms-reveal,
#kc-register-form input[type="password"]::-ms-clear,
#kc-form-login input[type="password"]::-ms-reveal,
#kc-form-login input[type="password"]::-ms-clear {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

#kc-register-form input[type="password"]::-webkit-credentials-auto-fill-button,
#kc-register-form input[type="password"]::-webkit-contacts-auto-fill-button,
#kc-form-login input[type="password"]::-webkit-credentials-auto-fill-button,
#kc-form-login input[type="password"]::-webkit-contacts-auto-fill-button {
  visibility: hidden !important;
  display: none !important;
  pointer-events: none !important;
}

/* Keep password eye icon visible in all states (typing/focus/error) */
#kc-register-form button.pf-c-button.pf-m-control[data-password-toggle],
#kc-register-form button.pf-c-button.pf-m-control[data-password-toggle]:hover,
#kc-register-form button.pf-c-button.pf-m-control[data-password-toggle]:focus,
#kc-register-form button.pf-c-button.pf-m-control[data-password-toggle]:active,
#kc-register-form button.pf-c-button.pf-m-control[data-password-toggle]:focus-visible,
#kc-register-form button.pf-v5-c-button.pf-m-control[data-password-toggle],
#kc-register-form button.pf-v5-c-button.pf-m-control[data-password-toggle]:hover,
#kc-register-form button.pf-v5-c-button.pf-m-control[data-password-toggle]:focus,
#kc-register-form button.pf-v5-c-button.pf-m-control[data-password-toggle]:active,
#kc-register-form button.pf-v5-c-button.pf-m-control[data-password-toggle]:focus-visible {
  color: #d5e3ff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#kc-register-form button[data-password-toggle] i,
#kc-register-form button[data-password-toggle] .fa,
#kc-register-form button[data-password-toggle] .fa-eye,
#kc-register-form button[data-password-toggle] .fa-eye-slash,
#kc-register-form button[data-password-toggle] .fa::before,
#kc-register-form button[data-password-toggle] .fa-eye::before,
#kc-register-form button[data-password-toggle] .fa-eye-slash::before {
  color: #d5e3ff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Absolute final: all required '*' markers in cyan */
#kc-content-wrapper .pf-c-form__label-required,
#kc-content-wrapper .pf-v5-c-form__label-required,
#kc-content-wrapper label .required,
#kc-content-wrapper label span[aria-hidden="true"],
#kc-content-wrapper .required-fields .required,
#kc-content-wrapper .subtitle .required,
#kc-register-form .pf-c-form__label-required,
#kc-register-form .pf-v5-c-form__label-required,
#kc-register-form label .required,
#kc-register-form label span[aria-hidden="true"],
#kc-register-form .required-fields .required,
#kc-register-form .subtitle .required,
#kc-form-login .pf-c-form__label-required,
#kc-form-login .pf-v5-c-form__label-required,
#kc-form-login label .required,
#kc-form-login label span[aria-hidden="true"],
#kc-form-login .required-fields .required,
#kc-form-login .subtitle .required,
#kc-content-wrapper .pf-c-form__label-required::before,
#kc-content-wrapper .pf-v5-c-form__label-required::before,
#kc-register-form .pf-c-form__label-required::before,
#kc-register-form .pf-v5-c-form__label-required::before,
#kc-form-login .pf-c-form__label-required::before,
#kc-form-login .pf-v5-c-form__label-required::before {
  color: #1CC9E9 !important;
}

/* Fallbacks: PatternFly variable-driven required marker color */
#kc-register-form,
#kc-form-login,
#kc-content-wrapper,
.login-pf-page {
  --pf-c-form__label-required--Color: #1CC9E9 !important;
  --pf-v5-c-form__label-required--Color: #1CC9E9 !important;
}

/* Extra hard fallback for label-text generated stars */
#kc-register-form .pf-c-form__label-text + .pf-c-form__label-required,
#kc-register-form .pf-v5-c-form__label-text + .pf-v5-c-form__label-required,
#kc-register-form .pf-c-form__label-text::after,
#kc-register-form .pf-v5-c-form__label-text::after,
#kc-form-login .pf-c-form__label-text + .pf-c-form__label-required,
#kc-form-login .pf-v5-c-form__label-text + .pf-v5-c-form__label-required,
#kc-form-login .pf-c-form__label-text::after,
#kc-form-login .pf-v5-c-form__label-text::after {
  color: #1CC9E9 !important;
}

/* Final final: required stars next to field labels */
#kc-register-form .pf-c-form__label-required,
#kc-register-form .pf-v5-c-form__label-required,
#kc-register-form .pf-c-form__label .pf-c-form__label-required,
#kc-register-form .pf-v5-c-form__label .pf-v5-c-form__label-required,
#kc-form-login .pf-c-form__label-required,
#kc-form-login .pf-v5-c-form__label-required,
#kc-form-login .pf-c-form__label .pf-c-form__label-required,
#kc-form-login .pf-v5-c-form__label .pf-v5-c-form__label-required {
  color: #1CC9E9 !important;
  opacity: 1 !important;
  filter: none !important;
  --pf-c-form__label-required--Color: #1CC9E9 !important;
  --pf-c-form__label-required--Opacity: 1 !important;
  --pf-v5-c-form__label-required--Color: #1CC9E9 !important;
  --pf-v5-c-form__label-required--Opacity: 1 !important;
}

.aileen-required-star {
  color: #1CC9E9 !important;
  opacity: 1 !important;
  margin-left: 4px !important;
}
