/* ================================================================
   auth.css — Gyan नीति Academy ERP
   Login & register pages only
================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Noto+Sans+Devanagari:wght@700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100vh; font-family: 'Poppins', sans-serif; -webkit-font-smoothing: antialiased; }

/* ── Split layout ─────────────────────────────────────────────── */
.auth-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  min-height: 100vh;
  background: #07071a;
}

/* ── Left panel ───────────────────────────────────────────────── */
.auth-left {
  background: linear-gradient(150deg,#060618 0%,#0c0930 40%,#130d40 70%,#0a1230 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 52px 56px; position: relative; overflow: hidden;
}
.auth-left-dots {
  position: absolute; inset: 0; pointer-events: none; opacity: .035;
  background-image:
    linear-gradient(rgba(180,180,255,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180,180,255,1) 1px, transparent 1px);
  background-size: 52px 52px;
}
.auth-left::before {
  content: ''; position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(120,100,255,.14) 0%, transparent 65%);
  top: -200px; right: -200px; pointer-events: none;
}
.auth-left::after {
  content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,150,50,.08) 0%, transparent 65%);
  bottom: -100px; left: -80px; pointer-events: none;
}

/* ── Brand ────────────────────────────────────────────────────── */
.auth-brand {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 52px; position: relative; z-index: 1;
}
.auth-brand-logo { height: 46px; object-fit: contain; }
.auth-brand-icon {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  background: linear-gradient(135deg,#4F46E5,#7C3AED);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800; color: #fff;
  box-shadow: 0 6px 20px rgba(79,70,229,.5);
}
.auth-brand-words { line-height: 1.1; }

/* ─── CRITICAL: solid color, NOT gradient clip ─── */
.auth-brand-name {
  display: flex; align-items: baseline; gap: 3px;
  font-size: 1.9rem; font-weight: 800; line-height: 1;
}
.auth-gyan {
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em;
  color: #FFD700;   /* solid gold — always visible */
  text-shadow: 0 0 20px rgba(255,215,0,.35), 0 2px 4px rgba(0,0,0,.3);
}
.auth-niti {
  font-family: 'Noto Sans Devanagari', sans-serif;
  font-size: 1.7rem; font-weight: 800;
  color: #FFC200;   /* solid amber-gold — always visible */
  text-shadow: 0 0 20px rgba(255,194,0,.35), 0 2px 4px rgba(0,0,0,.3);
}
.auth-brand-tag {
  font-size: .62rem; color: rgba(200,180,80,.5);
  letter-spacing: .1em; text-transform: uppercase; margin-top: 4px;
}

/* ── Headline ─────────────────────────────────────────────────── */
.auth-headline {
  position: relative; z-index: 1;
  font-size: 2.5rem; font-weight: 800; line-height: 1.12; letter-spacing: -.03em; margin-bottom: 14px;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.auth-subline {
  position: relative; z-index: 1;
  font-size: .88rem; color: rgba(165,180,252,.5); line-height: 1.65; max-width: 380px;
}

/* ── Features ─────────────────────────────────────────────────── */
.auth-features { margin-top: 44px; display: flex; flex-direction: column; gap: 11px; position: relative; z-index: 1; }
.auth-feat {
  display: flex; align-items: center; gap: 13px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(165,180,252,.07);
  border-radius: 12px; padding: 11px 15px;
}
.auth-feat-ico { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: .82rem; flex-shrink: 0; color: #fff; }
.fi1 { background: linear-gradient(135deg,#4338CA,#7C3AED); }
.fi2 { background: linear-gradient(135deg,#047857,#10B981); }
.fi3 { background: linear-gradient(135deg,#B45309,#F59E0B); }
.fi4 { background: linear-gradient(135deg,#0E7490,#06B6D4); }
.auth-feat-txt { font-size: .8rem; color: rgba(200,210,255,.62); font-weight: 500; }
.auth-left-foot { font-size: .68rem; color: rgba(165,180,252,.18); position: relative; z-index: 1; }

/* ── Right panel ──────────────────────────────────────────────── */
.auth-right {
  background: #0c0c23;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 40px; border-left: 1px solid rgba(99,102,241,.1);
  position: relative;
}
.auth-right::before {
  content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,.07) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%,-50%); pointer-events: none;
}
.auth-box { width: 100%; max-width: 385px; position: relative; z-index: 1; }

.auth-hello { font-size: 1.65rem; font-weight: 800; color: #eeeeff; letter-spacing: -.03em; margin-bottom: 4px; }
.auth-sub   { font-size: .84rem; color: rgba(165,180,252,.38); margin-bottom: 30px; }

/* ── Tabs ─────────────────────────────────────────────────────── */
.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(255,255,255,.03); border: 1px solid rgba(99,102,241,.12);
  border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 24px;
}
.auth-tab {
  padding: 11px 8px; border: none; background: transparent; border-radius: 9px;
  font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 600;
  color: rgba(165,180,252,.35); cursor: pointer; transition: all .18s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.auth-tab.active { background: linear-gradient(135deg,rgba(79,70,229,.65),rgba(124,58,237,.55)); color: #fff; box-shadow: 0 2px 14px rgba(79,70,229,.4); }
.auth-tab:not(.active):hover { background: rgba(99,102,241,.1); color: rgba(165,180,252,.65); }

/* ── Form ─────────────────────────────────────────────────────── */
.auth-fg    { margin-bottom: 15px; }
.auth-label { display: block; font-size: .73rem; font-weight: 600; color: rgba(165,180,252,.5); margin-bottom: 6px; }
.auth-iw    { position: relative; }
.auth-ii    { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: rgba(165,180,252,.28); font-size: .82rem; pointer-events: none; }
.auth-fc {
  width: 100%; padding: 12px 14px 12px 40px;
  border: 1.5px solid rgba(99,102,241,.15); border-radius: 11px;
  font-family: 'Poppins', sans-serif; font-size: .875rem;
  color: #eeeeff; background: rgba(255,255,255,.04); outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-fc:focus { border-color: rgba(99,102,241,.6); background: rgba(99,102,241,.06); box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.auth-fc::placeholder { color: rgba(165,180,252,.18); }
.auth-fc.no-icon { padding-left: 14px; }
select.auth-fc  { cursor: pointer; }

.auth-pt { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: rgba(165,180,252,.28); font-size: .83rem; padding: 4px; transition: color .15s; }
.auth-pt:hover { color: rgba(165,180,252,.65); }

.auth-submit {
  width: 100%; padding: 13px;
  background: linear-gradient(135deg,#4F46E5,#7C3AED);
  color: #fff; border: none; border-radius: 11px;
  font-family: 'Poppins', sans-serif; font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: all .18s; margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 22px rgba(79,70,229,.5);
}
.auth-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(79,70,229,.65); }
.auth-submit:active { transform: none; }

/* ── Alerts ───────────────────────────────────────────────────── */
.auth-err {
  padding: 11px 14px; border-radius: 10px; font-size: .81rem; font-weight: 500;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,.1); color: #F87171; border: 1px solid rgba(239,68,68,.2);
  animation: authShake .3s ease;
}
.auth-ok {
  padding: 11px 14px; border-radius: 10px; font-size: .81rem; font-weight: 500;
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
  background: rgba(16,185,129,.1); color: #34D399; border: 1px solid rgba(16,185,129,.2);
}
@keyframes authShake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

.auth-foot     { text-align: center; font-size: .76rem; color: rgba(165,180,252,.28); margin-top: 18px; }
.auth-foot a   { color: #818CF8; font-weight: 600; }
.auth-foot a:hover { color: #a5b4fc; }

/* ── Register page wider ──────────────────────────────────────── */
.auth-box.wide { max-width: 500px; }

/* ── Form row ─────────────────────────────────────────────────── */
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; background: #080815; }
  .auth-left  { display: none; }
  .auth-right { border: none; padding: 32px 20px; }
}
@media (max-width: 480px) {
  .auth-row { grid-template-columns: 1fr; }
}

/* ── Select dropdown — dark mode fix ── */
select.auth-fc {
  color: #eeeeff !important;
  background-color: rgba(255,255,255,.04) !important;
}
select.auth-fc option {
  background-color: #1a1a3a;
  color: #eeeeff;
}
/* Also fix for any select inside auth pages */
.auth-right select,
.auth-box select {
  color: #eeeeff !important;
  background-color: rgba(20,20,50,.95) !important;
}
.auth-right select option,
.auth-box select option {
  background-color: #1a1a3a !important;
  color: #eeeeff !important;
}