/* A field the browser refused: a red frame and a few words under it, in place of the browser's
   bubble (owner, 2026-11-04, D216; `form-messages.js`). It wins over any theme's or form's own
   border, focus included. A page without `variables.css` falls back to Bootstrap's red. */
.form-message-field,
.form-message-field:focus {
  border-color: var(--c-red, var(--bs-danger)) !important;
  box-shadow: 0 0 0 0.2rem rgba(var(--c-red-rgb, var(--bs-danger-rgb)), 0.25) !important;
}

/* The label that draws a hidden radio or tick box wears a frame on its own edge, one line whether
   or not it has a border of its own. */
label.form-message-field {
  outline: 2px solid var(--c-red, var(--bs-danger));
  outline-offset: -2px;
  box-shadow: none !important;
}

/* In a wrapping row the words take a line of their own. */
.form-message {
  flex: 0 0 100%;
  width: 100%;
  margin: 0.35rem 0 0;
  color: var(--c-red-ink, var(--bs-danger));
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

/* Blue's page is light under navy panels (the panels `variables.css` names for its links, and the
   sign-in card), and `--c-red-ink` is drawn for the panels. A public page with no theme is on white. */
:root:not([data-theme]) .form-message { color: var(--c-red, var(--bs-danger)); }
:root:not([data-theme]) :is(.modal-content, .detail-section-card, .list-panel, .page-header-card,
                            .company-list-card, .sd-dark, .login-card) .form-message,
:root[data-bs-theme="dark"] .form-message { color: var(--c-red-ink, var(--bs-danger)); }
