/* Pearl Project v17.8.58 – restore motion removed by v17.8.57.
   Install AFTER sath-reference-fix.css; visual geometry unchanged.
   No JavaScript / database changes. */
@keyframes s58BackgroundMove {
  0%,100% {background-position:49% 50%;}
  50% {background-position:51% 49%;}
}
@keyframes s58PanelGlow {
  0%,100% {box-shadow:0 14px 35px rgba(0,10,26,.22), 0 0 0 1px rgba(238,201,127,.04);}
  50% {box-shadow:0 20px 46px rgba(0,10,26,.31), 0 0 25px rgba(215,182,110,.10);}
}
@keyframes s58LogoLight {
  0%,100% {filter:drop-shadow(0 0 1px rgba(235,196,113,.12));}
  50% {filter:drop-shadow(0 0 9px rgba(244,207,132,.50));}
}
@keyframes s58ButtonGlow {
  0%,100% {box-shadow:0 3px 10px rgba(11,146,149,.15);filter:brightness(1);}
  50% {box-shadow:0 7px 19px rgba(12,160,164,.28);filter:brightness(1.07);}
}
@keyframes s58ButtonShine {
  0%,13% {left:-50%;opacity:0;}
  22% {opacity:.58;}
  40%,100% {left:120%;opacity:0;}
}
@keyframes s58GoldAccent {
  0%,100% {box-shadow:inset 3px 0 0 #dfbc70,0 0 8px rgba(18,152,172,.10);}
  50% {box-shadow:inset 3px 0 0 #ffe2a5,0 0 18px rgba(18,152,172,.23);}
}
@keyframes s58CardReveal {
  from {opacity:.68;transform:translateY(7px);}
  to {opacity:1;transform:translateY(0);}
}
/* Photograph slowly shifts, with stable login-card dimensions. */
html body .login-screen {animation:s58BackgroundMove 24s ease-in-out infinite!important;}
html body .login-card {
  animation:sathCardAppear .5s ease-out both, s58PanelGlow 7s ease-in-out .5s infinite!important;
}
html body .login-card .sath-logo-original {
  animation:s58LogoLight 4.5s ease-in-out infinite!important;
}
html body #app .sidebar .sath-logo-original {
  animation:s58LogoLight 6.2s ease-in-out infinite!important;
}
/* Moving highlight on both login and application primary buttons. */
html body .login-card .primary, html body #app .primary {
  position:relative!important;
  overflow:hidden!important;
  animation:s58ButtonGlow 4.6s ease-in-out infinite!important;
  transition:transform .22s ease,box-shadow .25s ease,filter .25s ease!important;
}
html body .login-card .primary::before,html body #app .primary::before {
  content:""!important;display:block!important;position:absolute!important;
  top:-20%!important;bottom:-20%!important;left:-50%;width:34%!important;
  z-index:1!important;pointer-events:none!important;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.23),transparent)!important;
  transform:skewX(-17deg)!important;
  animation:s58ButtonShine 6s ease-in-out infinite!important;
}
html body .login-card .primary:hover:not(:disabled),html body #app .primary:hover:not(:disabled) {
  transform:translateY(-2px) scale(1.012)!important;
  filter:brightness(1.12)!important;
}
html body .login-card .primary:active:not(:disabled),html body #app .primary:active:not(:disabled) {
  transform:translateY(1px) scale(.985)!important;
}
html body #app .sidebar nav button.active {
  animation:s58GoldAccent 3.5s ease-in-out infinite!important;
}
html body #app .sidebar nav button:hover:not(.active) {
  transform:translateX(3px)!important;
}
html body #app main>header,html body #app #content>.panel {
  animation:s58CardReveal .4s ease-out both!important;
}
@media(hover:hover) and (pointer:fine) {
  html body #app .stat:hover,html body #app .project-card:hover,html body #app .task-card:hover {
    transform:translateY(-3px)!important;
    box-shadow:0 12px 28px rgba(17,60,84,.14)!important;
  }
}
@media(max-width:720px) {
  html body .login-screen {animation:none!important;}
  html body .login-card {animation:sathCardAppear .4s ease-out both!important;}
  html body .login-card .primary,html body #app .primary {animation:none!important;}
  html body .login-card .primary::before,html body #app .primary::before {animation:none!important;display:none!important;}
}
@media(prefers-reduced-motion:reduce) {
  html body .login-screen,html body .login-card,html body .login-card .sath-logo-original,
  html body #app .sidebar .sath-logo-original,html body .login-card .primary,
  html body #app .primary,html body #app .sidebar nav button.active,
  html body #app main>header,html body #app #content>.panel {animation:none!important;}
  html body .login-card .primary::before,html body #app .primary::before {animation:none!important;display:none!important;}
}
