/* Public access components. Important declarations bridge legacy auth rules. */
body.auth-page .auth-check {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  min-width: 0;
}
html[data-theme="light"] body.auth-page .auth-shell .auth-check input[type="checkbox"] {
  box-sizing: border-box;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  padding: 0;
  margin: 3px 0 0;
  appearance: auto;
  accent-color: var(--wmp-accent);
}
body.auth-page .auth-terms-check span {
  min-width: 0;
  overflow-wrap: break-word;
  line-height: 1.6;
}
body.auth-page .auth-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}
body.auth-page .auth-options a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
html[data-theme="light"] body.auth-page .auth-action-card :is(.auth-options a, .auth-link strong, .legal-inline-link) {
  color: var(--wmp-accent) !important;
}
body.auth-page :is(a, button, input):focus-visible {
  outline: 2px solid var(--wmp-accent) !important;
  outline-offset: 3px;
}
body.auth-page .legal-modal-shell[hidden] {
  display: none;
}
body.auth-page.auth-split-page.legal-modal-open {
  overflow: hidden !important;
}
body.auth-page .legal-modal-shell {
  padding: 16px;
}
body.auth-page .legal-modal-card {
  box-sizing: border-box;
  width: min(720px, 100%);
  min-width: 0;
  max-height: calc(100dvh - 32px);
  padding: 64px 24px 24px;
  overscroll-behavior: contain;
  overflow-wrap: break-word;
  background: var(--wmp-surface, #f6f4ef);
  color: var(--wmp-text, #1c2939);
}
body.auth-page .legal-modal-close {
  width: 44px;
  height: 44px;
  min-height: 44px;
}
html[data-theme="light"] body.auth-page .auth-hero-copy,
html[data-theme="light"] body.auth-page .auth-hero-copy :is(h1, p) {
  color: var(--wmp-text) !important;
  text-shadow: none;
}
html[data-theme="light"] body.auth-page .auth-hero-overlay {
  background: linear-gradient(90deg, rgba(246,244,239,.96), rgba(246,244,239,.86));
}
body.auth-page .auth-hero-copy h1 {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  body.auth-page .auth-hero-copy h1 {
    font-size: 2.25rem;
    line-height: 1.1;
    max-width: 100%;
  }
  body.auth-page .auth-hero-panel {
    width: 100%;
    padding: 24px;
  }
  body.auth-page .auth-action-panel {
    min-width: 0;
    padding-inline: 16px;
  }
  body.auth-page .auth-action-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 20px;
  }
  body.auth-page .auth-terms-check {
    padding: 12px;
  }
  body.auth-page .auth-card-brand,
  body.auth-page .auth-card-head {
    flex-wrap: wrap;
  }
  body.auth-page .auth-card-brand > div {
    min-width: 0;
  }
}

body.auth-page .auth-check-target {
  display: grid;
  place-items: start center;
  min-height: 44px;
  cursor: pointer;
}
