/*
 * gk_auth_tokens.css — W1 Shared Auth Token Base V1
 * Zweischicht-Token-Modell: Layer 1 Tenant (--ct-*) / Layer 2 Produkt-Konstante (--sword-core-*)
 * Inversregel: --sword-core-gold/cyan NEVER derived from --accent
 * Gold-Glow #d4a853 != Surface-Gold #d8b45a — nie angleichen
 * FE-1: kein MutationObserver/setInterval | FE-2: nur transform/opacity/filter
 * 0 externe Requests
 */

:root {
  /* ── Tenant-Hook (Layer 1) ─────────────────────────────────────────────── */
  --ct-accent:         #d8b45a;          /* GlicheKom setzt hier: #ff7a00  */
  --ct-accent-bright:  #f6e2a6;
  --accent:            var(--ct-accent, #d8b45a);
  --accent-2:          var(--ct-accent-bright, #f6e2a6);
  --accent-soft:       color-mix(in srgb, var(--accent) 14%, transparent);
  --accent-line:       color-mix(in srgb, var(--accent) 45%, transparent);

  /* ── Produkt-Konstante (Layer 2 — Inversregel: nie von --accent ableiten) */
  --sword-core-gold:   #d8b45a;
  --sword-core-cyan:   #34d1e8;

  /* ── Semantische Farben ────────────────────────────────────────────────── */
  --info:              #4b8fff;          /* ehemals --accent blau          */
  --success:           #3dbf6b;
  --warning:           #f5a623;
  --error:             #e05252;

  /* ── Oberfläche & Struktur ─────────────────────────────────────────────── */
  --surface:           rgba(20,27,36,.62);
  --surface-hi:        rgba(30,40,52,.72);
  --border:            rgba(255,255,255,.09);
  --border-accent:     var(--accent-line);

  /* ── Radien ────────────────────────────────────────────────────────────── */
  --radius-s:          10px;
  --radius:            18px;
  --radius-l:          26px;

  /* ── Motion-SSOT (SwordMotion.tokens) ─────────────────────────────────── */
  --t-fast:            180ms;
  --t-med:             420ms;
  --t-slow:            800ms;
  --ease:              cubic-bezier(.22,1,.36,1);
  --ease-in:           cubic-bezier(.55,0,1,.45);

  /* ── Typografie-Skala ──────────────────────────────────────────────────── */
  --fs-xs:             11px;
  --fs-s:              13px;
  --fs-base:           15px;
  --fs-m:              17px;
  --fs-l:              22px;
  --fs-xl:             28px;
}

/* ── Sword-Core-Signatur ────────────────────────────────────────────────── */
/*    Erscheint im Card-Footer jeder Auth-Seite als Trust-Signal            */
.sword-core-sig {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
  user-select: none;
}
.sword-core-sig::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--sword-core-gold) 50%, var(--sword-core-cyan) 50%);
  flex-shrink: 0;
  opacity: .88;
}

/* ── Auth-Reveal-Choreografie ───────────────────────────────────────────── */
/*    Klasse .auth-reveal auf das Karten-Element setzen.                    */
/*    JS setzt .is-visible via setTimeout-Stagger (90 ms * index).         */
.auth-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  var(--t-med) var(--ease),
    transform var(--t-med) var(--ease);
}
.auth-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Status-Bar (geteilt: .status-bar.* UND .notice.notice-* Familien) ─── */
/*    Beide Familien werden identisch gestylt (BLOCKER-3: reset-password.js */
/*    schreibt .notice.notice-error, HTML startet mit .status-bar.info).   */
.status-bar,
.notice {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-size: var(--fs-s);
  line-height: 1.45;
  border: 1px solid transparent;
  transition: opacity var(--t-fast) var(--ease);
}
.status-bar.hidden,
.notice.hidden {
  display: none;
}

/* Info */
.status-bar.info,
.notice.notice-info {
  background: color-mix(in srgb, var(--info) 12%, transparent);
  border-color: color-mix(in srgb, var(--info) 35%, transparent);
  color: color-mix(in srgb, var(--info) 85%, white);
}
/* Success */
.status-bar.success,
.notice.notice-success {
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border-color: color-mix(in srgb, var(--success) 35%, transparent);
  color: color-mix(in srgb, var(--success) 85%, white);
}
/* Warning */
.status-bar.warning,
.notice.notice-warning {
  background: color-mix(in srgb, var(--warning) 12%, transparent);
  border-color: color-mix(in srgb, var(--warning) 35%, transparent);
  color: color-mix(in srgb, var(--warning) 85%, white);
}
/* Error */
.status-bar.error,
.notice.notice-error {
  background: color-mix(in srgb, var(--error) 12%, transparent);
  border-color: color-mix(in srgb, var(--error) 35%, transparent);
  color: color-mix(in srgb, var(--error) 85%, white);
}

/* ── Reduced-Motion: Hard Stop ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .auth-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .status-bar,
  .notice {
    transition: none;
  }
}
