/* auth-v5.css — the v5 chrome for the signed-out auth pages (sign-in, register,
   forgot/reset password, invite acceptance). A centered card on the v5 token
   background; no product shell (there's no session yet). Pairs with ll-v5.css
   (tokens + dark/light) + ll-brand.js (Logo B mark). Wave A theme-unification,
   2026-07-05 — replaces the legacy dataviz/site-core/site-chrome stack. */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(var(--blue-rgb, 59,130,246), 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
}
.auth-main { display: grid; place-items: center; padding: 2.5rem 1.25rem; }

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg, 16px);
  box-shadow: var(--sh-md);
  padding: 2rem 1.9rem 1.8rem;
}

/* brand lockup */
.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.auth-brand .mk { width: 34px; height: 34px; display: inline-grid; place-items: center; }
.auth-brand .mk svg { width: 34px; height: 34px; display: block; }
.auth-brand .wm { font-weight: 800; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }

.auth-head { text-align: center; margin-bottom: 1.4rem; }
.auth-head .kick {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ac, var(--blue));
}
.auth-head h1 { font-size: 1.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; margin: 0.35rem 0 0; }
.auth-head p { font-size: 0.86rem; color: var(--muted); line-height: 1.5; margin: 0.5rem 0 0; }

/* form */
.auth-form { display: flex; flex-direction: column; gap: 0.35rem; }
.auth-form label {
  font-size: 0.74rem; font-weight: 700; color: var(--text);
  letter-spacing: 0.01em; margin-top: 0.7rem;
}
.auth-form input, .auth-form select {
  font-family: var(--font); font-size: 0.92rem; color: var(--ink);
  background: var(--inset, var(--card-2)); border: 1px solid var(--border);
  border-radius: var(--r-sm, 9px); padding: 0.62rem 0.75rem; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-form input::placeholder { color: var(--dim); }
.auth-form input:focus, .auth-form select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(var(--blue-rgb, 59,130,246), 0.18);
}
.auth-form .note { font-size: 0.74rem; color: var(--dim); line-height: 1.45; margin: 0.55rem 0 0; }
.auth-form button[type="submit"] {
  margin-top: 1.1rem; font-family: var(--font); font-weight: 700; font-size: 0.9rem;
  color: #fff; background: linear-gradient(180deg, var(--blueHi), var(--blue));
  border: none; border-radius: var(--r-sm, 9px); padding: 0.7rem 1rem; cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}
.auth-form button[type="submit"]:hover { transform: translateY(-1px); box-shadow: var(--sh-sm); filter: brightness(1.04); }
.auth-form button[type="submit"]:disabled { opacity: 0.55; pointer-events: none; }

/* messages */
.auth-msg { margin: 0.9rem 0 0; font-size: 0.82rem; line-height: 1.45; padding: 0.6rem 0.75rem; border-radius: var(--r-sm, 9px); }
.auth-msg.error { color: var(--red); background: rgba(var(--red-rgb, 239,68,68), 0.10); border: 1px solid rgba(var(--red-rgb, 239,68,68), 0.30); }
.auth-msg.ok { color: var(--green); background: rgba(var(--green-rgb, 34,197,94), 0.10); border: 1px solid rgba(var(--green-rgb, 34,197,94), 0.30); }

/* footer links */
.auth-links { margin-top: 1.35rem; padding-top: 1.15rem; border-top: 1px solid var(--border); text-align: center; font-size: 0.83rem; color: var(--muted); }
.auth-links a { color: var(--ac, var(--blue)); text-decoration: none; font-weight: 600; }
.auth-links a:hover { text-decoration: underline; }
.auth-links .sep { color: var(--dim); margin: 0 0.5rem; }
.auth-fine { margin-top: 0.8rem; font-size: 0.75rem; color: var(--dim); line-height: 1.5; }

.auth-foot { text-align: center; padding: 1.25rem; font-size: 0.72rem; color: var(--dim); }
.auth-foot a { color: var(--muted); text-decoration: none; }
.auth-foot a:hover { color: var(--ink); }
