/* ─────────────────────────────────────────────────────────────────────────────
   Noctua — shared auth card (source of truth for the login/paywall look)
   Used by: /inspection (paywall gate), /admin, /admin/edit.

   Each page only needs to:
   1. <link rel="stylesheet" href="/auth-card.css">
   2. map its theme onto the --ag-* vars on the overlay element, e.g.
        #authGate { --ag-card-bg:var(--s1); --ag-border:var(--bd); --ag-text:var(--tx); … }
   3. use the .ag-* classes on the card markup.
   The overlay positioning (fullscreen vs viewport, blur, etc.) stays per page.
   ──────────────────────────────────────────────────────────────────────────── */

.ag-card{
  display:flex;flex-direction:column;align-items:center;text-align:center;
  gap:13px;width:330px;max-width:100%;padding:32px 28px;border-radius:12px;
  background:var(--ag-card-bg,#1a1a1a);
  border:1px solid var(--ag-border,rgba(255,255,255,.14));
  box-shadow:var(--ag-shadow,0 20px 50px rgba(0,0,0,.4));
}
.ag-logo{height:28px}
.ag-lock{margin-top:2px}
.ag-title{font-size:18px;font-weight:800;letter-spacing:-.01em;color:var(--ag-text,#f0f0f0)}
.ag-sub{font-size:13px;line-height:1.5;max-width:250px;color:var(--ag-text2,#888)}
.ag-note{font-size:11px;line-height:1.45;max-width:230px;margin-top:2px;color:var(--ag-text3,#444)}

/* Provider sign-in button ("Continue with Google / Microsoft"), rendered by noctua-account.js. */
.ag-gbtn{
  display:flex;align-items:center;justify-content:center;gap:10px;
  width:280px;max-width:100%;margin-top:2px;padding:11px 14px;border-radius:8px;
  background:#fff;border:1px solid rgba(0,0,0,.14);color:#1f1f1f;
  font:inherit;font-size:13px;font-weight:600;cursor:pointer;
}
.ag-gbtn:hover{background:#f5f5f5}
.ag-gbtn:disabled{opacity:.5;cursor:wait}
.ag-gbtn svg{flex-shrink:0}

/* Returning-visitor one-click button + "use another account" link (viewer). */
.ag-continue{
  display:flex;align-items:center;justify-content:center;gap:8px;
  width:280px;max-width:100%;padding:10px 22px;border-radius:7px;border:none;
  background:var(--ag-acc,#ff6600);color:#fff;
  font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:filter .15s;
}
.ag-continue:hover{filter:brightness(1.08)}
.ag-switch{
  background:none;border:none;padding:2px;cursor:pointer;
  font:inherit;font-size:12px;color:var(--ag-text2,#888);transition:color .15s;
}
.ag-switch:hover{color:var(--ag-acc,#ff6600)}

/* Inline error (admin). */
.ag-err{font-size:11px;text-align:center;min-height:14px;color:var(--ag-err-color,#ef4444)}
.ag-err:empty{min-height:0;display:none}   /* don't reserve space until there's an error */
