/* ===== PHARMACY SYSTEM — login / activation screens (design + animation only) ===== */
html body .auth,html body.t-on .auth,html body.theme-dark .auth,html body.t-img .auth{
  background:linear-gradient(135deg,#f0fdfa 0%,#e4f6f8 48%,#e6eeff 100%)!important;background-image:linear-gradient(135deg,#f0fdfa 0%,#e4f6f8 48%,#e6eeff 100%)!important;
  background-attachment:scroll!important;color:#0f2f33;animation:none!important;font-family:inherit}
html body .auth:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(rgba(13,148,136,.16) 1.3px,transparent 1.6px) 0 0/26px 26px;-webkit-mask-image:radial-gradient(ellipse at 50% 45%,#000 25%,transparent 78%);mask-image:radial-gradient(ellipse at 50% 45%,#000 25%,transparent 78%);backdrop-filter:none;animation:none}

/* animated background layer */
.auth-fx{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none}
.fx-blob{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;will-change:transform}
.fx-blob.b1{width:520px;height:520px;left:-140px;top:-120px;background:#5eead4;animation:lgDrift 22s ease-in-out infinite}
.fx-blob.b2{width:560px;height:560px;right:-160px;bottom:-160px;background:#7dd3fc;animation:lgDrift 26s ease-in-out -8s infinite reverse}
.fx-blob.b3{width:360px;height:360px;left:42%;top:30%;background:#bbf7d0;opacity:.45;animation:lgDrift 30s ease-in-out -14s infinite}
.fx-pill{position:absolute;width:58px;height:24px;border-radius:14px;border:2px solid rgba(255,255,255,.9);background:linear-gradient(90deg,#14b8a6 50%,#fff 50%);box-shadow:0 8px 18px rgba(13,148,136,.22);opacity:.75;animation:lgFloat 14s ease-in-out infinite}
.fx-pill:nth-of-type(even){background:linear-gradient(90deg,#38bdf8 50%,#fff 50%)}
.fx-pill.p1{left:6%;top:18%;--r:-28deg;animation-duration:15s}
.fx-pill.p2{left:14%;top:70%;--r:24deg;animation-duration:18s;animation-delay:-4s;transform:scale(.8)}
.fx-pill.p3{left:44%;top:10%;--r:40deg;animation-duration:17s;animation-delay:-7s}
.fx-pill.p4{left:52%;top:82%;--r:-18deg;animation-duration:20s;animation-delay:-2s;transform:scale(.9)}
.fx-pill.p5{right:8%;top:14%;--r:30deg;animation-duration:16s;animation-delay:-9s}
.fx-pill.p6{right:5%;top:62%;--r:-36deg;animation-duration:19s;animation-delay:-5s;transform:scale(1.1)}
.fx-pill.p7{left:30%;top:46%;--r:12deg;animation-duration:22s;animation-delay:-11s;transform:scale(.7)}
.fx-pill.p8{right:30%;top:36%;--r:-50deg;animation-duration:21s;animation-delay:-13s;transform:scale(.75)}
.fx-cross{position:absolute;width:22px;height:22px;opacity:.5;animation:lgSpin 18s linear infinite}
.fx-cross:before,.fx-cross:after{content:"";position:absolute;background:#14b8a6;border-radius:3px}
.fx-cross:before{left:8px;top:0;width:6px;height:22px}.fx-cross:after{top:8px;left:0;height:6px;width:22px}
.fx-cross.c1{left:24%;top:12%}.fx-cross.c2{left:8%;top:48%;transform:scale(.7);animation-duration:24s}.fx-cross.c3{left:38%;top:88%;animation-duration:20s}
.fx-cross.c4{right:20%;top:8%;transform:scale(.8);animation-duration:26s}.fx-cross.c5{right:10%;top:44%;animation-duration:21s}.fx-cross.c6{right:36%;top:74%;transform:scale(.7);animation-duration:23s}
.fx-cross.c4:before,.fx-cross.c4:after,.fx-cross.c6:before,.fx-cross.c6:after{background:#38bdf8}
.fx-ecg{position:absolute;left:0;bottom:70px;width:100%;height:110px;opacity:.9}
.fx-ecg path{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.ecg-base{stroke:rgba(13,148,136,.16);stroke-width:2}
.ecg-live{stroke:#14b8a6;stroke-width:3;stroke-dasharray:90 910;stroke-dashoffset:1000;filter:drop-shadow(0 0 6px rgba(20,184,166,.7));animation:lgEcg 5s linear infinite}

/* top note -> small status chip */
html body .auth .auth-top-note{top:20px;right:26px;max-width:none;display:flex;align-items:center;gap:8px;padding:8px 16px;border-radius:999px;font-size:13px;font-weight:700;font-style:normal;letter-spacing:.02em;color:#0f766e;text-shadow:none;text-align:left;background:rgba(255,255,255,.78);border:1px solid #b9e6de;box-shadow:0 6px 16px rgba(13,148,136,.12);backdrop-filter:blur(8px);animation:lgDown .7s .3s cubic-bezier(.2,.9,.25,1) both}
html body .auth .auth-top-note:before{content:"";width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 0 rgba(34,197,94,.6);animation:lgPulseDot 2s infinite}

/* brand / promo side */
html body .auth .auth-promo{animation:none}
html body .auth .auth-brand{gap:22px;margin-bottom:26px;animation:lgUp .8s .1s cubic-bezier(.2,.9,.25,1) both}
html body .auth .auth-brand-mark{position:relative;overflow:visible;isolation:auto;width:clamp(78px,8vw,104px);height:clamp(78px,8vw,104px);padding:0;border-radius:28%;border:0;background:linear-gradient(145deg,#2dd4bf,#0d9488 60%,#0f766e);box-shadow:0 14px 30px rgba(13,148,136,.38),inset 0 2px 4px rgba(255,255,255,.45);animation:lgLogo 5s ease-in-out infinite}
html body .auth .auth-brand-mark img{width:100%;height:100%;object-fit:cover;border-radius:28%;display:block}
html body .auth .auth-brand-mark:after{content:"";position:absolute;inset:-6px;border-radius:32%;border:2px solid rgba(20,184,166,.55);animation:lgRing 2.8s ease-out infinite;pointer-events:none}
html body .auth .auth-brand h1{font-size:clamp(32px,4.2vw,58px);line-height:1.02;letter-spacing:-1.5px;font-weight:900;background:linear-gradient(90deg,#0f766e,#0d9488 45%,#0ea5e9);-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
html body .auth .auth-brand p{margin-top:6px;font-size:13px;font-weight:800;letter-spacing:.22em;text-transform:uppercase;color:#14907f}
html body .auth .auth-intro{font-size:clamp(17px,1.7vw,22px);font-weight:600;color:#355a61;line-height:1.45;margin-bottom:28px;animation:lgUp .8s .28s cubic-bezier(.2,.9,.25,1) both}
html body .auth .auth-benefits{display:flex;flex-wrap:wrap;gap:12px}
html body .auth .auth-benefit,html body .auth .auth-benefit+.auth-benefit{flex:none;flex-direction:row;gap:10px;padding:10px 16px 10px 10px;border:1px solid #cdebe5;border-left:1px solid #cdebe5;border-radius:16px;background:rgba(255,255,255,.82);backdrop-filter:blur(6px);box-shadow:0 8px 20px rgba(13,148,136,.1);color:#0f766e;font-size:14px;text-align:left;animation:lgUp .7s cubic-bezier(.2,.9,.25,1) both;transition:transform .25s,box-shadow .25s}
html body .auth .auth-benefit:nth-child(1){animation-delay:.45s}html body .auth .auth-benefit:nth-child(2){animation-delay:.6s}html body .auth .auth-benefit:nth-child(3){animation-delay:.75s}
html body .auth .auth-benefit:hover{transform:translateY(-3px);box-shadow:0 14px 26px rgba(13,148,136,.2)}
html body .auth .auth-benefit-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:11px;border:0;background:linear-gradient(135deg,#14b8a6,#0ea5e9);color:#fff;font-size:16px;box-shadow:0 4px 10px rgba(14,165,233,.3)}

/* login card */
html body .auth .auth-card{position:relative;max-width:500px;justify-self:end;overflow:hidden;border-radius:28px;background:rgba(255,255,255,.9);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.95);box-shadow:0 34px 80px rgba(13,148,136,.2),0 6px 18px rgba(15,47,51,.08);animation:lgCard .9s .15s cubic-bezier(.2,.9,.25,1) both;transition:none!important}
html body .auth .auth-card:hover{box-shadow:0 34px 80px rgba(13,148,136,.2),0 6px 18px rgba(15,47,51,.08);transform:none}
html body .auth .auth-card-ribbon{position:relative;overflow:hidden;width:100%;min-height:78px;margin:0;border:0;border-radius:0;transform:none;gap:14px;padding:16px 22px;justify-content:flex-start;background:linear-gradient(110deg,#0d9488 0%,#14b8a6 55%,#0ea5e9 100%);background-size:200% 100%;box-shadow:none;color:#fff;font-size:clamp(20px,2vw,25px);letter-spacing:.2px;animation:lgGrad 8s ease-in-out infinite alternate}
html body .auth .auth-card-ribbon:after{content:"";position:absolute;top:0;bottom:0;width:70px;left:-90px;background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent);transform:skewX(-18deg);animation:lgShine 5s ease-in-out 1.2s infinite}
html body .auth .auth-card-ribbon>span{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.45)}
html body .auth .auth-card-ribbon svg{width:28px;height:28px}
html body .auth .auth-card-body{padding:28px clamp(22px,3vw,38px) 26px}
html body .auth .auth-card-body>*{animation:lgUp .6s cubic-bezier(.2,.9,.25,1) both}
html body .auth .auth-card-body>*:nth-child(1){animation-delay:.35s}html body .auth .auth-card-body>*:nth-child(2){animation-delay:.42s}html body .auth .auth-card-body>*:nth-child(3){animation-delay:.49s}html body .auth .auth-card-body>*:nth-child(4){animation-delay:.56s}html body .auth .auth-card-body>*:nth-child(5){animation-delay:.63s}html body .auth .auth-card-body>*:nth-child(6){animation-delay:.7s}html body .auth .auth-card-body>*:nth-child(7){animation-delay:.77s}
html body .auth .auth-eyebrow{display:inline-block;margin-bottom:18px;padding:5px 12px;border-radius:999px;background:#e6f7f3;color:#0f766e;font-size:11px;font-weight:800;letter-spacing:.18em}
html body .auth .auth-label{display:flex;align-items:center;gap:8px;margin-bottom:10px;font-size:15px;font-weight:800;color:#0f766e}
html body .auth .auth-label:before{content:"";width:8px;height:8px;border-radius:50%;background:#14b8a6;box-shadow:0 0 0 4px rgba(20,184,166,.18)}
html body .auth .auth-input{height:60px;padding:0 18px;border:2px solid #cdebe5;border-radius:16px;background:#f6fcfb;color:#0f2f33;font-size:20px;box-shadow:inset 0 2px 4px rgba(15,47,51,.04);transition:border-color .25s,box-shadow .25s,background .25s}
html body .auth .auth-input::placeholder{color:#9bb8bd}
html body .auth .auth-input:hover{border-color:#8fd5c9}
html body .auth .auth-input:focus,html body .auth .auth-input:focus-visible{border-color:#0d9488;background:#fff;box-shadow:0 0 0 5px rgba(20,184,166,.2);outline:none}
html body .auth .auth-input-secret{text-align:center;letter-spacing:.45em;font-size:24px}
html body .auth .auth-input-secret::placeholder{letter-spacing:.45em}
html body .auth .auth-msg{min-height:22px;margin:12px 0 14px;padding:0;border-radius:12px;font-size:14px;font-weight:700;color:#b91c1c}
html body .auth .auth-msg:not(:empty){padding:9px 14px;background:#fef2f2;border:1px solid #fecaca;animation:lgShake .45s}
html body .auth .auth-btn{position:relative;overflow:hidden;min-height:60px;border:0;border-radius:16px;background:linear-gradient(120deg,#0d9488,#14b8a6 50%,#0ea5e9);background-size:200% 100%;color:#fff;font-size:19px;font-weight:800;letter-spacing:.3px;box-shadow:0 14px 26px rgba(13,148,136,.34);transition:transform .25s,box-shadow .25s,background-position .5s}
html body .auth .auth-btn:before{content:"";position:absolute;top:0;bottom:0;width:60px;left:-90px;background:linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent);transform:skewX(-18deg);opacity:1;animation:lgShine 4.5s ease-in-out 2s infinite}
html body .auth .auth-btn:hover{transform:translateY(-2px);background-position:100% 0;box-shadow:0 18px 32px rgba(13,148,136,.42);filter:none}
html body .auth .auth-btn:active{transform:translateY(0) scale(.99);box-shadow:0 8px 16px rgba(13,148,136,.3)}
html body .auth .auth-btn:disabled{opacity:.7;cursor:wait;transform:none}
html body .auth .auth-btn:disabled:after{content:"";width:18px;height:18px;margin-left:12px;border-radius:50%;border:3px solid rgba(255,255,255,.45);border-top-color:#fff;animation:lgSpin .8s linear infinite}
html body .auth .auth-link{position:relative;margin-top:14px;color:#0d9488;font-weight:700;background:none}
html body .auth .auth-link:after{content:"";position:absolute;left:50%;right:50%;bottom:-2px;height:2px;background:#0ea5e9;transition:left .3s,right .3s}
html body .auth .auth-link:hover{color:#0e7490}html body .auth .auth-link:hover:after{left:0;right:0}
html body .auth .auth-hint,html body .auth .auth-foot{margin-top:16px;padding:10px 14px;border-radius:12px;background:#f0f9ff;border:1px solid #d6ecfb;color:#35617a;font-size:12.5px;line-height:1.5}
html body .auth .auth-mono{color:#35617a}

/* footer */
html body .auth .auth-bottom{min-height:52px;padding:10px 5.2%;background:rgba(255,255,255,.72);backdrop-filter:blur(10px);border-top:1px solid #cdebe5;color:#4b6b72;font-size:13px;animation:none}
html body .auth .auth-footer-link{color:#0d9488;font-weight:700}
html body .auth .auth-bottom-cart{font-size:22px;display:inline-block;animation:lgBob 3s ease-in-out infinite}

html body .auth.auth-seen .auth-top-note,html body .auth.auth-seen .auth-brand,html body .auth.auth-seen .auth-intro,html body .auth.auth-seen .auth-benefit,html body .auth.auth-seen .auth-card,html body .auth.auth-seen .auth-card-body>*{animation:none!important}
@keyframes lgUp{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
@keyframes lgDown{from{opacity:0;transform:translateY(-16px)}to{opacity:1;transform:none}}
@keyframes lgCard{from{opacity:0;transform:translateY(34px) scale(.95)}to{opacity:1;transform:none}}
@keyframes lgDrift{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(70px,50px) scale(1.12)}66%{transform:translate(-40px,80px) scale(.95)}}
@keyframes lgFloat{0%,100%{transform:translateY(0) rotate(var(--r,0deg))}50%{transform:translateY(-34px) rotate(calc(var(--r,0deg) + 18deg))}}
@keyframes lgSpin{to{transform:rotate(360deg)}}
@keyframes lgEcg{from{stroke-dashoffset:1000}to{stroke-dashoffset:-100}}
@keyframes lgLogo{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes lgRing{0%{transform:scale(.92);opacity:.9}100%{transform:scale(1.35);opacity:0}}
@keyframes lgGrad{from{background-position:0 0}to{background-position:100% 0}}
@keyframes lgShine{0%,60%{left:-90px}100%{left:130%}}
@keyframes lgPulseDot{0%{box-shadow:0 0 0 0 rgba(34,197,94,.6)}70%,100%{box-shadow:0 0 0 9px rgba(34,197,94,0)}}
@keyframes lgShake{10%,90%{transform:translateX(-2px)}20%,80%{transform:translateX(4px)}30%,50%,70%{transform:translateX(-7px)}40%,60%{transform:translateX(7px)}}
@keyframes lgBob{0%,100%{transform:translateY(0) rotate(-8deg)}50%{transform:translateY(-5px) rotate(8deg)}}

@media (max-width:900px){
  html body .auth .auth-card{justify-self:center;max-width:520px}
  html body .auth .auth-brand{justify-content:center;gap:14px;margin-bottom:14px}
  html body .auth .auth-brand>div:last-child{text-align:left}
  html body .auth .auth-intro{text-align:center;margin-bottom:14px}
  html body .auth .auth-benefits{justify-content:center;gap:8px}
  html body .auth .auth-top-note{right:50%;transform:translateX(50%);top:12px;animation:none;white-space:nowrap}
  .fx-ecg{bottom:56px;height:80px}
}
@media (max-width:520px){
  html body .auth .auth-benefit,html body .auth .auth-benefit+.auth-benefit{padding:7px 10px 7px 7px;font-size:12px}
  html body .auth .auth-benefit-icon{width:26px;height:26px;font-size:13px}
  html body .auth .auth-card-body{padding:22px 18px}
  html body .auth .auth-brand h1{font-size:28px}
  html body .auth .auth-brand-mark{width:64px;height:64px;margin-left:8px}
  html body .auth .auth-brand-mark:after{inset:-4px}
  html body .auth .auth-brand{margin-top:18px}
  .fx-pill{opacity:.5}.fx-pill.p3,.fx-pill.p4,.fx-pill.p7,.fx-pill.p8{display:none}
}
@media (prefers-reduced-motion:reduce){
  .auth *,.auth-fx *,html body .auth *,html body .auth *:before,html body .auth *:after{animation:none!important;transition:none!important}
}
