/* [FIX 2026-08-22] Inputs/buttons are width:100% AND carry their own padding, while the
   card has width:360px + 26px side padding. Without border-box the fields render wider
   than the card and clip off the right edge. Scoped to the kit's own elements. */
.qa-card, .qa-card *, .qa-card *::before, .qa-card *::after { box-sizing: border-box; }

/* Wolf Pak Quis Auth Kit — styles. Override the --qa-* vars to rebrand per app. */
.qa-wrap {
  --qa-bg: #0d0b1a; --qa-card: #141026; --qa-input: #0d0a1e; --qa-line: rgba(255,255,255,.12);
  --qa-text: #e8e8f0; --qa-text2: #9a9ab0; --qa-accent: #8b5cf6; --qa-error: #ff6b81; --qa-ok: #34d399;
  display: flex; align-items: center; justify-content: center; min-height: 100%;
  font-family: 'Segoe UI', -apple-system, system-ui, sans-serif; color: var(--qa-text);
}
.qa-card {
  width: 360px; max-width: 92vw; background: var(--qa-card); border: 1px solid var(--qa-line);
  border-radius: 18px; padding: 30px 26px; text-align: center;
}
.qa-brand { font-size: 25px; font-weight: 800; letter-spacing: -.01em; }
.qa-mark { margin-right: 6px; }
.qa-name b { color: var(--qa-accent); }
.qa-sub { color: var(--qa-text2); font-size: 13px; margin: 4px 0 20px; }
.qa-form { display: flex; flex-direction: column; gap: 10px; }
.qa-input {
  background: var(--qa-input); border: 1px solid var(--qa-line); border-radius: 10px;
  padding: 12px 14px; color: var(--qa-text); font-size: 14px; outline: none; width: 100%;
}
.qa-input:focus { border-color: var(--qa-accent); }
.qa-show { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--qa-text2); cursor: pointer; margin: 2px 0 2px; }
.qa-show input { accent-color: var(--qa-accent); }
.qa-btn {
  background: var(--qa-accent); color: #fff; border: none; border-radius: 10px;
  padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; width: 100%;
}
.qa-btn:disabled { opacity: .6; cursor: default; }
.qa-passkey { background: transparent; color: var(--qa-accent); border: 1px solid var(--qa-accent); margin-top: 12px; }
.qa-error { color: var(--qa-error); font-size: 12.5px; min-height: 16px; margin-top: 12px; }
.qa-msg { color: var(--qa-ok); font-size: 12.5px; min-height: 16px; }
.qa-links { display: flex; justify-content: space-between; gap: 8px; margin-top: 16px; }
/* [FIX 2026-08-25] These read as inert text with no border/background, unlike
   every other clickable element on the card (qa-btn, qa-passkey) -- users
   couldn't tell they were buttons at all. Give them the same button
   affordance, just a lighter visual weight since they're tertiary actions. */
.qa-links a {
  flex: 1; color: var(--qa-text2); font-size: 12px; text-decoration: none;
  border: 1px solid var(--qa-line); border-radius: 8px; padding: 8px 6px;
  text-align: center; line-height: 1.3;
}
.qa-links a:hover { color: var(--qa-accent); border-color: var(--qa-accent); }
.qa-foot { color: var(--qa-text2); font-size: 11px; margin-top: 18px; opacity: .7; }

/* authenticator setup */
.qa-qr { background:#fff; padding:12px; border-radius:12px; width:max-content; margin:14px auto 6px; }
.qa-qr svg { display:block; width:200px; height:200px; }
.qa-hint { color: var(--qa-muted, #8aa0c0); font-size:12.5px; line-height:1.5; text-align:center; margin:6px 0; }
.qa-hint code { color: var(--qa-accent, #8b5cf6); font-size:12px; word-break:break-all; }

/* field titles above inputs (added 2026-08-23) */
.qa-field { margin-bottom: 12px; }
.qa-field .qa-label { font-size: 13px; font-weight: 600; color: var(--qa-text2, #9a9ab0); margin-bottom: 5px; }
.qa-field .qa-input { margin: 0; width: 100%; box-sizing: border-box; }
