/* ==========================================================================
   Flask-port integrations (sign-in popup, account-deleted banner, contact form status).
   Loaded by templates/site/base.html after style.css. Uses the design-system tokens.
   ========================================================================== */

/* ---------- Account-deleted banner (home, ?account_deleted=1) ---------- */
.site-banner {
  position: fixed; z-index: 1300; top: 80px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: 560px;
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .9rem 1rem; border-radius: 14px; font-size: var(--fs-sm, .9375rem); line-height: 1.5;
  box-shadow: 0 12px 32px -12px rgba(13, 15, 26, .35);
}
.site-banner--success { color: #0a5c48; background: linear-gradient(180deg, var(--mint-50, #e3f8f1), #fff); border: 1px solid #bfe9dc; }
.site-banner--error { color: #8a1f17; background: linear-gradient(180deg, #fdecea, #fff); border: 1px solid #f3c3bd; }
.site-banner.site-banner--error > .icon { color: #c83c34; }
.site-banner > .icon { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--mint-700, #0b7a60); }
.site-banner p { margin: 0; flex: 1; }
.site-banner__close {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -4px -4px 0 0;
  border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer;
}
.site-banner__close:hover { background: rgba(11, 122, 96, .1); }
.site-banner__close .icon { width: 16px; height: 16px; }

/* ---------- Sign-in popup (non-modal dialog, replaces React LoginPopup) ---------- */
.signin-pop {
  position: fixed; z-index: 1300; right: 20px; top: calc(var(--header-h, 72px) + 12px);
  width: 300px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line, #e6e8f0); border-radius: 16px; overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(29, 20, 110, .45), 0 2px 6px rgba(13, 15, 26, .06);
  animation: signin-pop-in .28s cubic-bezier(.2, .8, .2, 1);
}
.signin-pop[hidden] { display: none; }
@keyframes signin-pop-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .signin-pop { animation: none; } }
.signin-pop__head {
  position: relative; display: flex; align-items: center; gap: .6rem; padding: 1rem 3rem 1rem 1.1rem;
  background: radial-gradient(90% 140% at 0% 0%, var(--indigo-50, #eeebff), transparent 70%), #fff;
  border-bottom: 1px solid var(--line, #e6e8f0);
}
.signin-pop__head .icon-tile { flex: none; }
.signin-pop__title { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink, #0d0f1a); }
.signin-pop__close {
  position: absolute; top: .55rem; right: .55rem; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 10px; background: transparent; color: var(--slate, #555b70); cursor: pointer;
}
.signin-pop__close:hover { background: rgba(13, 15, 26, .05); color: var(--ink, #0d0f1a); }
.signin-pop__close .icon { width: 16px; height: 16px; }
.signin-pop__body { display: grid; gap: .6rem; padding: 1rem 1.1rem 1.1rem; }
.signin-pop__body .btn { justify-content: center; }
.signin-pop__google { display: inline-block; width: 18px; height: 18px; flex: none; }
@media (max-width: 599px) {
  .signin-pop { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: 16px; left: 16px; width: auto; max-width: none; }
}

/* ---------- Contact form status (success / error) ---------- */
.form-status { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 12px; font-size: var(--fs-sm, .9375rem); line-height: 1.5; }
.form-status[hidden] { display: none; }
.form-status .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.form-status p { margin: 0; flex: 1; }
.form-status--success { color: #0a5c48; background: var(--mint-50, #e3f8f1); border: 1px solid #bfe9dc; }
.form-status--error { color: #8a1c13; background: #fdecea; border: 1px solid #f5c2bd; }
.form-status__close { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: -3px -4px 0 0; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.form-status__close .icon { width: 14px; height: 14px; margin: 0; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn .spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: site-spin .7s linear infinite; }
@keyframes site-spin { to { transform: rotate(360deg); } }
/* Honeypot: off-screen, not display:none (bots skip hidden fields less often) */
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
