/* ============================================================
   GYAANSHALA — STANDALONE AUTH (login.php / auth.php, Task 9)
   Ported from the SPLIT-SCREEN AUTH section of
   docs/design/artifacts/gyaanshala-login-signup.html.

   auth.php is a COMPLETE document — it skips includes_top.php entirely,
   so none of the legacy Bootstrap/theme bundle is on this page. Unlike
   every other gs-page-*.css file (which only need their page-unique
   rules because gs-brand.css + the legacy bundle are already loaded by
   includes_top.php), this file also carries the FORM PRIMITIVES
   (.field/.input/.row-2/.check/.pwwrap/.meter) that the artifact's shared
   "forms" block defines — nothing else on this page will provide them.

   SCOPED UNDER .gsx, same convention as every other gs-page-*.css file:
   every top-level selector starts with `.gsx`. The tokens, .btn family,
   .eyebrow, .deva and .badge live in gs-brand.css, already linked by
   auth.php itself.
   ============================================================ */

.gsx-auth{min-height:100vh;background:var(--white)}

/* ---------- split layout ---------- */
.gsx .auth{display:grid;grid-template-columns:1.02fr 1fr;min-height:100vh}
@media(max-width:960px){.gsx .auth{grid-template-columns:1fr;min-height:0}}

/* left brand panel */
.gsx .aside-brand{
  background:var(--ink);color:#fff;position:relative;overflow:hidden;
  padding:44px 52px;display:flex;flex-direction:column;
}
.gsx .aside-brand::before{
  content:"";position:absolute;inset:0;background-image:var(--booti);
  background-size:64px 64px;opacity:.16;
}
.gsx .aside-brand::after{
  content:"";position:absolute;left:-10%;top:-20%;width:820px;height:820px;
  background:radial-gradient(circle,rgba(38,64,126,.85) 0%,rgba(16,26,51,0) 62%);pointer-events:none;
}
.gsx .aside-brand>*{position:relative;z-index:2}
@media(max-width:960px){.gsx .aside-brand{padding:34px 26px 40px}}

.gsx .ab-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gsx .ab-top .brand{display:flex;align-items:center}
.gsx .ab-top .brand img{height:34px;width:auto}
.gsx .ab-back{font-size:13.5px;color:rgba(255,255,255,.65);font-weight:650}
.gsx .ab-back:hover{color:var(--haldi-soft)}

.gsx .ab-mid{margin:auto 0;padding:56px 0}
@media(max-width:960px){.gsx .ab-mid{margin:0;padding:34px 0 0}}
.gsx .ab-mid h2{color:#fff;font-size:clamp(30px,3.5vw,44px);letter-spacing:-.042em;margin-top:16px}
.gsx .ab-mid h2 em{font-style:normal;color:var(--haldi)}
.gsx .ab-mid p{margin-top:18px;color:rgba(255,255,255,.75);font-size:16.5px;max-width:40ch}
.gsx .ab-list{list-style:none;padding:0;margin:30px 0 0;display:grid;gap:13px}
.gsx .ab-list li{display:flex;gap:13px;align-items:flex-start;font-size:15.5px;color:rgba(255,255,255,.85);line-height:1.45}
.gsx .ab-list li b{
  flex:none;width:26px;height:26px;border-radius:8px;background:var(--haldi);color:var(--ink);
  display:grid;place-items:center;font-size:13px;font-style:normal;
}

.gsx .ab-quote{border-left:2.5px solid var(--haldi);padding-left:20px;margin-top:auto}
@media(max-width:960px){.gsx .ab-quote{margin-top:34px}}
.gsx .ab-quote blockquote{
  margin:0;font-family:var(--display);font-weight:600;font-size:18.5px;
  line-height:1.42;letter-spacing:-.02em;color:#fff;
}
.gsx .ab-quote figcaption{margin-top:12px;font-size:13.5px;color:rgba(255,255,255,.6)}

/* right form panel */
.gsx .aside-form{display:flex;align-items:center;justify-content:center;padding:56px 40px}
@media(max-width:960px){.gsx .aside-form{padding:40px 24px 56px}}
.gsx .formbox{width:min(100%,430px)}
.gsx .formbox>h1{font-size:clamp(28px,3.4vw,36px);letter-spacing:-.04em}
.gsx .formbox .lead{margin-top:12px;color:var(--ink-2);opacity:.82;font-size:15.5px}

/* login / sign up switch — real links to login and sign_up, not a JS swap */
.gsx .tabs{display:flex;gap:4px;background:var(--paper-2);border-radius:100px;padding:4px;margin:26px 0 28px}
.gsx .tab{flex:1;padding:11px;border-radius:100px;font-weight:700;font-size:15px;transition:.16s;text-align:center}
.gsx .tab[aria-selected="true"]{background:var(--ink);color:#fff}
.gsx .tab:hover:not([aria-selected="true"]){background:rgba(16,26,51,.06)}

/* flash / server-side messages */
.gsx .gs-flash{
  border-radius:var(--r-m);padding:13px 16px;margin-bottom:20px;font-size:14px;font-weight:600;
  line-height:1.5;border:1.4px solid transparent;
}
.gsx .gs-flash-ok{background:var(--neem-wash);border-color:var(--neem);color:var(--neem)}
.gsx .gs-flash-info{background:var(--haldi-wash);border-color:var(--haldi);color:#8a5f00}
.gsx .gs-flash-error{background:#fbebee;border-color:var(--rose);color:var(--rose)}

/* ---------- form primitives (this page's own copy — nothing else loads them) ---------- */
.gsx .field{margin-bottom:18px}
.gsx .field:last-child{margin-bottom:0}
.gsx .field label{display:block;font-size:13.5px;font-weight:700;margin-bottom:8px;letter-spacing:-.01em}
.gsx .field .hint{font-size:12.5px;color:var(--ink-2);opacity:.65;margin-top:7px;line-height:1.45}
.gsx .field .err{display:none;color:var(--rose);font-size:12.5px;margin-top:7px;font-weight:600}
.gsx .field.is-invalid .err{display:block}
.gsx .field.is-invalid .input{border-color:var(--rose);background:#fdf1f4}

.gsx .input,.gsx select.input,.gsx textarea.input{
  width:100%;background:var(--white);border:1.5px solid var(--line-strong);
  border-radius:var(--r-m);padding:14px 16px;font:inherit;font-size:15.5px;color:var(--ink);transition:.16s;
}
.gsx textarea.input{resize:vertical;min-height:96px}
.gsx input[type=file].input{padding:11px 14px}
.gsx .input::placeholder,.gsx textarea.input::placeholder{color:rgba(16,26,51,.38)}
.gsx .input:hover{border-color:rgba(16,26,51,.4)}
.gsx .input:focus{outline:0;border-color:var(--indigo);box-shadow:0 0 0 4px rgba(38,64,126,.13)}
.gsx select.input{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23101A33' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 16px center;padding-right:42px;
}
.gsx .row-2{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
@media(max-width:560px){.gsx .row-2{grid-template-columns:1fr}}
.gsx .check{display:flex;gap:11px;align-items:flex-start;font-size:14.5px;line-height:1.5;cursor:pointer}
.gsx .check input{width:19px;height:19px;margin:2px 0 0;accent-color:var(--indigo);flex:none}

/* password field with a show/hide toggle */
.gsx .pwwrap{position:relative}
.gsx .pwwrap .input{padding-right:64px}
.gsx .pwtoggle{
  position:absolute;right:6px;top:50%;transform:translateY(-50%);padding:8px 12px;
  font-size:13px;font-weight:700;color:var(--indigo);border-radius:100px;
}
.gsx .pwtoggle:hover{background:var(--paper-2)}

/* signup password strength meter — decorative aid only, nothing is sent */
.gsx .meter{display:flex;gap:5px;margin-top:10px}
.gsx .meter i{flex:1;height:4px;border-radius:100px;background:var(--paper-2)}
.gsx .meter i.on{background:var(--neem)}
.gsx .meter-lbl{font-size:12.5px;color:var(--ink-2);opacity:.7;margin-top:7px}

.gsx .formrow{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:22px}
.gsx .link{font-size:14px;font-weight:700;color:var(--indigo);text-decoration:underline;text-underline-offset:3px}

.gsx .swap{margin-top:24px;text-align:center;font-size:14.5px;color:var(--ink-2)}
.gsx .swap a{font-weight:700;color:var(--indigo);text-decoration:underline;text-underline-offset:3px}

.gsx .legal{
  margin-top:26px;padding-top:20px;border-top:1px solid var(--line);
  font-size:12.5px;color:var(--ink-2);opacity:.7;line-height:1.55;
}
.gsx .legal a{text-decoration:underline;text-underline-offset:2px}

.gsx .or{
  display:flex;align-items:center;gap:16px;margin:22px 0;color:var(--ink-2);opacity:.55;font-size:13px;
  font-weight:650;letter-spacing:.08em;text-transform:uppercase;
}
.gsx .or::before,.gsx .or::after{content:"";flex:1;height:1px;background:var(--line)}
.gsx .social{margin-top:4px;text-align:center}
.gsx .g-recaptcha{margin:16px 0}

/* instructor application toggle (signup only) */
.gsx .instr-toggle{
  display:flex;align-items:center;gap:12px;background:var(--paper-2);border:1.4px solid var(--line);
  border-radius:var(--r-m);padding:14px 16px;margin:6px 0 18px;
}
.gsx .instr-switch{position:relative;display:inline-block;width:44px;height:24px;flex:0 0 auto}
.gsx .instr-switch input{opacity:0;width:0;height:0}
.gsx .instr-slider{position:absolute;inset:0;background:#cbd2dd;border-radius:24px;transition:.2s;cursor:pointer}
.gsx .instr-slider::before{
  content:"";position:absolute;height:18px;width:18px;left:3px;top:3px;background:#fff;
  border-radius:50%;transition:.2s;box-shadow:0 1px 3px rgba(0,0,0,.2);
}
.gsx .instr-switch input:checked+.instr-slider{background:var(--neem)}
.gsx .instr-switch input:checked+.instr-slider::before{transform:translateX(20px)}
.gsx .instr-toggle label{margin:0;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.gsx .instr-note{font-size:12.5px;color:var(--ink-2);opacity:.75;margin:0 0 14px;padding-left:2px}
.gsx #become-instructor-fields{border-left:3px solid var(--neem);padding-left:16px;margin-top:8px}

/* ---------- Mobile OTP — ported from login.php's own tab markup ----------
   Same element ids the sibling's JS binds to (gs-tab-email/gs-tab-mobile/
   gs-pane-email/gs-pane-mobile/gs-send-otp/gs-otp/gs-verify-otp/gs-resend/
   gs-timer/gs-otp-msg/gs-phone) and the same request/verify mechanism —
   restyled colours/spacing only, no logic changed. */
.gsx .gs-authtabs{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;background:var(--paper-2);
  border-radius:100px;padding:4px;margin:0 0 22px;
}
.gsx .gs-authtab{
  border:0;background:transparent;border-radius:100px;padding:11px 10px;
  font-weight:700;font-size:14px;color:var(--ink-2);cursor:pointer;transition:all .15s ease;
}
.gsx .gs-authtab i{margin-right:6px}
.gsx .gs-authtab.is-on{background:var(--ink);color:#fff}
.gsx .gs-authtab:hover:not(.is-on){color:var(--ink)}
.gsx .gs-pane[hidden]{display:none}
.gsx .phone-wrap{position:relative}
.gsx .phone-wrap .cc{
  position:absolute;left:16px;top:50%;transform:translateY(-50%);font-weight:700;
  color:var(--ink-2);font-size:15.5px;pointer-events:none;
}
.gsx .phone-wrap .input{padding-left:54px}
.gsx .otp-input{letter-spacing:6px;font-weight:700;text-align:center}
.gsx .gs-otp-msg{font-size:13px;margin-top:12px;text-align:center;min-height:18px}
.gsx .gs-resend[data-locked="1"]{pointer-events:none;opacity:.5}

/* Phone (2026-09-03, operator): the form IS the page — no headline, no lead,
   no OTP explainer. The Log in / Sign up tabs and the Email / Mobile OTP tabs
   carry all the orientation a phone screen needs. */
@media(max-width:600px){
  .gsx .formbox>h1{display:none}
  .gsx .formbox>.lead{display:none}
  .gsx .gs-otp-intro{display:none}
  .gsx .aside-form{padding:22px 18px 40px}
  .gsx .aside-brand{padding:16px 18px}
  .gsx .ab-mid,.gsx .ab-quote{display:none}   /* dark panel: logo + back link only */
}
