/* v3.9 Vanshi sign-in.
   Desktop and tablet: night-blue brand panel (name, tagline, supporting line, floating flute with gold ripples,
   "Hear the vanshi", जय जय श्री राधे) beside an ivory form.
   Phone (≤760px): a light ivory header with a fine gold mandala behind the flute, and the form on a white sheet.
   The screen always uses the light palette, whatever the app theme, so it looks the same for everyone. */
#btLogin.vs{
  --night:#0E1A3A;--gold:#E3BC5C;--goldink:#7A5A10;--ivory:#FAF7F0;
  --panel:#fff;--panel2:#F6F3EC;--ink:#141A2E;--mute:#4F5770;--line:#D9D3C4;--late:#B4231B;--ok:#0F7A4E;--acc:#1B2A5C;--accf:#0E1A3A;
  color-scheme:light;position:fixed;inset:0;z-index:40;display:grid;grid-template-columns:minmax(440px,46%) minmax(0,1fr);
  background:var(--ivory);color:var(--ink);font:15px/1.5 Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow:hidden
}
#btLogin.vs *{box-sizing:border-box}

/* ---------- brand panel ---------- */
.vs-brand{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:clamp(40px,9vh,84px) clamp(36px,4.4vw,64px) 32px;color:#fff;
  background:radial-gradient(520px 380px at 70% 72%,rgb(14 140 130/.20),transparent 70%),radial-gradient(520px 420px at 30% 64%,rgb(217 174 69/.14),transparent 70%),linear-gradient(180deg,#0B1530 0%,#0E1A3A 60%,#13214A 100%)}
.vs-word{font:600 clamp(52px,5.3vw,76px)/1 Cinzel,Georgia,serif;letter-spacing:.14em;color:var(--gold);margin:0}
.vs-rule{display:flex;align-items:center;gap:8px;margin:22px 0 0}.vs-rule::before{content:"";width:40px;height:2px;border-radius:1px;background:var(--gold)}.vs-rule::after{content:"";width:6px;height:6px;transform:rotate(45deg);background:var(--gold)}
.vs-brand h1{margin:22px 0 0;font:500 clamp(30px,2.7vw,38px)/1.15 Fraunces,Georgia,serif;letter-spacing:-.015em;color:#fff}
.vs-brand h1 em{color:var(--gold);font-style:italic}
.vs-line{margin:16px 0 0;max-width:470px;font:400 clamp(18px,1.5vw,21px)/1.45 Kalam,"Comic Neue",cursive;color:#DCE1EE}
.vs-art{position:relative;flex:1 1 auto;min-height:150px;display:grid;place-items:center}
.vs-artin{position:relative;width:min(400px,80%)}
.vs-flute{display:block;width:100%;height:auto;filter:drop-shadow(0 18px 26px rgb(0 0 0/.45));animation:vsfloat 7s ease-in-out infinite}
.vs-mandala{display:none}
.vs-ring{position:absolute;left:80%;top:72%;width:300px;height:300px;border-radius:50%;border:1.2px solid rgb(217 174 69/.55);opacity:0;transform:translate(-50%,-50%) scale(.45);animation:vsripple 5.4s cubic-bezier(.2,.6,.3,1) infinite both;pointer-events:none}
.vs-ring.r2{animation-delay:1.8s}.vs-ring.r3{animation-delay:3.6s}
.vs-playing .vs-ring{animation-duration:2.4s}.vs-playing .vs-ring.r2{animation-delay:.8s}.vs-playing .vs-ring.r3{animation-delay:1.6s}
.vs-playing .vs-flute{animation-duration:3.5s}
@keyframes vsfloat{0%,100%{transform:translate(0,0) rotate(0)}50%{transform:translate(0,-8px) rotate(-1.2deg)}}
@keyframes vsripple{0%{opacity:0;transform:translate(-50%,-50%) scale(.45)}15%{opacity:.85}100%{opacity:0;transform:translate(-50%,-50%) scale(1.15)}}

/* "Hear the vanshi": plays a short licensed recording on tap only; never autoplays */
.vs-hearrow{display:flex;justify-content:center;margin:6px 0 0}
.vs-hear{display:inline-flex;align-items:center;gap:12px;padding:7px 22px 7px 7px;border:0;border-radius:999px;background:rgb(255 255 255/.05);box-shadow:inset 0 0 0 1px rgb(227 188 92/.32);color:#fff;font:inherit;cursor:pointer;text-align:left;transition:background .15s}
.vs-hear:hover{background:rgb(255 255 255/.09)}
.vs-hear:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
.vs-disc{position:relative;flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:rgb(227 188 92/.10);box-shadow:inset 0 0 0 1.5px var(--gold)}
.vs-disc svg.ip,.vs-disc svg.ipa{width:17px;height:17px;fill:var(--gold)}.vs-disc svg.ip{margin-left:3px}.vs-disc svg.ipa{display:none}
.vs-playing .vs-disc{background:var(--gold)}.vs-playing .vs-disc svg.ip{display:none}.vs-playing .vs-disc svg.ipa{display:block;fill:var(--night)}
.vs-prog{position:absolute;inset:-5px;width:calc(100% + 10px);height:calc(100% + 10px);transform:rotate(-90deg);pointer-events:none}
.vs-prog circle{fill:none;stroke:#F6D88A;stroke-width:2.2;stroke-linecap:round;stroke-dasharray:176;stroke-dashoffset:176;opacity:0;transition:stroke-dashoffset .25s linear}
.vs-playing .vs-prog circle{opacity:1}
.vs-hear b{display:block;font-size:14px;font-weight:600;line-height:1.25}
.vs-hear small{display:block;font-size:12px;color:#AEB7D3;line-height:1.3;margin-top:1px}

.vs-foot{display:flex;flex-direction:column;align-items:center;gap:8px;margin-top:22px}
.vs-mantra{display:flex;align-items:center;gap:16px;font:500 20px/1.2 "Noto Sans Devanagari",sans-serif;color:#D9AE45;letter-spacing:.02em}
.vs-mantra::before,.vs-mantra::after{content:"";width:72px;height:1px;background:linear-gradient(90deg,transparent,#D9AE45)}.vs-mantra::after{background:linear-gradient(90deg,#D9AE45,transparent)}
.vs-bless{font-size:12px;color:#8E97B5;letter-spacing:.04em}
.vs-foot.m{display:none}

/* ---------- form side ---------- */
.vs-formside{position:relative;display:flex;flex-direction:column;overflow-y:auto;background:var(--ivory)}
.vs-formwrap{flex:1;display:grid;place-items:center;padding:48px 32px}
#btLogin.vs .lgform{width:min(380px,100%);max-width:none;padding:0;display:flex;flex-direction:column;gap:16px;justify-self:center}
#btLogin.vs .lgform::before{content:"";width:28px;height:2px;border-radius:1px;background:#D9AE45;margin-bottom:4px}
#btLogin.vs .lgform h2{margin:0;font:500 34px/1.15 Fraunces,Georgia,serif;letter-spacing:-.02em;color:var(--ink)}
#btLogin.vs .lgform .meta{margin:-8px 0 4px;color:var(--mute);font-size:14.5px;font-weight:400}
#btLogin.vs .lgform label{display:flex;flex-direction:column;gap:7px;font-size:13.5px;font-weight:600;color:var(--ink)}
#btLogin.vs .vs-fld{display:flex;flex-direction:column;gap:7px}
#btLogin.vs .vs-lrow{display:flex;justify-content:space-between;align-items:baseline}
#btLogin.vs .f{min-height:46px;width:100%;border:0;border-radius:10px;background:#fff;box-shadow:inset 0 0 0 1px #7E8398;padding:10px 14px;font:400 16px Inter,system-ui,sans-serif;color:var(--ink)}
#btLogin.vs .f:focus{outline:0;box-shadow:inset 0 0 0 1.5px var(--night),0 0 0 4px rgb(217 174 69/.40)}
#btLogin.vs .btn.pri{min-height:48px;border-radius:10px;border:0;background:var(--night);color:#fff;font:600 15px Inter,system-ui,sans-serif;box-shadow:0 2px 4px rgb(14 26 58/.18);cursor:pointer}
#btLogin.vs .btn.pri:hover{filter:brightness(1.12)}#btLogin.vs .btn.pri:disabled{opacity:.6;cursor:default}
#btLogin.vs .lglink{background:none;border:0;padding:12px 6px;margin:-12px -6px;font:600 13.5px Inter,system-ui,sans-serif;color:#1B2A5C;text-decoration:underline;text-decoration-color:rgb(217 174 69/.85);text-decoration-thickness:1.5px;text-underline-offset:3px;cursor:pointer;align-self:flex-start}
#btLogin.vs .lgerr{margin:0;min-height:0;color:#7E1A14;font-weight:500;font-size:14px}
#btLogin.vs .lgerr:not(:empty){background:#FDEDEB;border-radius:10px;padding:11px 14px}
#btLogin.vs .lgerr.vs-okmsg:not(:empty){background:#EEF1F7;color:#1B2A5C}
#btLogin.vs .vs-hint{margin:2px 0 0;text-align:center;font-size:13px;color:#5F6780}
.vs-legal{display:flex;justify-content:flex-end;gap:8px;align-items:center;padding:22px 52px;font-size:12.5px;color:#5F6780}
.vs-legal svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.75}

/* ---------- phone: ivory and gold ---------- */
@media (max-width:760px){
  #btLogin.vs{display:block;overflow-y:auto;background:#F1E6CD}
  .vs-brand{align-items:center;text-align:center;padding:28px 24px 56px;color:var(--ink);
    background:radial-gradient(360px 300px at 50% 90px,#FFFDF7 0%,#F8F1E1 60%,#F1E6CD 100%)}
  .vs-art{order:-1;flex:none;min-height:0;width:100%;height:176px}
  .vs-artin{width:184px}
  .vs-mandala{display:block;position:absolute;left:50%;top:50%;width:176px;height:176px;transform:translate(-50%,-50%);pointer-events:none}
  .vs-flute{filter:drop-shadow(0 12px 16px rgb(120 80 20/.28))}
  .vs-ring{left:50%;top:50%;width:136px;height:136px;border-color:rgb(185 138 44/.45)}
  .vs-word{margin-top:12px;font-size:40px;letter-spacing:.16em;padding-left:.16em;background:linear-gradient(180deg,#B88520 0%,#7E5A0E 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
  .vs-rule{display:none}
  .vs-brand h1{margin-top:18px;font-size:20px;font-weight:400;color:var(--ink)}
  .vs-brand h1 em{color:#86600F}
  .vs-line{margin-top:10px;max-width:340px;font-size:15px;color:#5F5848}
  .vs-hearrow{margin-top:20px}
  .vs-hear{padding:5px 18px 5px 5px;background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px rgb(185 138 44/.45),0 4px 14px rgb(120 90 20/.10)}
  .vs-hear:hover{background:#FFFDF7}
  .vs-disc{width:32px;height:32px;background:transparent;box-shadow:inset 0 0 0 1.5px #B98A2C}
  .vs-disc svg.ip,.vs-disc svg.ipa{width:15px;height:15px;fill:#B98A2C}
  .vs-playing .vs-disc{background:#B98A2C}.vs-playing .vs-disc svg.ipa{fill:#fff}
  .vs-prog circle{stroke:#B98A2C}
  .vs-hear b{font-size:13.5px}.vs-hear small{font-size:11px;color:#6B6455}
  .vs-brand .vs-foot{display:none}
  .vs-formside{overflow:visible;margin-top:-28px;border-radius:28px 28px 0 0;background:#fff;box-shadow:0 -1px 0 rgb(185 138 44/.18),0 -12px 30px rgb(120 90 20/.10)}
  .vs-formwrap{padding:26px 24px 8px;place-items:stretch}
  #btLogin.vs .lgform{width:100%;gap:14px}
  #btLogin.vs .lgform::before{display:none}
  #btLogin.vs .lgform h2{font-size:24px}
  #btLogin.vs .lgform .meta{margin:-6px 0 6px;font-size:14px}
  #btLogin.vs .f{min-height:48px}
  #btLogin.vs .btn.pri{min-height:50px}
  .vs-foot.m{display:flex;margin:40px 0 0;padding:0 24px max(30px,env(safe-area-inset-bottom))}
  .vs-foot.m .vs-mantra{font-size:17px;color:var(--goldink)}.vs-foot.m .vs-mantra::before,.vs-foot.m .vs-mantra::after{width:44px;background:linear-gradient(90deg,transparent,#C9A443)}.vs-foot.m .vs-mantra::after{background:linear-gradient(90deg,#C9A443,transparent)}
  .vs-foot.m .vs-bless{color:#686E7E;letter-spacing:.03em;margin-top:2px}
  .vs-legal{justify-content:center;padding:14px 24px 0}
}
@media (max-width:760px) and (max-height:600px){.vs-art{height:140px}.vs-artin{width:150px}}
/* short desktop windows: let the panel scroll instead of crushing the flute */
@media (min-width:761px) and (max-height:700px){.vs-brand{overflow-y:auto}.vs-art{min-height:140px}}
@media (prefers-reduced-motion:reduce){.vs-flute,.vs-ring{animation:none!important}.vs-ring{opacity:.22;transform:translate(-50%,-50%) scale(1)}}
