/* Competition Ready brand pieces shared by every portal: the animated badge on login pages and the logo images.
   Badge markup: public/shared/brand/badge.html.txt (three paths; the CSS below moves them in over 980 ms).
   The translate() values are in viewBox units, so the motion scales with the badge size (--badge-size). */
.logo-flyin { width: var(--badge-size, 240px); aspect-ratio: 1 / 1; }
.logo-flyin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.logo-flyin path { fill: var(--badge-fill, #dd1234); transform-box: fill-box; transform-origin: center; }
.logo-flyin__p1 { animation: logo-flyin-p1 740ms cubic-bezier(0.16, 1, 0.3, 1) 0ms both; }
@keyframes logo-flyin-p1 { from { opacity: 0; transform: translate(-308px, -426px) rotate(122deg) scale(0.6); } }
.logo-flyin__p2 { animation: logo-flyin-p2 520ms cubic-bezier(0.16, 1, 0.3, 1) 460ms both; }
@keyframes logo-flyin-p2 { from { opacity: 0; transform: translate(42px, 31px) scale(2.3); } }
.logo-flyin__p3 { animation: logo-flyin-p3 580ms cubic-bezier(0.16, 1, 0.3, 1) 160ms both; }
@keyframes logo-flyin-p3 { from { opacity: 0; transform: translate(406px, 500px) rotate(-123deg) scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .logo-flyin path { animation: none; } }
/* a badge placed on a login card */
.brand-mark .logo-flyin, .login-badge .logo-flyin { --badge-size: 228px; max-width: 100%; margin: 0 auto; }
.brand-mark { display: flex; justify-content: center; }
.login-badge { display: flex; justify-content: center; margin: 0 0 18px; }
/* a soft shadow so the red badge lifts off the dark background (a thin dark edge plus a faint red glow) */
.brand-mark .logo-flyin svg, .login-badge .logo-flyin svg { filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(221, 18, 52, 0.2)); }
/* logo images that follow the light/dark choice: put both in the markup, the theme shows the right one */
.logo-for-dark { display: none; }
:root[data-theme="dark"] .logo-for-light, :root:not([data-theme]) .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark, :root:not([data-theme]) .logo-for-dark { display: inline-block; }
:root[data-theme="light"] .logo-for-light { display: inline-block; }
:root[data-theme="light"] .logo-for-dark { display: none; }
