/* NorthKind Sound unified button system
   Load this file AFTER every other stylesheet. */

:root {
  --nks-btn-text: #ffffff;
  --nks-btn-surface: #202334;
  --nks-btn-surface-hover: #303449;
  --nks-btn-border: rgba(255,255,255,.62);
  --nks-btn-focus: #00e5ff;
  --nks-btn-danger: #a51f3d;
  --nks-btn-danger-hover: #c92b50;
}

html body :is(.btn, .button, .welcome-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid var(--nks-btn-border) !important;
  border-radius: 999px;
  color: var(--nks-btn-text) !important;
  background: var(--nks-btn-surface) !important;
  box-shadow: none;
  font: inherit;
  font-weight: 900 !important;
  letter-spacing: .055em !important;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,.85) !important;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}

html body :is(.btn, .button, .welcome-button):hover {
  color: #ffffff !important;
  background: var(--nks-btn-surface-hover) !important;
  border-color: #ffffff !important;
  transform: translateY(-1px);
}

html body :is(.btn, .button, .welcome-button):focus-visible {
  outline: 3px solid var(--nks-btn-focus);
  outline-offset: 3px;
}

html body :is(.btn-primary, .button.primary, .welcome-button.primary) {
  color: #ffffff !important;
  background: linear-gradient(135deg,#ff6a3d,#ee26ba 52%,#00bddd) !important;
  border-color: rgba(255,255,255,.78) !important;
  box-shadow: 0 0 24px rgba(255,43,189,.28) !important;
}

html body :is(.btn-primary, .button.primary, .welcome-button.primary):hover {
  color: #ffffff !important;
  background: linear-gradient(135deg,#ff805e,#ff42c8 52%,#22d8f2) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 30px rgba(255,43,189,.42) !important;
}

html body :is(.btn-outline, .button:not(.primary):not(.danger), .welcome-button.secondary) {
  color: #ffffff !important;
  background: var(--nks-btn-surface) !important;
  border-color: var(--nks-btn-border) !important;
}

html body :is(.btn-danger, .button.danger) {
  color: #ffffff !important;
  background: var(--nks-btn-danger) !important;
  border-color: #ff7896 !important;
}

html body :is(.btn-danger, .button.danger):hover {
  color: #ffffff !important;
  background: var(--nks-btn-danger-hover) !important;
}

html body :is(.btn-small, .button.small) {
  min-height: 34px;
  margin-top: 0;
  padding: 8px 13px;
  font-size: .78rem;
}

html body :is(.btn-large, .button.large) {
  min-height: 54px;
  padding: 15px 30px;
  font-size: 1.05rem;
}

html body :is(.btn, .button, .welcome-button):disabled,
html body :is(.btn, .button, .welcome-button)[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none !important;
}

/* Keep interactive controls above decorative card overlays throughout the site. */
html body :is(a.btn, button.btn, input.btn, .button, .welcome-button) {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* These are intentionally text links, not pill buttons. */
.message-actions :is(a, button),
.replay-button {
  color: #ffffff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  text-transform: none;
}

/* Accessible password visibility control used by all authentication forms. */
.nks-password-field {
  position: relative;
  display: block;
  width: 100%;
}

.nks-password-field > input[type="password"],
.nks-password-field > input[data-nks-password] {
  width: 100%;
  padding-right: 52px !important;
}

.nks-password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 10px;
  display: inline-grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  color: rgba(255,255,255,.78);
  background: transparent;
  border: 0;
  border-radius: 50%;
  opacity: .82;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.9));
  cursor: pointer;
  transform: translateY(-50%);
}

.nks-password-toggle:hover {
  color: #ffffff;
  background: rgba(255,255,255,.09);
  opacity: 1;
}

.nks-password-toggle:focus-visible {
  outline: 3px solid var(--nks-btn-focus, #00e5ff);
  outline-offset: 2px;
}

.nks-password-toggle svg {
  display: block;
  width: 23px;
  height: 23px;
  pointer-events: none;
}
