/* auth-glass.css -- 🔷 "glassy" sign-in look (dark scene, frosted glass card with cut corners) in the home page colours (pink → purple).
   Loaded by auth-scene.inc.php; every rule is under html.ag so it wins over each page's own small inline styles. */
html.ag{--ag-c1:#F472B6;--ag-c2:#C084FC;--ag-c3:#A855F7;--ag-tx:#F3EEFF;--ag-mu:#A9A4CF;--ag-ln:rgba(196,181,253,.18);--ag-in:rgba(13,8,30,.55);--ag-ok:#34d399;--ag-bad:#fb7185}
html.ag,html.ag body{background:#07051A!important}
html.ag body{color:var(--ag-tx)!important;font-family:Inter,'Hind Siliguri','Segoe UI',Roboto,-apple-system,sans-serif!important;min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;overflow-x:hidden}
html.ag .scene{position:fixed;inset:0;z-index:0;overflow:hidden}
html.ag .scene svg{width:100%;height:100%;display:block}
html.ag .scene:after{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(168,85,247,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(168,85,247,.06) 1px,transparent 1px);background-size:56px 56px;-webkit-mask-image:radial-gradient(70% 60% at 50% 40%,#000 20%,transparent 75%);mask-image:radial-gradient(70% 60% at 50% 40%,#000 20%,transparent 75%)}
html.ag .ag-r1{animation:agDrift 18s ease-in-out infinite alternate}
html.ag .ag-r2{animation:agDrift 22s ease-in-out -6s infinite alternate-reverse}
html.ag .ag-r3{animation:agDrift 26s ease-in-out -3s infinite alternate;opacity:.9}
@keyframes agDrift{from{transform:translate(-30px,0) scale(1.02)}to{transform:translate(30px,-14px) scale(1.04)}}

/* ---------- card: frosted glass with cut corners + cyan corner shards ---------- */
html.ag .wrap{position:relative;z-index:1;width:100%;max-width:440px}
/* taller than the screen (phones, landscape): start at the top instead of being cut off; still centred when it fits */
html.ag body{align-items:flex-start!important}html.ag .wrap,html.ag body>.c{margin-top:auto!important;margin-bottom:auto!important}
html.ag .card,html.ag body>.c{--cut:30px;--cut2:14px;position:relative;z-index:1;background:none!important;border:0!important;border-radius:0!important;
  box-shadow:0 40px 70px -30px rgba(0,0,0,.75),0 0 60px -30px rgba(168,85,247,.35)!important;
  padding:38px 36px 30px!important;max-width:440px;width:100%;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;isolation:isolate}
/* NB: no CSS filter on the card or its parents -- a filter would stop the frosted blur seeing the ribbons behind */
html.ag .card:before,html.ag .card:after,html.ag body>.c:before,html.ag body>.c:after{content:"";position:absolute;inset:0;z-index:-1;
  clip-path:polygon(var(--cut) 0,calc(100% - var(--cut2)) 0,100% var(--cut2),100% calc(100% - var(--cut)),calc(100% - var(--cut)) 100%,var(--cut2) 100%,0 calc(100% - var(--cut2)),0 var(--cut))}
html.ag .card:before,html.ag body>.c:before{background:linear-gradient(150deg,rgba(244,114,182,.55),rgba(196,181,253,.14) 35%,rgba(196,181,253,.08) 65%,rgba(240,171,252,.45))}
html.ag .card:after,html.ag body>.c:after{inset:1px;--cut:29.5px;--cut2:13.6px;background:linear-gradient(160deg,rgba(62,26,92,.55),rgba(16,9,36,.62) 45%,rgba(28,14,56,.58));
  -webkit-backdrop-filter:blur(22px) saturate(150%);backdrop-filter:blur(22px) saturate(150%)}
html.ag .agc{position:absolute;width:34px;height:34px;z-index:2;pointer-events:none;background:linear-gradient(135deg,#FCE7F3,var(--ag-c2) 45%,#7C3AED);
  filter:drop-shadow(0 0 10px rgba(217,70,239,.7));opacity:.95;transition:transform .9s cubic-bezier(.2,.9,.2,1)}
html.ag .agc.tl{top:-7px;left:-7px;clip-path:polygon(0 0,100% 0,0 100%);border-radius:6px}
html.ag .agc.br{right:-7px;bottom:-7px;clip-path:polygon(100% 0,100% 100%,0 100%);border-radius:6px}
html.ag .agc:after{content:"";position:absolute;inset:3px;background:linear-gradient(135deg,rgba(255,255,255,.55),transparent 60%);clip-path:inherit}
/* entrance: the shards fly in from the middle, the glass opens, then the content fades up */
html.ag .card.ag-in .agc.tl{animation:agTl 1s cubic-bezier(.2,.9,.2,1) both}
html.ag .card.ag-in .agc.br{animation:agBr 1s cubic-bezier(.2,.9,.2,1) both}
html.ag .card.ag-in{animation:agOpen .45s cubic-bezier(.2,.9,.2,1) both}
html.ag .card.ag-in>*:not(.agc){animation:agUp .38s cubic-bezier(.2,.9,.2,1) both;animation-delay:calc(.1s + var(--i,0) * 28ms)}
@keyframes agTl{from{transform:translate(150px,150px) rotate(-8deg);opacity:0}}
@keyframes agBr{from{transform:translate(-150px,-150px) rotate(-8deg);opacity:0}}
@keyframes agOpen{from{transform:scale(.92);opacity:0}}
@keyframes agUp{from{transform:translateY(10px);opacity:0}}

/* ---------- text ---------- */
html.ag .brandmark,html.ag body>.c>.b{width:52px!important;height:52px!important;border-radius:15px!important;margin:0 0 16px!important;display:grid!important;place-items:center;font-weight:800;font-size:16px;letter-spacing:.5px;color:#FCE7F3;
  background:linear-gradient(145deg,rgba(217,70,239,.35),rgba(168,85,247,.12))!important;border:1px solid rgba(240,171,252,.4)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 10px 24px -10px rgba(217,70,239,.7)}
html.ag h1{font-size:28px!important;font-weight:800!important;text-align:left!important;letter-spacing:-.3px!important;color:#fff!important;margin:0 0 6px!important;line-height:1.15}
html.ag h1 span,html.ag h1 em{font-style:normal;background:linear-gradient(90deg,#EC4899,#C026D3 45%,#A855F7 75%,#8B5CF6);-webkit-background-clip:text;background-clip:text;color:transparent}
html.ag .sub,html.ag body>.c>.s{text-align:left!important;font-size:13px!important;color:var(--ag-mu)!important;margin:0 0 24px!important;line-height:1.55}
html.ag label{display:block;font-size:12.5px!important;font-weight:600!important;color:#E2DCFA!important;margin:0 0 7px!important;letter-spacing:.1px}
html.ag .field{margin-bottom:16px!important}
html.ag .hint{font-size:12px;color:var(--ag-mu)}

/* ---------- inputs ---------- */
html.ag input[type=text],html.ag input[type=password],html.ag input[type=email],html.ag input[type=tel],html.ag input[type=number],html.ag input:not([type]){
  width:100%!important;height:48px!important;padding:0 14px 0 44px!important;border-radius:12px!important;border:1px solid var(--ag-ln)!important;
  background:var(--ag-in)!important;color:var(--ag-tx)!important;font:inherit!important;font-size:14.5px!important;outline:none!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;
  transition:border-color .18s,box-shadow .18s,background .18s}
html.ag input::placeholder{color:rgba(169,164,207,.55)!important}
html.ag input:focus{border-color:rgba(217,70,239,.75)!important;box-shadow:0 0 0 4px rgba(217,70,239,.14),inset 0 1px 0 rgba(255,255,255,.05)!important;background:rgba(17,10,38,.75)!important}
html.ag input:-webkit-autofill{-webkit-text-fill-color:var(--ag-tx)!important;-webkit-box-shadow:0 0 0 1000px #150c2c inset!important;caret-color:#fff}
html.ag .agi{position:relative;display:block}
html.ag .agi>svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#8B86B8;pointer-events:none;transition:color .18s}
html.ag .agi:focus-within>svg{color:var(--ag-c2)}
html.ag .agi.pw input{padding-right:46px!important}
html.ag .ag-eye{position:absolute!important;right:6px;top:50%;transform:translateY(-50%);width:36px!important;height:36px;padding:0!important;border-radius:10px!important;border:0!important;
  background:transparent!important;box-shadow:none!important;color:#8B86B8!important;display:grid;place-items:center;cursor:pointer}
html.ag .ag-eye:hover{background:rgba(217,70,239,.12)!important;color:var(--ag-c1)!important;transform:translateY(-50%)!important}
html.ag .ag-eye svg{width:18px;height:18px}
html.ag .ag-eye.on{color:var(--ag-c2)!important}

/* ---------- row, buttons, links ---------- */
html.ag .row{display:flex;align-items:center;justify-content:space-between;margin:4px 0 20px!important;font-size:12.5px!important}
html.ag .remember{display:flex;align-items:center;gap:8px;color:#CFC8EE!important;margin:0!important;font-weight:500!important;cursor:pointer}
html.ag input[type=checkbox]{width:16px!important;height:16px!important;accent-color:var(--ag-c2);margin:0;padding:0!important}
html.ag .row a,html.ag a{color:var(--ag-c1)!important;font-weight:600;text-decoration:none}
html.ag .row a:hover,html.ag a:hover{text-decoration:underline}
html.ag button[type=submit]:not(.link):not(.lnk),html.ag .card>form>button,html.ag body>.c button:not(.lnk){
  width:100%!important;height:50px;padding:0 18px!important;border:0!important;border-radius:12px!important;cursor:pointer;font:inherit!important;font-size:15px!important;font-weight:800!important;letter-spacing:.2px;
  color:#fff!important;background:linear-gradient(95deg,#EC4899,#D946EF 40%,#A855F7 70%,#7C3AED)!important;background-size:180% 100%!important;
  box-shadow:0 16px 32px -12px rgba(217,70,239,.7),inset 0 1px 0 rgba(255,255,255,.3)!important;display:flex;align-items:center;justify-content:center;gap:8px;
  transition:background-position .4s,transform .15s,box-shadow .2s,filter .2s!important;position:relative;overflow:hidden}
html.ag button[type=submit]:not(.link):not(.lnk):hover{background-position:100% 0!important;transform:translateY(-1px)!important;filter:none!important}
html.ag button[type=submit]:not(.link):not(.lnk):disabled{opacity:.55!important;cursor:not-allowed;transform:none!important}
html.ag button .ag-arw{transition:transform .2s}html.ag button:hover .ag-arw{transform:translateX(3px)}
html.ag button.ag-busy{pointer-events:none}
html.ag button.ag-busy:before{content:"";width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;animation:agSpin .7s linear infinite}
@keyframes agSpin{to{transform:rotate(360deg)}}
html.ag button.link,html.ag button.lnk{background:none!important;border:0!important;box-shadow:none!important;color:var(--ag-c1)!important;font:inherit!important;font-size:12.5px!important;font-weight:600!important;padding:4px 6px!important;width:auto!important;height:auto!important;cursor:pointer;border-radius:8px!important}
html.ag button.link:hover,html.ag button.lnk:hover{background:rgba(217,70,239,.1)!important;transform:none!important}

/* ---------- messages, divider, footer ---------- */
html.ag .err{background:rgba(244,63,94,.12)!important;border:1px solid rgba(251,113,133,.45)!important;color:#fecdd3!important;padding:11px 13px!important;border-radius:12px!important;font-size:13px!important;margin:0 0 16px!important;line-height:1.5}
html.ag .ok,html.ag .notice{background:rgba(52,211,153,.1)!important;border:1px solid rgba(52,211,153,.4)!important;color:#bbf7d0!important;padding:11px 13px!important;border-radius:12px!important;font-size:13px!important;margin:0 0 16px!important;line-height:1.5}
html.ag .g-divider{display:flex;align-items:center;gap:12px;margin:20px 0 16px!important;color:#8B86B8!important;font-size:10.5px!important;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
html.ag .g-divider:before,html.ag .g-divider:after{content:"";flex:1;height:1px;background:linear-gradient(90deg,transparent,rgba(196,181,253,.25),transparent)!important}
html.ag .g-divider span{white-space:nowrap}
html.ag .g-btn-wrap{display:flex;justify-content:center;padding:4px;border-radius:14px;background:rgba(13,8,30,.45);border:1px solid var(--ag-ln)}
html.ag .foot{text-align:center!important;font-size:12.5px!important;color:var(--ag-mu)!important;margin:20px 0 0!important}
html.ag .osf-credit{text-align:center!important;font-size:11px!important;color:rgba(169,164,207,.45)!important;margin-top:6px!important}

/* ---------- 🔢 OTP / verification code ---------- */
html.ag .ag-otp{position:relative;margin:6px 0 20px}
html.ag .ag-otp>input{position:absolute!important;opacity:0!important;pointer-events:none;height:1px!important;width:1px!important}
html.ag .ag-boxes{position:relative;display:flex;justify-content:center;gap:10px;min-height:62px;transition:min-height .5s cubic-bezier(.2,.9,.2,1)}
html.ag .ag-box{width:52px;height:60px;flex:none;border-radius:14px;display:grid;place-items:center;font-size:24px;font-weight:800;color:#fff;cursor:text;user-select:none;
  background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.02));border:1px solid rgba(196,181,253,.22);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 10px 24px -14px rgba(0,0,0,.8);transition:border-color .2s,background .25s,box-shadow .25s,transform .25s;position:relative;z-index:1}
html.ag .ag-box.cur{border-color:rgba(217,70,239,.8);box-shadow:0 0 0 4px rgba(217,70,239,.14),inset 0 1px 0 rgba(255,255,255,.1)}
html.ag .ag-box.cur:after{content:"";position:absolute;width:2px;height:24px;border-radius:2px;background:var(--ag-c2);animation:agBlink 1s steps(1) infinite}
html.ag .ag-box.fill{background:linear-gradient(160deg,rgba(217,70,239,.24),rgba(168,85,247,.08));border-color:rgba(240,171,252,.6);animation:agPop .25s cubic-bezier(.2,1.6,.4,1)}
@keyframes agBlink{50%{opacity:0}}@keyframes agPop{50%{transform:scale(1.08)}}
html.ag .ag-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0;overflow:visible}
html.ag .ag-lines path{fill:none;stroke:url(#agLineG);stroke-width:2.6;stroke-linecap:round;filter:drop-shadow(0 0 6px rgba(217,70,239,.9));stroke-dasharray:60;stroke-dashoffset:60;animation:agDraw .5s ease forwards}
@keyframes agDraw{to{stroke-dashoffset:0}}
html.ag .ag-otp.ag-ok .ag-box{background:linear-gradient(160deg,rgba(52,211,153,.35),rgba(16,185,129,.12));border-color:rgba(110,231,183,.8);box-shadow:0 0 22px -4px rgba(52,211,153,.7)}
html.ag .ag-otp.ag-ok .ag-lines path{stroke:#6ee7b7;filter:drop-shadow(0 0 6px rgba(52,211,153,.9))}
html.ag .ag-otp.ag-bad .ag-box{border-color:rgba(251,113,133,.8);background:rgba(244,63,94,.12);animation:agShake .45s}
@keyframes agShake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
html.ag .ag-merge{position:absolute;left:50%;top:50%;width:78px;height:78px;margin:-39px 0 0 -39px;border-radius:22px;display:grid;place-items:center;z-index:3;
  background:linear-gradient(150deg,#6ee7b7,#10b981);box-shadow:0 0 0 8px rgba(52,211,153,.15),0 20px 40px -12px rgba(16,185,129,.8);animation:agMerge .55s cubic-bezier(.2,1.5,.4,1) both}
html.ag .ag-merge svg{width:34px;height:34px;stroke:#fff;stroke-width:3.4;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:agDraw .45s .3s ease forwards}
@keyframes agMerge{from{transform:scale(.2) rotate(-30deg);opacity:0}}
html.ag .ag-verifying{display:flex;align-items:center;justify-content:center;gap:8px}
/* ✅ verified screen */
html.ag .ag-done{text-align:center;animation:agUp .3s cubic-bezier(.2,.9,.2,1) both}
html.ag .ag-done .ag-badge{width:76px;height:76px;margin:4px auto 16px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#a7f3d0,#10b981 70%);
  box-shadow:0 0 0 10px rgba(52,211,153,.12),0 0 0 22px rgba(52,211,153,.06),0 20px 40px -10px rgba(16,185,129,.8);animation:agMerge .6s cubic-bezier(.2,1.5,.4,1) both}
html.ag .ag-done .ag-badge svg{width:34px;height:34px;stroke:#fff;stroke-width:3.4;fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:40;animation:agDraw .45s .35s ease forwards}
html.ag .ag-done h1{text-align:center!important}
html.ag .ag-done .sub{text-align:center!important}
html.ag .ag-rows{display:grid;gap:8px;margin:0 0 18px;text-align:left}
html.ag .ag-rows div{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:rgba(13,8,30,.45);border:1px solid var(--ag-ln);animation:agUp .45s cubic-bezier(.2,.9,.2,1) both}
html.ag .ag-rows div:nth-child(2){animation-delay:.12s}
html.ag .ag-rows i{font-style:normal;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(217,70,239,.12);font-size:16px}
html.ag .ag-rows b{display:block;font-size:13.5px;color:#fff}html.ag .ag-rows small{display:block;font-size:11.5px;color:var(--ag-mu)}
html.ag .ag-rows em{margin-left:auto;width:22px;height:22px;border-radius:50%;background:#10b981;display:grid;place-items:center;color:#fff;font-style:normal;font-size:12px;font-weight:900}
html.ag body>.c>.b{font-size:24px!important}
html.ag body>.c .sec{background:rgba(217,70,239,.08)!important;border-color:rgba(217,70,239,.4)!important;color:#FBCFE8!important}
html.ag body>.c .codes span{background:rgba(217,70,239,.1)!important}
html.ag body>.c ol{color:#E2DCFA}
html.ag .ag-go{width:100%;height:50px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800;color:#fff!important;background:linear-gradient(95deg,#EC4899,#A855F7 60%,#7C3AED);text-decoration:none!important}

/* 🚀 "Open your free shop" (platform login) */
html.ag .ag-new{margin-top:4px}
html.ag .ag-open{position:relative;display:flex;align-items:center;gap:13px;padding:13px 14px;border-radius:14px;text-decoration:none!important;color:var(--ag-tx)!important;overflow:hidden;
  background:linear-gradient(rgba(20,10,42,.85),rgba(20,10,42,.85)) padding-box,linear-gradient(120deg,#EC4899,#A855F7 55%,#6366F1) border-box;border:1.5px solid transparent;
  box-shadow:0 14px 30px -18px rgba(217,70,239,.8);transition:transform .2s,box-shadow .2s}
html.ag .ag-open:before{content:"";position:absolute;top:0;left:-60%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.12),transparent);transform:skewX(-20deg);animation:agShine 3.6s ease-in-out infinite}
@keyframes agShine{0%,55%{left:-60%}100%{left:130%}}
html.ag .ag-open:hover{transform:translateY(-2px);box-shadow:0 20px 36px -16px rgba(217,70,239,.9);text-decoration:none!important}
html.ag .ag-open-ic{width:42px;height:42px;flex:none;border-radius:12px;display:grid;place-items:center;font-size:20px;background:linear-gradient(135deg,rgba(236,72,153,.3),rgba(139,92,246,.35));box-shadow:inset 0 1px 0 rgba(255,255,255,.2)}
html.ag .ag-open-tx{flex:1;min-width:0}html.ag .ag-open-tx b{display:block;font-size:14.5px;color:#fff;font-weight:800}
html.ag .ag-open-tx small{display:block;font-size:11.5px;color:var(--ag-mu);margin-top:2px;line-height:1.4}
html.ag .ag-open-arw{width:30px;height:30px;flex:none;border-radius:50%;display:grid;place-items:center;font-weight:800;color:#fff;background:linear-gradient(135deg,#EC4899,#8B5CF6);transition:transform .2s}
html.ag .ag-open:hover .ag-open-arw{transform:translateX(3px)}
html.ag .ag-find{display:block;text-align:center;margin-top:12px;font-size:12.5px;font-weight:500!important;color:var(--ag-mu)!important}
html.ag .ag-find b{color:var(--ag-c1);font-weight:700}
@media(max-width:480px){html.ag body{padding:22px 14px}html.ag .card,html.ag body>.c{padding:32px 22px 26px!important}html.ag h1{font-size:24px!important}html.ag .ag-box{width:44px;height:54px;font-size:21px}html.ag .ag-boxes{gap:7px}}
@media(prefers-reduced-motion:reduce){html.ag *{animation-duration:.01s!important;animation-delay:0s!important;transition:none!important}}

/* ⚡ Phones & touch screens: the same look, far lighter to draw. Moving blurred ribbons + a live frosted-glass blur
   re-paint the whole screen on every frame -- that is what made the page open slowly and scroll unevenly on phones. */
html.ag .scene{contain:strict}
html.ag .ag-r1,html.ag .ag-r2,html.ag .ag-r3{will-change:transform}
@media (max-width:900px),(hover:none) and (pointer:coarse){
  html.ag .ag-r1,html.ag .ag-r2,html.ag .ag-r3{animation:none!important;will-change:auto}
  html.ag .scene path[filter]{filter:none!important;opacity:.4}
  html.ag .scene:after{display:none}
  html.ag .card:after,html.ag body>.c:after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;
    background:linear-gradient(160deg,rgba(58,26,92,.96),rgba(18,10,40,.97) 45%,rgba(30,15,58,.96))!important}
  html.ag .card.ag-in{animation-duration:.3s}
  html.ag .card.ag-in>*:not(.agc){animation:none!important}
  html.ag .agc{animation:none!important}
}
@media (prefers-reduced-motion:reduce){
  html.ag *,html.ag *:before,html.ag *:after{animation:none!important;transition-duration:.01ms!important}
}
