/* ==========================================================================
   Activ Paisa — portal sign-in
   Built on the public site's design system (styles.css), not the admin one:
   this is the first screen a customer sees after applying, so it should feel
   like the site they applied on — light, blue, rounded — rather than like
   the internal console.
   ========================================================================== */

:root { --purple-tint: rgba(32, 0, 80, .075); }

.lg-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(0, 96, 176, .10) 0%, rgba(0, 96, 176, 0) 62%),
    radial-gradient(760px 480px at 2% 104%, rgba(32, 0, 80, .07) 0%, rgba(32, 0, 80, 0) 60%),
    var(--bg);
}

/* ---------- header ----------
   Header chrome carries the logo's purple (--secondary) rather than the
   blue CTA colour, so the nav reads as brand and the "Sign in" button stays
   the only blue thing on the page competing for a click. */
.lg-head {
  display: flex; align-items: center; gap: clamp(12px, 3vw, 34px);
  padding: 14px clamp(16px, 5vw, 48px);
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32, 0, 80, .09);
  position: sticky; top: 0; z-index: 20;
}
.lg-brand { flex: none; display: block; }
.lg-brand img { height: 26px; width: auto; display: block; }

.lg-nav { display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.lg-nav > a, .lg-drop > summary {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 13px; border-radius: var(--r-pill);
  color: var(--secondary); font-size: var(--text-small); font-weight: 500;
  white-space: nowrap; cursor: pointer;
}
.lg-nav > a:hover, .lg-drop > summary:hover {
  background: var(--purple-tint); color: var(--secondary); text-decoration: none;
}

/* the default disclosure triangle is not the affordance we drew */
.lg-drop > summary { list-style: none; }
.lg-drop > summary::-webkit-details-marker { display: none; }
.lg-drop { position: relative; }
.lg-drop[open] > summary { background: var(--purple-tint); color: var(--secondary); }
.lg-drop[open] > summary svg { transform: rotate(180deg); }
.lg-drop > summary svg { transition: transform var(--dur) var(--ease); }
.lg-drop-menu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 30;
  min-width: 232px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--sh-lg);
}
.lg-drop-menu a {
  display: block; padding: 10px 12px; border-radius: 10px;
  color: var(--secondary); font-size: var(--text-small); font-weight: 500;
}
.lg-drop-menu a:hover { background: var(--purple-tint); color: var(--secondary); text-decoration: none; }

.lg-back {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  color: var(--secondary); font-size: var(--text-small); font-weight: 500;
}
.lg-back:hover { color: var(--secondary); opacity: .7; text-decoration: none; }
.lg-back svg { flex: none; }

@media (max-width: 860px) {
  .lg-head { flex-wrap: wrap; gap: 10px 14px; }
  /* the nav takes its own line and scrolls sideways rather than stacking
     into a wall of links above the form */
  .lg-nav {
    order: 3; width: 100%; overflow-x: auto; scrollbar-width: none;
    padding-bottom: 2px;
  }
  .lg-nav::-webkit-scrollbar { display: none; }
  .lg-back { margin-left: auto; }
  .lg-drop-menu { position: fixed; left: 12px; right: 12px; min-width: 0; }
}

/* ---------- body ---------- */
.lg-main {
  flex: 1; width: 100%; max-width: 1140px; margin-inline: auto;
  padding: clamp(12px, 3vw, 40px) clamp(16px, 5vw, 48px) 48px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 452px);
  gap: clamp(28px, 6vw, 72px); align-items: center;
}

/* ---------- left: what the portal gives you ---------- */
.lg-pitch { min-width: 0; }
.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-pill);
  background: var(--tint); color: var(--primary);
  font-size: .78rem; font-weight: 600; letter-spacing: -.01em;
}
.lg-pitch h1 {
  margin-top: 18px;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.14;
  letter-spacing: -.03em; color: var(--secondary); font-weight: 600;
}
.lg-pitch h1 em { font-style: normal; color: var(--primary); }
.lg-pitch > p { margin-top: 14px; max-width: 42ch; color: var(--ink-2); font-size: 1.02rem; }

.lg-illo { margin: 26px 0 4px; max-width: 400px; width: 100%; height: auto; display: block; }

.lg-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; max-width: 46ch; }
.lg-points li { display: flex; gap: 13px; align-items: flex-start; }
.lg-points .ico {
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; background: var(--tint); color: var(--primary);
}
.lg-points .ico.is-green { background: var(--success-bg); color: var(--success); }
.lg-points .ico.is-violet { background: #EFEBFB; color: #5B45C7; }
.lg-points strong { display: block; color: var(--ink); font-size: .95rem; font-weight: 600; }
.lg-points span { display: block; color: var(--ink-3); font-size: .86rem; margin-top: 2px; }

.lg-stats {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px;
  padding-top: 22px; border-top: 1px solid var(--line);
}
.lg-stats div { min-width: 0; }
.lg-stats strong { display: block; color: var(--secondary); font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.lg-stats span { display: block; color: var(--ink-3); font-size: .78rem; margin-top: 2px; }

/* ---------- right: the card ---------- */
.lg-card {
  min-width: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  padding: clamp(24px, 4vw, 34px);
}
.lg-card h2 { font-size: 1.4rem; letter-spacing: -.02em; color: var(--secondary); font-weight: 600; }
.lg-card .lg-sub { color: var(--ink-2); font-size: .9rem; margin: 6px 0 22px; }
.lg-card label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin: 16px 0 8px; }

/* +91 is furniture, not something to type — and showing it stops a browser
   pasting "+91…" into a field that then reads as a 12-digit number. */
.lg-tel {
  display: flex; align-items: stretch; height: 54px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lg-tel:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 96, 176, .12); }
.lg-tel .cc {
  display: grid; place-items: center; padding: 0 14px;
  color: var(--ink-2); font-weight: 600; font-size: .95rem;
  border-right: 1px solid var(--line);
}
.lg-tel input {
  flex: 1; min-width: 0; border: 0; background: none; padding: 0 14px;
  font: inherit; font-size: 1.02rem; letter-spacing: .06em; color: var(--ink);
}
.lg-tel input:focus { outline: none; }

.lg-card .btn { width: 100%; margin-top: 24px; }

.lg-otp-label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin: 20px 0 10px; }
.lg-otp {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
}
.lg-otp input {
  width: 100%; aspect-ratio: 1; min-width: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface);
  text-align: center; font: 600 1.25rem/1 var(--font); color: var(--secondary);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.lg-otp input:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(0, 96, 176, .12);
}

.lg-hint { font-size: .8rem; margin: 9px 0 0; min-height: 1.15em; color: var(--ink-3); }
.lg-hint.is-ok { color: var(--success); font-weight: 500; }
.lg-hint.is-miss { color: var(--danger); font-weight: 500; }
.lg-static-hint { font-size: .8rem; color: var(--ink-3); margin: 9px 0 0; }
.lg-err { color: var(--danger); font-size: .85rem; margin-top: 12px; min-height: 1.25em; }

.lg-resend {
  display: block; width: 100%; margin-top: 12px; padding: 9px;
  background: none; border: 0; cursor: pointer;
  color: var(--primary); font-size: .86rem; font-weight: 600; font-family: inherit;
}
/* display:block would otherwise beat the browser's [hidden] rule, leaving a
   resend link on screen before any code has been sent. */
.lg-resend[hidden] { display: none; }
.lg-resend:disabled { color: var(--ink-3); cursor: default; }

.lg-secure {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: .78rem;
}
.lg-secure svg { flex: none; }
.lg-help { text-align: center; color: var(--ink-3); font-size: .84rem; margin-top: 18px; }
.lg-help a { color: var(--primary); font-weight: 600; }

/* ---------- trust strip ---------- */
.lg-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
  padding: 0 clamp(16px, 5vw, 48px) 32px;
}
.lg-foot span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line);
  color: var(--ink-2); font-size: .78rem; font-weight: 500;
}
.lg-foot svg { flex: none; color: var(--primary); }

@media (max-width: 940px) {
  .lg-main {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 8px; gap: 26px; align-items: start;
  }
  /* On a phone the form is what the person came for, so the card leads and
     the pitch follows it rather than pushing it below the fold. */
  .lg-card { order: -1; }
  .lg-illo { display: none; }
  .lg-pitch h1 { font-size: 1.55rem; }
  .lg-pitch > p { font-size: .94rem; }
  .lg-stats { gap: 10px 20px; margin-top: 22px; }
  .lg-stats strong { font-size: 1rem; }
}
