/* ===== Parul loader: logo medallion with a gold ring, used for login + page changes ===== */
#pjl{position:fixed;inset:0;z-index:2000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1.4rem;
  background:radial-gradient(ellipse at 50% 40%,rgba(188,154,94,.28),transparent 60%),linear-gradient(170deg,#1f1209,#34200f 55%,#1a0f07);
  opacity:0;visibility:hidden;transition:opacity .45s ease,visibility .45s}
#pjl.on{opacity:1;visibility:visible}
#pjl.quick{transition-duration:.18s}
.pjl-med{position:relative;width:148px;height:148px;display:grid;place-items:center}
.pjl-med img{width:112px;height:112px;border-radius:50%;background:#FBF6EA;padding:3px;box-shadow:0 0 0 4px rgba(188,154,94,.55),0 14px 40px rgba(0,0,0,.5),0 0 60px rgba(233,214,166,.22);animation:pjlBreath 2.6s ease-in-out infinite}
@keyframes pjlBreath{50%{transform:scale(1.045)}}
.pjl-ring{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg);overflow:visible}
.pjl-ring circle{fill:none;stroke-linecap:round}
.pjl-ring .bg{stroke:rgba(233,214,166,.16);stroke-width:2}
.pjl-ring .fg{stroke:url(#pjlg);stroke-width:3;stroke-dasharray:420;stroke-dashoffset:420;animation:pjlDraw 1.9s cubic-bezier(.6,.1,.3,1) infinite}
@keyframes pjlDraw{0%{stroke-dashoffset:420;transform:none}60%{stroke-dashoffset:0}100%{stroke-dashoffset:-420}}
.pjl-spark{position:absolute;inset:-14px;border-radius:50%;animation:pjlSpin 3.2s linear infinite}
.pjl-spark::before,.pjl-spark::after{content:"";position:absolute;width:7px;height:7px;background:#F6E7BD;transform:rotate(45deg);box-shadow:0 0 12px 3px rgba(246,231,189,.7)}
.pjl-spark::before{top:0;left:50%;margin-left:-3px}.pjl-spark::after{bottom:0;left:50%;margin-left:-3px;opacity:.55;transform:rotate(45deg) scale(.7)}
@keyframes pjlSpin{to{transform:rotate(360deg)}}
.pjl-txt{font:500 .82rem var(--sans,system-ui);letter-spacing:.38em;text-transform:uppercase;color:#E9D6A6;min-height:1.2em;text-align:center;padding:0 1rem}
.pjl-txt::after{content:"";display:inline-block;width:1.2em;text-align:left;animation:pjlDots 1.4s steps(4) infinite}
@keyframes pjlDots{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}}
#pjl.ok .pjl-txt::after{content:"";animation:none}
.pjl-check{position:absolute;right:2px;bottom:2px;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#E6D0A0,#A38045);display:grid;place-items:center;transform:scale(0);box-shadow:0 6px 16px rgba(0,0,0,.45)}
.pjl-check svg{width:24px;height:24px}
.pjl-check path{fill:none;stroke:#2C1B0E;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:26;stroke-dashoffset:26}
#pjl.ok .pjl-check{animation:pjlPop .5s cubic-bezier(.3,1.6,.5,1) forwards}
#pjl.ok .pjl-check path{animation:pjlTick .45s .25s ease forwards}
#pjl.ok .pjl-ring .fg{animation:none;stroke-dashoffset:0}
#pjl.ok .pjl-spark{animation-duration:1.2s}
@keyframes pjlPop{to{transform:scale(1)}}
@keyframes pjlTick{to{stroke-dashoffset:0}}
/* soft entrance for every page and for admin screens */
body{animation:pgIn .6s ease backwards}
@keyframes pgIn{from{opacity:0}to{opacity:1}}
.apanel:not(.hidden){animation:panelIn .45s cubic-bezier(.22,.8,.24,1) backwards}
#loginView:not(.hidden),#mfaView:not(.hidden){animation:pgIn .5s ease backwards}
@keyframes panelIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.pjl-ring .fg,.pjl-spark,.pjl-med img{animation:none!important}.pjl-ring .fg{stroke-dashoffset:0}}
