/* Qom Hockey 4.27.3 — contrast-only patch for membership registration and login.
   Loaded after federation-v427. Dark theme only; never touches light theme or layout.
   No JavaScript, server settings or data migrations. */

/* Public registration surfaces: pair every dark surface with legible text. */
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-intro-panel .mh-eyebrow {
  color:#90dcae!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-intro-panel h1 {
  color:#f4f8f5!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-intro-panel p {
  color:#c5d5cb!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-intro-panel .mh-privacy-note {
  color:#b9ccc0!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-role-chips span {
  background:#28342d!important;
  color:#e9f3ec!important;
  border-color:#4b6856!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card {
  background:#202425!important;
  color:#f0f5f1!important;
  border-color:#455249!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card h2 {
  color:#f4f8f5!important;
}
/* The original member-v420 stylesheet had hardcoded navy labels (#1a3152):
   these were virtually invisible against the dark card. */
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card .mh-fields label {
  color:#e0eae3!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card .mh-fields :is(small,.qh23-username-feedback) {
  color:#b9d4c1!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card .mh-fields :is(input,select,textarea) {
  background:#2a302e!important;
  color:#f5f8f6!important;
  border-color:#5c7062!important;
  caret-color:#c5f2d5;
  color-scheme:dark;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card .mh-fields :is(input,select,textarea)::placeholder {
  color:#adbeb2!important;
  opacity:1;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card .mh-fields :is(input,select,textarea):focus {
  background:#303a34!important;
  border-color:#91d7ad!important;
  box-shadow:0 0 0 3px rgba(135,205,160,.22)!important;
}
/* Consent is the most important readable action. Its native checkbox remains interactive. */
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card label.qh22-consent {
  background:#283b32!important;
  border-color:#527862!important;
  color:#e7f4ea!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card label.qh22-consent:has(input:checked) {
  background:#254c38!important;
  border-color:#78c697!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card label.qh22-consent input[type="checkbox"] {
  accent-color:#77ce99!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card .mh-auth-link {
  color:#bacdc2!important;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card .mh-auth-link a {
  color:#a9e8c3!important;
  text-underline-offset:3px;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card .mh-auth-link a:is(:hover,:focus-visible) {
  color:#e5fff0!important;
  text-decoration:underline;
}
html[data-theme="dark"] body.public-site .mh-auth-wrap .mh-form-card .mh-alert {
  background:#452b2b!important;
  color:#ffd6d6!important;
  border-color:#8e5858!important;
}
/* Login uses the same readable contrast as registration. */
html[data-theme="dark"] body.public-site .login-section .login-card :is(h1,.login-brand h1) {
  color:#f4f8f5!important;
}
html[data-theme="dark"] body.public-site .login-section .login-card :is(.field label,.login-brand p,.mh-auth-link) {
  color:#c9d9ce!important;
}
html[data-theme="dark"] body.public-site .login-section .login-card .mh-auth-link a {
  color:#a9e8c3!important;
}
html[data-theme="dark"] body.public-site .login-section .login-card .mh-auth-link a:is(:hover,:focus-visible) {
  color:#e5fff0!important;
  text-decoration:underline;
}
html[data-theme="dark"] body.public-site .login-section .login-card .field input {
  background:#2a302e!important;
  color:#f5f8f6!important;
  border-color:#5c7062!important;
}
html[data-theme="dark"] body.public-site .login-section .login-card .field input:focus {
  border-color:#91d7ad!important;
  box-shadow:0 0 0 3px rgba(135,205,160,.22)!important;
}
