/* Edusmart AI Virtual Lab — sign-in page. © Edusmart AI Solutions Pvt Ltd. All rights reserved. */
@font-face{font-family:'Outfit';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/outfit-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Outfit';font-style:normal;font-weight:400 800;font-display:swap;src:url(../fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrainsmono-500-latin.woff2) format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{--blue:#1a5cff;--blue-d:#0f4ae0;--orange:#ff8a1f;--coral:#ff5a3c;--ink:#0d1530;--muted:#5a6480;--line:#dde3ef;--panel:#f6f8fc}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:#fff;font-family:'Outfit',system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
a{color:var(--blue);text-decoration:none}a:hover{color:#ff6a2b}
input::placeholder{color:#9aa3b8}
@keyframes fl{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes fl2{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(8px) rotate(3deg)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes bub{0%{transform:translateY(0);opacity:0}20%{opacity:1}100%{transform:translateY(-70px);opacity:0}}
@keyframes orb{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.lg-art *{animation:none!important}}

.lg{min-height:100vh;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,460px),1fr));background:#fff}

/* left: illustration */
.lg-hero{position:relative;display:flex;align-items:center;justify-content:center;padding:32px;overflow:hidden;
  background:radial-gradient(circle at 1px 1px,#e6eaf3 1px,transparent 0) 0 0/22px 22px}
.lg-tag{position:absolute;top:36px;left:40px;display:flex;flex-direction:column;gap:6px;z-index:1}
.lg-kicker{font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px;font-weight:500;letter-spacing:.14em;color:#ff6a2b;text-transform:uppercase}
.lg-head{font-size:30px;font-weight:700;line-height:1.1;max-width:420px;text-wrap:pretty;margin:0}
.lg-art{width:100%;max-width:720px;height:auto;margin-top:70px;overflow:visible}

/* right: sign-in */
.lg-panel{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center;padding:40px 24px;background:var(--panel)}
.lg-col{position:relative;width:100%;max-width:420px;display:flex;flex-direction:column;gap:28px}
.lg-brand{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px}
.lg-logo{width:120px;height:120px;border-radius:30px;background:#05070d;overflow:hidden;flex-shrink:0;
  box-shadow:0 0 0 4px #fff,0 0 0 6px rgba(255,138,31,.55),0 12px 36px rgba(26,92,255,.45),0 0 48px rgba(255,138,31,.35)}
.lg-logo img{width:208px;height:208px;margin:-16px 0 0 -44px;display:block}
.lg-name{display:flex;flex-direction:column;align-items:center;gap:6px}
.lg-word{font-size:42px;font-weight:800;letter-spacing:-.01em;line-height:1;margin:0}
.lg-word .b{color:var(--blue)}.lg-word .o{color:var(--coral)}
.lg-sub{display:flex;align-items:center;gap:10px;font-size:15px;letter-spacing:.32em;text-transform:uppercase;color:var(--blue);font-weight:600}
.lg-sub i{width:28px;height:2px;background:var(--orange)}.lg-sub i+i,.lg-sub i:last-child{background:var(--blue)}

.lg-card{background:#fff;border-radius:20px;padding:32px;box-shadow:0 1px 2px rgba(13,21,48,.06),0 20px 50px rgba(13,21,48,.08);display:flex;flex-direction:column;gap:20px}
.lg-hello{display:flex;flex-direction:column;gap:6px}
.lg-hello h1{margin:0;font-size:28px;font-weight:700;letter-spacing:-.01em}
.lg-hello p{margin:0;color:var(--muted);font-size:15px}
.lg-form{display:flex;flex-direction:column;gap:16px;margin:0}
.lg-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500}
.lg-input{box-sizing:content-box;height:48px;border:1.5px solid var(--line);border-radius:12px;padding:0 14px;font:inherit;font-size:15px;font-weight:400;outline:none;background:#fff;color:var(--ink);min-width:0}
.lg-input:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(26,92,255,.12)}
.lg-input[aria-invalid=true]{border-color:#d9381e}
.lg-pw{position:relative;display:flex}
.lg-pw .lg-input{flex:1;padding-right:64px}
.lg-show{position:absolute;right:6px;top:6px;height:36px;padding:0 10px;border:0;background:transparent;color:var(--blue);font:inherit;font-weight:600;font-size:13px;cursor:pointer;border-radius:8px}
.lg-show:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.lg-row{display:flex;justify-content:space-between;align-items:center;font-size:14px;gap:12px;flex-wrap:wrap}
.lg-check{display:flex;align-items:center;gap:8px;color:var(--muted);cursor:pointer}
.lg-check input{width:18px;height:18px;accent-color:var(--blue);margin:0}
.lg-row a{font-weight:600}
.lg-msg{font-size:14px;color:#d9381e;background:#fff1ee;border-radius:10px;padding:10px 12px;margin:0}
.lg-msg.ok{color:#0f7a4b;background:#eaf8f1}
.lg-msg.info{color:#1a3f99;background:#edf2ff}
.lg-help{font-size:14px;color:var(--muted);background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;line-height:1.5}
.lg-help b{color:var(--ink)}
.lg-help[hidden]{display:none}
.lg-help:target{display:block}
.lg-btn{height:52px;border:0;border-radius:12px;background:var(--blue);color:#fff;font:inherit;font-size:16px;font-weight:600;cursor:pointer;box-shadow:0 10px 24px rgba(26,92,255,.3)}
.lg-btn:hover{background:var(--blue-d)}
.lg-btn:focus-visible{outline:3px solid rgba(26,92,255,.35);outline-offset:2px}
.lg-btn[disabled]{opacity:.85;cursor:progress}

/* branded school link: school logo top-left of the panel */
.lg-school{position:absolute;top:20px;left:24px;display:flex;align-items:center;gap:10px;max-width:calc(100% - 48px);z-index:1}
.lg-school .sl{width:44px;height:44px;border-radius:10px;object-fit:contain;background:#fff;border:1px solid var(--line);padding:3px;flex:none}
.lg-school .mono{display:grid;place-items:center;background:linear-gradient(135deg,#0f9d9a,#1a3a6b);color:#fff;font-weight:700;border:0;padding:0}
.lg-school b{font-size:15px;font-weight:600;overflow-wrap:anywhere;line-height:1.2}


/* footer sits in the flow (never covers the card); an equal spacer above keeps the card exactly centred as in the design */
.lg-panel{flex-direction:column;justify-content:flex-start}
.lg-col{margin:auto 0}
.lg-foot{flex:0 0 auto;width:100%;max-width:420px;padding-top:24px;margin:0;text-align:center;font-size:12.5px;color:var(--muted);line-height:1.4}
@media(min-width:920px){
  .lg-panel::before{content:'';flex:0 0 44px}
  .lg-foot{max-width:none;min-height:44px;padding-top:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
}

.lg-foot a{font-weight:600}

@media(max-width:919px){.lg-panel.branded{padding-top:88px}}

/* v1.4 — desktop: the sign-in card sits exactly in the vertical middle of the panel;
   the brand fills the space above it and the footer the space below (grid 1fr | card | 1fr). */
@media(min-width:920px){
  .lg-panel{display:grid;grid-template-rows:minmax(0,1fr) auto minmax(0,1fr);justify-items:center;align-items:stretch;padding:0 24px;min-height:100vh;box-sizing:border-box}
  .lg-panel::before{content:none}
  .lg-col{display:contents}
  .lg-brand{grid-row:1;align-self:end;width:100%;max-width:420px;margin:24px 0 28px}
  .lg-card{grid-row:2;width:100%;max-width:420px;box-sizing:border-box}
  .lg-foot{grid-row:3;align-self:end;padding:24px 0 16px;min-height:0}
  .lg-panel.branded .lg-brand{margin-top:72px}
  /* the illustration never makes the page taller than the screen, so the card stays in the screen's middle */
  .lg{grid-template-rows:minmax(100vh,auto)}
  .lg-hero{max-height:100vh;box-sizing:border-box}
  .lg-art{max-height:calc(100vh - 170px);width:auto;max-width:100%}
}
/* laptop heights: brand becomes one compact row and the card tightens, so card + brand + footer fit without scrolling */
@media(min-width:920px) and (max-height:920px){
  .lg-brand{flex-direction:row;justify-content:center;gap:14px;margin:16px 0 20px}
  .lg-logo{width:56px;height:56px;border-radius:15px;box-shadow:0 0 0 3px #fff,0 0 0 4px rgba(255,138,31,.55),0 8px 20px rgba(26,92,255,.35)}
  .lg-logo img{width:97px;height:97px;margin:-7px 0 0 -20px}
  .lg-name{align-items:flex-start;gap:4px}
  .lg-word{font-size:30px}
  .lg-sub{font-size:11px;letter-spacing:.26em;gap:8px}.lg-sub i{width:18px}
  .lg-card{padding:26px 28px;gap:16px}
  .lg-hello h1{font-size:24px}.lg-hello p{font-size:14px}
  .lg-form{gap:13px}
  .lg-input{height:44px}
  .lg-btn{height:48px}
  .lg-panel.branded .lg-brand{margin-top:64px}
  .lg-school{top:14px}
}
/* school link on screens up to 1000px tall: compact brand as well, so the school logo row fits above it */
@media(min-width:920px) and (max-height:1000px){
  .lg-panel.branded .lg-brand{flex-direction:row;justify-content:center;gap:14px;margin-bottom:20px}
  .lg-panel.branded .lg-logo{width:56px;height:56px;border-radius:15px;box-shadow:0 0 0 3px #fff,0 0 0 4px rgba(255,138,31,.55),0 8px 20px rgba(26,92,255,.35)}
  .lg-panel.branded .lg-logo img{width:97px;height:97px;margin:-7px 0 0 -20px}
  .lg-panel.branded .lg-name{align-items:flex-start;gap:4px}
  .lg-panel.branded .lg-word{font-size:30px}
  .lg-panel.branded .lg-sub{font-size:11px;letter-spacing:.26em;gap:8px}
  .lg-panel.branded .lg-sub i{width:18px}
}
@media(min-width:920px) and (max-height:640px){
  .lg-brand{margin:10px 0 14px}
  .lg-card{padding:20px 24px;gap:12px}
  .lg-hello h1{font-size:22px}
  .lg-form{gap:10px}
  .lg-input{height:40px}.lg-show{top:4px}
  .lg-btn{height:44px}
  .lg-foot{padding:14px 0 10px}
  .lg-panel.branded .lg-brand{margin-top:70px}
}
