/* ============================================================
   TypingSathi — css/auth.css
   लॉगिन / पंजीयन  ·  अकेला चलता है
   EduXtreme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* [hidden] हमेशा छिपे — किसी class का display उसे न काटे */
[hidden] { display: none !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:  #e8622a;  --brand-d: #cc5220;  --brand-s: #fff1ea;
  --ink:    #1f2733;  --muted:   #6b7280;  --faint:  #6f7787;
  --panel:  #ffffff;  --line:    #eceef3;  --edge:   #dfe3ea;
  --ok:     #16a34a;  --bad:     #dc2626;
  --r: 16px; --r-sm: 10px;
}

body {
  font-family: 'Noto Sans Devanagari', 'Plus Jakarta Sans', system-ui, sans-serif;
  background: #f7f8fb; color: var(--ink); font-size: 14px;
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.num { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.en  { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }

/* ============================================================
   खोल
   ============================================================ */
.shell {
  width: 100%; max-width: 940px; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: 0 20px 50px rgba(25,32,45,.10);
  display: grid; grid-template-columns: 1fr 408px;
}

/* ---------- बायीं ओर ---------- */
.side {
  background: linear-gradient(155deg, #fdf2e6 0%, #fce7d3 55%, #fbdfd4 100%);
  padding: 36px 34px; display: flex; flex-direction: column;
}
.side .brand { display: flex; align-items: center; gap: 12px; }
.side .mark {
  width: 46px; height: 46px; flex: none; border-radius: 12px;
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.side .brand b {
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px;
  font-weight: 700; display: block; letter-spacing: -.4px;
}
.side .brand b i { font-style: normal; color: var(--brand); }
.side .brand span { display: block; font-size: 12px; color: #97724f; margin-top: 1px; }

.side h2 {
  font-size: 24px; font-weight: 700; line-height: 1.45;
  margin: 30px 0 10px 0; letter-spacing: -.5px;
}
.side .lead { font-size: 14px; color: #7a5c42; line-height: 1.85; }

.side ul { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 13px; }
.side ul li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: #64493a; }
.side ul li svg { flex: none; margin-top: 2px; color: var(--brand); }

.side .foot { margin-top: auto; padding-top: 26px; font-size: 12px; color: #a4805f; line-height: 1.7; }

/* ---------- दायीं ओर ---------- */
.pane { padding: 34px 32px; display: flex; flex-direction: column; }

.tabs { display: flex; gap: 4px; background: #f2f4f7; padding: 4px; border-radius: var(--r-sm); margin-bottom: 24px; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 10px;
  border-radius: 7px; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; font-family: inherit;
}
.tabs button.on { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(20,25,35,.1); }

h1 { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.sub { font-size: 13px; color: var(--muted); margin: 5px 0 20px 0; line-height: 1.7; }

.f { margin-bottom: 14px; }
label.lb { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

input, select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--edge);
  border-radius: var(--r-sm); font-size: 14px; font-family: inherit;
  background: #fff; color: var(--ink);
}
input:focus, select:focus {
  outline: 0; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232,98,42,.12);
}
input.err { border-color: var(--bad); }

.pw { position: relative; }
.pw button {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  border: 0; background: transparent; font-size: 12px; color: var(--brand);
  cursor: pointer; font-weight: 700; font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 5px 7px;
}

.btn {
  width: 100%; border: 0; border-radius: var(--r-sm); padding: 13px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--brand); color: #fff;
}
.btn:hover { background: var(--brand-d); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.link {
  background: none; border: 0; color: var(--brand); font-size: 13px;
  cursor: pointer; font-family: inherit; font-weight: 600; padding: 0;
}
.link:hover { text-decoration: underline; }
.mini { font-size: 13px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 2; }

.msg { padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.7; margin-bottom: 16px; }
.msg-bad { background: #fdeeee; border: 1px solid #f3c4c4; color: #a52020; }
.msg-ok  { background: #eaf7ef; border: 1px solid #b9e2cb; color: #15693f; }
.msg[hidden] { display: none; }

.hide { display: none; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; max-width: 440px; }
  .side { padding: 24px; }
  .side h2, .side ul, .side .lead { display: none; }
  .side .foot { margin-top: 14px; padding-top: 0; }
  .pane { padding: 26px 22px; }
}

/* ============================================================
   योजनाएँ (बायीं ओर) तथा पंजीयन के बाद स्वागत
   ============================================================ */
.plansbox { margin-top: 24px; background: rgba(255,255,255,.6); border: 1px solid #f3d3bd;
            border-radius: var(--r-sm); padding: 14px 14px 12px 14px; }
.plansbox .ph { font-size: 12px; font-weight: 700; color: #97724f; letter-spacing: .3px; margin-bottom: 10px; }
.prow3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.pmini { background: #fff; border: 1px solid #f1dccc; border-radius: 9px; padding: 9px 10px; }
.pmini b { display: block; font-size: 13px; }
.pmini .pr { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; color: var(--brand); }
.pmini .pr small { font-size: 11px; font-weight: 600; }
.pmini span { display: block; font-size: 11px; color: var(--muted); }
.plansbox .pnote { font-size: 12px; color: #7a5c42; margin-top: 10px; line-height: 1.7; }
.plansbox .pnote b { font-family: 'Plus Jakarta Sans', sans-serif; }

.wel { text-align: center; padding-top: 10px; }
.wel .wic { width: 64px; height: 64px; border-radius: 50%; background: #e7f6ee; color: var(--ok);
            display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.wbox { background: var(--brand-s); border: 1px solid #f6c9b3; border-radius: var(--r-sm);
        padding: 14px; margin: 4px 0 14px 0; }
.wbox span { display: block; font-size: 12px; color: var(--muted); }
.wbox b { display: block; font-size: 24px; font-weight: 800; color: var(--brand); margin-top: 2px;
          font-family: 'Plus Jakarta Sans', sans-serif; }
.wbox small { font-size: 13px; color: #7a5c42; }

/* योजना पर "लीजिये" — पंजीयन खुलता है */
.pmini { cursor: pointer; transition: border-color .15s; }
.pmini:hover { border-color: var(--brand); }
.pmini.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(232,98,42,.18); }
.pmini .take { margin-top: 7px; width: 100%; border: 0; border-radius: 7px; padding: 6px 0;
               background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
               cursor: pointer; font-family: inherit; }
.pmini .take:hover { background: var(--brand-d); }
.chosen { background: var(--brand-s); border: 1px solid #f6c9b3; border-radius: var(--r-sm);
          padding: 10px 13px; margin-bottom: 14px; }
.chosen span { display: block; font-size: 12px; color: var(--muted); }
.chosen b { display: block; font-size: 16px; color: var(--brand); margin: 1px 0 2px 0; }
.chosen small { font-size: 12px; color: #7a5c42; line-height: 1.6; }
.pmini.free { background: #f1faf5; border-color: #b9e2cb; }
.pmini.free .pr { color: #157f4c; }
.pmini.free .take { background: #1fa855; }
.pmini.free .take:hover { background: #178a45; }

/* मोबाइल — पहले लॉगिन / पंजीयन form, फिर प्लान */
.mbrand { display: none; }
@media (max-width: 860px) {
  .shell { display: flex; flex-direction: column; }
  .pane { order: -1; }
  .mbrand { display: block; text-align: center; margin-bottom: 16px; }
  .mbrand b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 700; letter-spacing: -.4px; }
  .mbrand b i { font-style: normal; color: var(--brand); }
  .mbrand span { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
  .side .brand { display: none; }
}
