/* R3 slice 2/14 (05-auth.css) — extracted VERBATIM from styles.css lines 293-1437.
   body.auth-mode shell overrides, auth page/card/hero, fields, dropdowns, submit, demo chips, auth responsive.
   Link order in index.html is load-bearing: cascade tie-breaks depend on it. Do not reorder. */

body.auth-mode .shell {
  grid-template-columns: 1fr;
  padding: 0;
  gap: 0;
}

body.auth-mode .sidebar,
body.auth-mode .topbar,
body.auth-mode .page-header,
body.auth-mode .status-line {
  display: none;
}

body.auth-mode .main {
  padding: 0;
  max-width: none;
  overflow-y: auto;
}

/* Auth screen owns its own gutters via .auth-page; drop #view's content padding. */
body.auth-mode .view {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

/* ─── Auth Screen ─── */

@keyframes auth-float-glow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -18px) scale(1.08); }
}
@keyframes auth-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes auth-pop-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Page: full-bleed backdrop; the card fills the whole viewport edge-to-edge. */
.auth-page {
  min-height: 100vh;
  width: 100%;
  display: grid;
  place-items: stretch;
  padding: 0;
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(0, 162, 75, .10), transparent 60%),
    radial-gradient(800px 600px at 88% 92%, rgba(110, 98, 214, .08), transparent 60%),
    var(--main-bg);
  overflow: auto;
}

/* The shell pins #view to ~100vh and clips it (overflow:hidden) above 600px,
   so .auth-page must be its own scroller there — otherwise a tall single-column
   card in the 601-900px band (and any sub-~400px-tall window) is clipped with no
   way to reach the submit button. Below 600px the global document-scroll escape
   hatches take over, so this is gated to >=601px to avoid a nested scroller. */
@media (min-width: 601px) {
  body.auth-mode .auth-page {
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
  }
}

.auth-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--surface);
  border: none;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  height: 100vh;
  animation: auth-fade-in .6s ease both;
}

/* ─── Hero (left panel) ─── */
.auth-hero {
  position: relative;
  background: linear-gradient(165deg, var(--hero-1, #16201A), var(--hero-2, #0B120E));
  color: #EDEAE1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.auth-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-hero-orb-1 {
  width: 340px;
  height: 340px;
  top: -90px;
  right: -80px;
  background: radial-gradient(circle, rgba(0, 162, 75, .30), transparent 70%);
  filter: blur(8px);
  animation: auth-float-glow 11s ease-in-out infinite;
}
.auth-hero-orb-2 {
  width: 260px;
  height: 260px;
  bottom: 60px;
  left: -90px;
  background: radial-gradient(circle, rgba(110, 98, 214, .18), transparent 70%);
  filter: blur(6px);
  animation: auth-float-glow 14s ease-in-out infinite reverse;
}

.auth-hero-photo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46%;
  object-fit: cover;
  opacity: .16;
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
  pointer-events: none;
}

.auth-hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  /* Extra bottom padding lifts the bottom-anchored copy/metrics/trust block
     up by ~7cm on desktop (overridden at <=900px). */
  padding: 46px 46px 305px;
  width: 100%;
  min-height: 0;
}

.auth-hero-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.auth-hero-logo-chip {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  flex-shrink: 0;
}
.auth-hero-logo-chip img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.auth-hero-brand .logo-text {
  font-family: var(--font-display-new);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1.15;
}

.auth-hero-brand .logo-sub {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #9BA79D;
  margin-top: 2px;
}

.auth-hero-copy {
  margin-top: auto;
  padding-top: 38px;
}

.auth-hero-eyebrow {
  font-family: var(--font-display-new);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #3FD489;
  animation: auth-fade-up .6s ease both .1s;
}

.auth-hero-copy h1 {
  font-family: var(--font-display-new);
  font-weight: 900;
  font-size: 44px;
  line-height: 1.04;
  letter-spacing: -.03em;
  color: #fff;
  margin-top: 14px;
  animation: auth-fade-up .6s ease both .16s;
}

.auth-hero-copy p {
  font-size: 15.5px;
  line-height: 1.6;
  color: #B8C0B6;
  margin-top: 16px;
  max-width: 42ch;
  animation: auth-fade-up .6s ease both .22s;
}

/* ─── Hero metrics: live readout strip (not stacked glass boxes) ─── */
.auth-hero-metrics {
  margin-top: 30px;
  max-width: 720px;
  animation: auth-fade-up .6s ease both .3s;
}

.auth-hero-metrics-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono, "Geist Mono", monospace);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A968B;
  margin-bottom: 12px;
}

.auth-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3FD489;
  box-shadow: 0 0 8px #3FD489;
  flex-shrink: 0;
}

.auth-hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

/* Each metric is a cell in the readout, separated by a hairline — no box. */
.auth-hero-stat {
  padding: 0 20px;
  background: none;
  border: none;
  border-left: 1px solid rgba(255, 255, 255, .12);
  border-radius: 0;
}
.auth-hero-stat:first-child {
  border-left: none;
  padding-left: 0;
}

.auth-hero-stat strong {
  display: block;
  font-family: var(--font-display-new);
  font-weight: 900;
  font-size: 34px;
  color: #fff;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1.02;
}

.auth-hero-stat span {
  display: block;
  font-family: var(--mono, "Geist Mono", monospace);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8A968B;
  margin-top: 9px;
}

/* ─── Trust pills ─── */
.auth-hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  animation: auth-fade-up .6s ease both .38s;
}

.auth-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .08);
  font-size: 12.5px;
  font-weight: 600;
  color: #C6CDC4;
}

.auth-trust-item svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #3FD489;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ─── Form panel (right) ─── */
.auth-form-panel {
  position: relative;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.auth-home-btn {
  position: absolute;
  top: 24px;
  right: 28px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-display-new);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: background .2s, color .2s;
  box-shadow: 0 2px 8px -4px rgba(22, 32, 26, .2);
}
.auth-home-btn:hover {
  background: var(--chip);
  color: var(--ink);
}
.auth-home-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-form-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 42px 46px;
}

/* Honour reduced-motion: kill the orb drift, reveal staggers, and sheen sweep. */
@media (prefers-reduced-motion: reduce) {
  .auth-card,
  .auth-hero-orb,
  .auth-hero-eyebrow,
  .auth-hero-copy h1,
  .auth-hero-copy p,
  .auth-hero-metrics,
  .auth-hero-trust,
  .auth-form-inner,
  .auth-submit-sheen {
    animation: none !important;
  }
  .auth-submit-btn,
  .auth-submit-text,
  .auth-submit-arrow {
    transition: none !important;
  }
}

.auth-form-inner {
  width: 100%;
  max-width: 430px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: auth-fade-up .5s ease both;
}

.auth-form-header h2 {
  font-family: var(--font-display-new);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}

.auth-form-header p {
  margin-top: 7px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* ─── Account-type chips (drive the hidden #signup-role select) ─── */
.auth-role-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.auth-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-role-chip {
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display-new);
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  transition: background .22s, border-color .22s, color .22s, box-shadow .22s;
}
.auth-role-chip:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}
.auth-role-chip.is-active {
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  color: var(--accent-ink);
}

/* ─── NIN identity verification card ─── */
.auth-nin-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface-2);
}

/* ─── Auth form fields ─── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: .01em;
}

.auth-label-tag {
  font-size: 10px;
  font-weight: 500;
  margin-left: 4px;
  text-transform: lowercase;
}

.auth-label-tag.required-tag {
  color: var(--ink-mid);
  opacity: 0.5;
}

.auth-label-tag.optional-tag {
  color: var(--green);
  opacity: 0.8;
}

.auth-input {
  height: 48px;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  background: var(--hover-bg);
  color: var(--ink);
  padding: 0 16px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.auth-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 162, 99, .1);
}

.auth-input::placeholder {
  color: var(--muted);
  /* No opacity reduction: .7 composited --muted below AA (~2.3:1). Full --muted
     keeps placeholders readable while still lighter than typed --ink text. */
  opacity: 1;
}

/* Password reveal toggle: input + eye button share a relative wrapper. */
.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-wrap .auth-input {
  width: 100%;
}

.auth-input.has-toggle {
  padding-right: 48px;
}

.password-toggle-btn {
  position: absolute;
  right: 6px;
  height: 36px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  border-radius: 8px;
  transition: background .2s, color .2s;
}

.password-toggle-btn:hover {
  color: var(--ink);
  background: var(--hover-bg);
}

.password-toggle-btn:focus-visible {
  outline: none;
  background: var(--hover-bg);
  color: var(--green);
  box-shadow: 0 0 0 2px rgba(0, 162, 99, .2);
}

.password-toggle-btn .pw-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2px;
}

/* Hidden password shows the eye ("reveal"); revealed shows eye-off ("hide"). */
.password-toggle-btn .pw-eye-off {
  display: none;
}

.password-toggle-btn.is-revealed .pw-eye {
  display: none;
}

.password-toggle-btn.is-revealed .pw-eye-off {
  display: block;
}

select.auth-input {
  cursor: pointer;
  background: var(--card-end);
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%235c6d60" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

body.dark select.auth-input {
  background-color: #17251d;
  color: rgba(247, 255, 250, .9);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" stroke="%23e5e9e2" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24"><path d="m6 9 6 6 6-6"/></svg>');
}

/* ─── Custom pop-over dropdowns (State / LGA / Security question) ───
   enhanceSelectAsDropdown() builds these around the native <select>, which it
   keeps in the form as the source of truth (hidden via .auth-dd-native). */
.auth-dd {
  position: relative;
}

.auth-dd-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.auth-dd-trigger {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  background: var(--hover-bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}

.auth-dd-trigger:hover {
  border-color: var(--border-strong);
}

.auth-dd.open .auth-dd-trigger {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 162, 99, .1);
}

.auth-dd-value {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-dd-value.is-placeholder {
  color: var(--muted);
  opacity: .8;
}

.auth-dd-caret {
  display: flex;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.auth-dd-caret svg {
  width: 16px;
  height: 16px;
}

.auth-dd.open .auth-dd-caret {
  transform: rotate(180deg);
}

.auth-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 22px 48px -16px rgba(22, 32, 26, .45);
}

body.dark .auth-dd-menu {
  box-shadow: 0 22px 48px -16px rgba(0, 0, 0, .6);
}

.auth-dd.open {
  z-index: 40;
}

.auth-dd.open .auth-dd-menu {
  display: flex;
  animation: auth-dd-pop .22s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes auth-dd-pop {
  from { opacity: 0; transform: translateY(-6px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.auth-dd-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}

.auth-dd-option:hover {
  background: var(--chip);
}

.auth-dd-option.is-selected {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.auth-dd-option-label {
  flex: 1;
  text-align: left;
}

.auth-dd-check {
  display: none;
  flex-shrink: 0;
  color: var(--accent-ink);
}

.auth-dd-check svg {
  width: 14px;
  height: 14px;
}

.auth-dd-option.is-selected .auth-dd-check {
  display: flex;
}

.auth-help {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-help svg {
  flex-shrink: 0;
  color: var(--green);
}

/* ─── Auth error ─── */
.auth-error {
  min-height: 18px;
  color: #b84432;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* #b84432 is tuned for the light surface (5.14:1); on the dark form panel
   (#141E18) it drops to 3.18:1, so flip to the dark danger red (6.13:1). */
body.dark .auth-error {
  color: #FF6B61;
}

.auth-error:empty {
  display: none;
}

/* Invalid field highlight — used by the on-submit validation that replaced the
   disabled-until-valid button. Danger border + soft glow, overriding focus so it
   stays visible while the user is typing in the field they need to fix. */
.auth-input.is-invalid,
.auth-input.is-invalid:focus,
.field.is-invalid,
.field.is-invalid:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}

.field-error-msg {
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-top: 6px;
}

/* ─── Submit button ─── */
.auth-submit-btn {
  position: relative;
  overflow: hidden;
  height: 50px;
  margin-top: 6px;
  border: none;
  border-radius: 13px;
  /* Deepened from the #00A24B/#0cbf63 brand gradient: white text on the bright
     green only reached ~3.2:1. These emerald stops all clear AA 4.5:1 with the
     #FBFAF6 label (4.59-6.12:1) while keeping the animated sweep + sheen. */
  background: linear-gradient(120deg, #018442, #017d3f, #016e37);
  background-size: 200% 100%;
  background-position: 0% 50%;
  color: #FBFAF6;
  font-family: var(--font-display-new);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 34px -14px rgba(0, 162, 75, .6);
  transition: background-position .6s ease, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}

.auth-submit-btn:hover:not(:disabled) {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 22px 46px -14px rgba(0, 162, 75, .7);
}

.auth-submit-btn:active:not(:disabled) {
  transform: translateY(0) scale(.985);
}

.auth-submit-btn:disabled {
  opacity: .92;
  cursor: not-allowed;
}

/* Only show the busy cursor while the form is genuinely submitting, not while
   the button is just gated (e.g. disabled until NIN is verified on signup). */
.auth-submit-btn.is-loading {
  cursor: wait;
}

/* Sheen sweep on hover */
.auth-submit-sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 42%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg) translateX(0);
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
  pointer-events: none;
}
.auth-submit-btn:hover:not(:disabled) .auth-submit-sheen {
  transform: skewX(-18deg) translateX(460%);
}
.auth-submit-btn:disabled .auth-submit-sheen {
  opacity: 0;
}

.auth-submit-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.auth-submit-text {
  transition: transform .42s cubic-bezier(.2, .7, .2, 1);
}
.auth-submit-btn:hover:not(:disabled) .auth-submit-text {
  transform: translateX(2px);
}

.auth-submit-btn.is-loading .icon-arrow {
  display: none;
}

.auth-submit-btn.is-loading .icon-spinner {
  display: block;
  animation: auth-spin .7s linear infinite;
}

@keyframes auth-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.auth-submit-arrow {
  display: flex;
  align-items: center;
  transition: transform .42s cubic-bezier(.34, 1.56, .64, 1);
}
.auth-submit-btn:hover:not(:disabled) .auth-submit-arrow {
  transform: translateX(7px);
}

.auth-submit-arrow .icon-spinner {
  display: none;
}

.auth-submit-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Auth footer / toggle ─── */
.auth-footer {
  text-align: center;
}

.auth-toggle-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  padding: 6px 2px;
}

.auth-toggle-btn strong {
  color: var(--green);
  font-weight: 600;
}

.auth-toggle-btn:hover strong {
  text-decoration: underline;
}

/* ─── Demo account chips ─── */
.auth-demo-section {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
}

.auth-demo-label {
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 12px;
}

.auth-demo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--hover-bg);
  color: var(--ink-mid);
  font-size: 12.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .2s, background .15s, color .15s, box-shadow .2s;
}

.auth-demo-chip:hover:not(:disabled) {
  border-color: rgba(0, 162, 99, .3);
  color: var(--ink);
  background: rgba(0, 162, 99, .04);
}

.auth-demo-chip.active {
  border-color: var(--green);
  background: rgba(0, 162, 99, .08);
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(0, 162, 99, .12);
}

.auth-demo-chip:disabled {
  opacity: .4;
  cursor: default;
}

.auth-demo-chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  opacity: .5;
  flex-shrink: 0;
}

.auth-demo-chip.active .auth-demo-chip-dot {
  opacity: 1;
  animation: pulse 1.6s infinite;
}

/* Shared soft pulse — used by the auth demo-chip dot above and the
   wallet-notice pulse-dot (inline `animation: pulse 1.8s infinite` in app.js). */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(1.18); }
}

/* ─── Dark mode: hero is intrinsically dark; surfaces adapt via tokens. ─── */
body.dark .auth-card {
  border-color: transparent;
  box-shadow: none;
}

/* ─── Responsive: auth page ─── */
@media (max-width: 900px) {
  .auth-page {
    padding: 0;
    place-items: stretch;
  }

  .auth-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: auto;
    min-height: 100vh;
  }

  .auth-hero {
    min-height: 300px;
  }

  .auth-hero-inner {
    padding: 36px 30px;
  }

  .auth-hero-copy {
    padding-top: 26px;
  }

  .auth-hero-copy h1 {
    font-size: 30px;
  }

  .auth-form-scroll {
    overflow: visible;
    padding: 64px 30px 40px;
  }
}

@media (max-width: 600px) {
  .auth-card {
    border-radius: 0;
  }

  .auth-hero {
    min-height: 0;
  }

  .auth-hero-inner {
    padding: 28px 22px;
  }

  .auth-hero-copy {
    padding-top: 22px;
  }

  .auth-hero-copy h1 {
    font-size: 25px;
  }

  .auth-hero-copy p {
    font-size: 13.5px;
  }

  .auth-hero-photo {
    display: none;
  }

  /* Readout strip is too tight 4-up on phones — fold to a 2x2 of hairline
     cells (vertical divider on the right column, top rule on the lower row). */
  .auth-hero-metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .auth-hero-stat {
    padding: 14px 0 0 16px;
  }
  .auth-hero-stat:nth-child(odd) {
    border-left: none;
    padding-left: 0;
  }
  .auth-hero-stat:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, .10);
    margin-top: 14px;
  }

  .auth-form-scroll {
    padding: 54px 22px 36px;
  }

  .auth-form-inner {
    gap: 22px;
  }

  .auth-form-header h2 {
    font-size: 24px;
  }

  .auth-demo-grid {
    gap: 6px;
  }

  .auth-demo-chip {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }
}

