/* OnlyShows v54: mobile wallpaper harmony, legible auth, and compact feedback. */

.login-form input[type="password"] {
  background: color-mix(in srgb, var(--surface-container-lowest) 94%, white);
  color: var(--on-surface);
  caret-color: var(--primary);
  font-size: 19px;
  font-weight: 750;
  letter-spacing: .08em;
}

.toast {
  z-index: 10000;
  width: max-content;
  min-width: 240px;
  max-width: min(460px, calc(100vw - 40px));
  padding: 15px 20px;
  border: 1px solid color-mix(in srgb, white 16%, transparent);
  border-radius: 18px;
  background: #202326;
  color: #fff;
  box-shadow: 0 14px 42px rgb(0 0 0 / 28%);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
  white-space: normal;
}

html[data-mode="dark"] .progress-track,
html[data-background="night-blue"] .progress-track,
html[data-background="prism-violet"] .progress-track {
  background: color-mix(in srgb, white 20%, transparent) !important;
}

html[data-mode="dark"] .progress-fill,
html[data-background="night-blue"] .progress-fill,
html[data-background="prism-violet"] .progress-fill {
  background: color-mix(in srgb, var(--primary) 66%, white) !important;
  box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 55%, transparent);
}

@media (max-width: 719px) {
  html[data-background="prism-mono"] body > .theme-backdrop {
    background-position: 22% center !important;
  }

  html[data-background="prism-mono"] :is(
    .show-card,
    .show-card .card-content,
    .stat-card,
    .profile-stat,
    .profile-record-card
  ) {
    background-color: rgb(218 226 233 / 90%) !important;
    border-color: rgb(91 105 117 / 28%) !important;
  }

  html[data-background="prism-mono"] .show-card {
    box-shadow: 0 8px 24px rgb(48 62 74 / 12%) !important;
  }

  .toast {
    min-width: 0;
    max-width: calc(100vw - 32px);
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 13px;
  }
}
