/* Opaque surfaces keep auth copy readable over every background frame. */
body .grounded-page.auth-page .auth-shell .auth-copy,
body .grounded-page.auth-page .auth-shell .auth-card {
  background: #fffdf7 !important;
  color: #24372b;
  border: 1px solid #c9d1c3;
  border-radius: 24px;
  padding: clamp(20px, 3vw, 36px);
  text-shadow: none;
  backdrop-filter: none !important;
}
body .auth-page .auth-copy::before,
body .auth-page .auth-card::before { display: none; }
body .auth-page .auth-shell :is(h1,h2,h3,.lede,.muted,.helptext,label,.hero-brand-line,.eyebrow) {
  color: #24372b !important; text-shadow: none !important; opacity: 1;
}
body .auth-page .auth-shell :is(.form-errors,.errorlist,.field-errors,.message.error) {
  color: #84291e; background: #fff2ee; text-shadow: none;
}
body .auth-page .auth-shell :is(.form-errors,.errorlist,.field-errors) a { color: #84291e; }
body .auth-page input { color: #24372b; background: #fff; }
body .auth-page input::placeholder { color: #59655d; opacity: 1; }
.password-visibility-wrap { position: relative; display: block; width: 100%; }
body .password-visibility-wrap input { width: 100%; padding-right: 56px; box-sizing: border-box; }
body button.password-visibility-toggle {
  position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-height: 44px; padding: 10px;
  border: 0; border-radius: 8px; background: #fffdf7; color: #24372b;
  box-shadow: none; cursor: pointer;
}
body button.password-visibility-toggle:hover { background: #e7eee3; transform: translateY(-50%); }
body button.password-visibility-toggle:focus-visible { outline: 3px solid #386043; outline-offset: 1px; }
.password-visibility-toggle svg { width: 24px; height: 24px; }
.password-visibility-toggle .eye-slash { display: none; }
.password-visibility-toggle[aria-pressed="true"] .eye-slash { display: block; }
