/* ============================================================
   auth-scene.css -- login, signup, forgot-password, reset-password

   Yeh chaaron page theme.css ke token par chalte hain. Yahan sirf
   layout aur baayein taraf ka drishya hai.

   DRISHYA KE BARE ME
   ------------------
   3D three.js se NAHI banaya. three.js ~600KB ka hai aur mobile ki
   battery khata hai; hamare zyadatar users phone par hain. Yeh sab
   CSS perspective + transform se hai -- lagbhag 0KB, aur gehrai ka
   wahi ehsaas.

   Teen niyam ismein pakke hain:
     1. Mobile par drishya band. Chhoti screen par wo jagah gher leta
        aur form neeche chala jaata.
     2. prefers-reduced-motion par sab ruka. Yeh sirf niyam nahi --
        kuch logon ko hilti cheezon se sach me chakkar aate hain.
     3. Panel me nakli graphic nahi. Wahi cheezein hain jo login ke
        baad milengi.
   ============================================================ */

/* ---------------------------------------------------- layout */

.auth {
  min-height: 100vh;
  min-height: 100dvh;                 /* mobile browser ki patti ke liye */
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
@media (max-width: 920px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
}

.auth-left {
  background: linear-gradient(165deg, var(--accent-tint) 0%,
                              var(--accent-light) 60%, #dcebe2 100%);
  padding: 44px clamp(28px, 4vw, 60px);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
@media (max-width: 920px) { .auth-left { display: none; } }

/* halki jaali -- gehrai ka aabhas, kinaron par ghul jaati hai */
.auth-left::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(26,107,72,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,107,72,.045) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 45%, #000 30%, transparent 78%);
}

/* ---------------------------------------------------- brand */

.al-brand { display: inline-flex; align-items: center; gap: 11px; position: relative; z-index: 5; }
.al-mark {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--accent); display: grid; place-items: center; flex: 0 0 auto;
}
.al-mark svg { width: 18px; height: 18px; }
/* display:block zaroori hai -- span inline hote hain aur naam+tagline
   ek hi line me chipak jaate hain */
.al-name {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 15px; line-height: 1.1; white-space: nowrap;
}
.al-sub {
  display: block; font-size: 9.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-muted);
  margin-top: 3px; white-space: nowrap;
}

.al-mid { position: relative; z-index: 5; max-width: 460px; }
.al-mid h2 {
  font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin: 14px 0 12px;
}
.al-mid p { font-size: 15px; line-height: 1.7; color: var(--text-muted); max-width: 400px; }

.al-foot {
  position: relative; z-index: 5; font-size: 12.5px; color: var(--text-muted);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.al-foot span { display: inline-flex; align-items: center; gap: 6px; }
.al-foot i {
  font-style: normal; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); opacity: .5; flex: 0 0 auto;
}

/* ------------------------------------------- tairte hue panel */

.scene {
  position: relative; margin: 28px 0 8px; height: 330px;
  perspective: 1400px; perspective-origin: 50% 45%;
}
.stage {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease);
}

.pl {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: 0 26px 60px -30px rgba(26,107,72,.34),
              0 4px 14px -6px rgba(28,26,23,.10);
  animation: authBob 7s ease-in-out infinite;
}
@keyframes authBob {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(0, -9px, 0); }
}
.pl.d2 { animation-duration: 8.5s; animation-delay: -1.6s; }
.pl.d3 { animation-duration: 9.5s; animation-delay: -3.1s; }
.pl.d4 { animation-duration: 8s;   animation-delay: -4.4s; }

.chipf {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 8px 14px;
  font-size: 12.5px; white-space: nowrap;
  box-shadow: 0 14px 30px -16px rgba(28,26,23,.3);
  animation: authBob 7.5s ease-in-out infinite;
}
.chipf .dt { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.chipf .dt.red { background: var(--error); }
.chipf b { font-weight: 600; }
.chipf .mono { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }

/* Mobile par drishya band -- jagah form ko chahiye */
@media (max-width: 920px) { .scene { display: none; } }

/* Jinke device par motion band hai, unke liye sab ruka rahe */
@media (prefers-reduced-motion: reduce) {
  .pl, .chipf { animation: none; }
  .stage { transition: none; }
}

/* ---- LOGIN ka drishya: aapka saamaan ---- */
.s-card { left: 6%; top: 8%; width: 74%; padding: 18px 20px; }
.s-card .lbl {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 8px;
}
.s-card .bt {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  display: flex; align-items: center; gap: 9px;
}
.s-card .pill {
  font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  background: var(--accent-light); color: var(--accent);
  padding: 3px 9px; border-radius: var(--r-pill);
}
.s-card .sub { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }
.bar { height: 5px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 12px; }
.bar i { display: block; height: 100%; width: 64%; background: var(--accent); border-radius: 99px; }

.s-lessons { left: 20%; top: 52%; width: 70%; padding: 12px 6px; }
.s-lessons .row { display: flex; align-items: center; gap: 10px; padding: 7px 14px; font-size: 12.5px; }
.s-lessons .row + .row { border-top: 1px solid var(--border); }
.s-lessons .d { font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); flex: 0 0 34px; }
.s-lessons .n { flex: 1; color: var(--text); }
.s-lessons .k { color: var(--accent); font-size: 12px; }
.s-lessons .k.lock { color: var(--text-dim); }

/* ---- SIGN UP ka drishya: raasta khulta hua ---- */
.step { width: 66%; padding: 14px 18px; display: flex; align-items: center; gap: 12px; }
.step .no {
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  letter-spacing: .12em; color: var(--accent); opacity: .6;
}
.step .nm { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.step.a { top: 60%; left: 2%; }
.step.b { top: 41%; left: 12%; }
.step.c { top: 22%; left: 22%; }
.step.d { top: 3%;  left: 32%; }

/* ---- FORGOT ka drishya: link ja raha hai ---- */
.s-mail { left: 10%; top: 22%; width: 66%; padding: 20px; }
.s-mail .to { font-size: 12px; color: var(--text-dim); font-family: var(--font-mono); }
.s-mail .subj { font-family: var(--font-display); font-size: 15.5px; font-weight: 600; margin: 8px 0 10px; }
.s-mail .lnk {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); color: var(--accent);
  border-radius: var(--r-sm); padding: 9px 13px; font-size: 12.5px; font-weight: 500;
}
.ring {
  position: absolute; right: 8%; top: 8%; width: 104px; height: 104px;
  animation: authBob 8s ease-in-out infinite;
}
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .txt {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent);
  text-align: center; line-height: 1.3;
}

/* ---- RESET ka drishya: surakshit ---- */
.s-lock { left: 14%; top: 14%; width: 58%; padding: 26px; text-align: center; }
.s-lock .ico {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent-light); display: grid; place-items: center; margin: 0 auto 14px;
}
.s-lock .ico svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.8; }
.s-lock .t { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.s-lock .s { font-size: 12.5px; color: var(--text-muted); margin-top: 5px; }

/* ---------------------------------------------------- form */

.auth-right {
  display: flex; align-items: center; justify-content: center;
  padding: 44px clamp(20px, 4vw, 56px);
}
.auth-box { width: 100%; max-width: 396px; }

/* chhote screen par brand upar aata hai (baayan hissa chhupa hota hai) */
.ab-top { display: none; margin-bottom: 30px; }
@media (max-width: 920px) { .ab-top { display: block; } }

.ab-head { margin-bottom: 26px; }
.ab-head h1 {
  font-family: var(--font-display); font-size: 29px; font-weight: 700;
  letter-spacing: -.03em; line-height: 1.12; margin: 9px 0 8px;
}
.ab-head p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

.ab-form { display: flex; flex-direction: column; gap: 15px; }

.ab-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ab-hint { font-size: 12.5px; color: var(--text-dim); line-height: 1.5; }

.ab-alt {
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--text-muted); text-align: center;
}
.ab-alt a { color: var(--accent); font-weight: 500; }
.ab-alt a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ab-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--text-muted); margin-bottom: 22px;
}
.ab-back:hover { color: var(--accent); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }

/* ---- sandesh ---- */
.msg { border-radius: var(--r-md); padding: 12px 14px; font-size: 13.5px; line-height: 1.6; }
.msg.err { background: rgba(154,59,38,.07); border: 1px solid rgba(154,59,38,.25); color: var(--error); }
.msg.ok  { background: var(--accent-light); border: 1px solid rgba(26,107,72,.25); color: var(--accent); }
.msg a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---- password ki taakat ---- */
.pw-bars { display: flex; gap: 4px; margin-top: 7px; }
.pw-bars i {
  height: 3px; flex: 1; border-radius: 2px; background: var(--border);
  transition: background var(--dur-fast) var(--ease);
}
.pw-bars.s1 i:nth-child(1)       { background: var(--error); }
.pw-bars.s2 i:nth-child(-n+2)    { background: var(--warn); }
.pw-bars.s3 i:nth-child(-n+3)    { background: var(--accent); }
.pw-bars.s4 i                    { background: var(--accent); }

/* ---- pass-eye.js ke button ka rang (wo apni layout CSS khud daalta hai) ---- */
.pe-btn { color: var(--text-dim); }
.pe-btn:hover { color: var(--accent); }
