/* =========================================================================
   Provantis — Member access (DataMural-aligned Ledger Split design)
   Load order: app.css → dm-nav.css (via partial) → auth-2026.css
   Scope: .ldg-page wrapper
   ========================================================================= */

/* ── Variables ────────────────────────────────────────────────────── */
.ldg-page {
  --navy:   #0f1b2d;
  --bg:     #faf8f2;
  --soft:   #f2eee3;
  --line:   rgba(15,27,45,.14);
  --gold:   #b8902a;
  --gold-h: #d2b454;
  --ink65:  rgba(15,27,45,.65);
  --ink60:  rgba(15,27,45,.60);
  --ink40:  rgba(15,27,45,.40);
  --ink20:  rgba(15,27,45,.20);
  --ink15:  rgba(15,27,45,.15);
  font-family: 'DM Sans', 'Avenir Next', ui-sans-serif, sans-serif;
  background: var(--bg);
  color: var(--navy);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Inner width ──────────────────────────────────────────────────── */
.ldg-inner {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}
@media (min-width: 1024px) {
  .ldg-inner { padding-left: 48px; padding-right: 48px; }
}

/* ── Intro section ────────────────────────────────────────────────── */
.ldg-intro {
  background: var(--bg);
  padding: 64px 0 56px;
}
@media (min-width: 1024px) { .ldg-intro { padding: 96px 0 80px; } }

.ldg-intro-inner { max-width: 760px; }

.ldg-in {
  animation: ldgIn .55s ease both;
}
@keyframes ldgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .ldg-in { animation: none; } }

.ldg-eyebrow {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gold);
  margin: 0 0 20px;
}
.ldg-h1 {
  font-family: 'DM Sans', 'Avenir Next', ui-sans-serif, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.055em;
  margin: 0 0 28px;
}
.ldg-lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink65);
  max-width: 570px;
  margin: 0;
}

/* ── Two-column shell ─────────────────────────────────────────────── */
.ldg-shell {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}
.ldg-cols {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .ldg-cols { grid-template-columns: 1fr 1fr; }
}

/* ── Column shared ────────────────────────────────────────────────── */
.ldg-col { padding: 48px 0; }
@media (min-width: 1024px) { .ldg-col { padding: 64px 0; } }

.ldg-col--left {
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .ldg-col--left { border-bottom: none; border-right: 1px solid var(--line); padding-right: 48px; }
  .ldg-col--right { padding-left: 48px; }
}
@media (min-width: 1024px) {
  .ldg-col--left { padding-right: 64px; }
  .ldg-col--right { padding-left: 64px; }
}

.ldg-col-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink20);
  padding-bottom: 20px;
  margin-bottom: 36px;
}
.ldg-num {
  font-size: 12px;
  color: var(--gold);
  margin-right: 12px;
}
.ldg-col-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .17em;
}
.ldg-col-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--ink40);
}

.ldg-form-wrap { max-width: 480px; }

.ldg-h2 {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.04em;
  margin: 0 0 12px;
}
.ldg-p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink60);
  margin: 0 0 28px;
}

/* ── Form elements ────────────────────────────────────────────────── */
.ldg-form { display: flex; flex-direction: column; gap: 20px; }
.ldg-form--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  column-gap: 16px;
}
.ldg-span2 { grid-column: 1 / -1; }

.ldg-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy);
}
.ldg-legend {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--navy);
  margin-bottom: 12px;
}

.ldg-input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid rgba(16,28,44,.28);
  background: var(--bg);
  font: 400 14px/1.4 'DM Sans', 'Avenir Next', ui-sans-serif, sans-serif;
  color: var(--navy);
  box-sizing: border-box;
  border-radius: 0;
  transition: border-color .15s;
}
.ldg-input::placeholder { color: rgba(16,28,44,.35); }
.ldg-input:focus-visible {
  outline: 2px solid rgba(184,144,42,.42);
  outline-offset: 2px;
  border-color: var(--gold);
}
.ldg-input--pr { padding-right: 84px; }

/* Password toggle */
.ldg-pw-wrap { position: relative; }
/* Hide the browser's built-in reveal eye (Edge) — it overlaps our Show button */
.ldg-input::-ms-reveal,
.ldg-input::-ms-clear { display: none; }
.ldg-pw-btn {
  /* Inset from the right edge so a browser/extension-injected reveal eye
     (which anchors to the input's right edge) can never overlap it */
  position: absolute; top: 50%; right: 26px; transform: translateY(-50%);
  padding: 0 8px; height: 100%;
  background: transparent; border: none; cursor: pointer;
  font: 500 12px/1 'Inter', ui-sans-serif, sans-serif;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ink40);
  transition: color .15s;
}
.ldg-pw-btn:hover { color: var(--gold); }

/* ── Firm type radio grid ─────────────────────────────────────────── */
.ldg-firmtype { border: none; padding: 0; margin: 0; min-inline-size: 0; }
.ldg-firmtype-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.ldg-firm-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  cursor: pointer;
  color: var(--ink60);
  background: var(--bg);
  transition: background .12s;
}
.ldg-firm-opt:nth-child(even) { border-right: none; }
.ldg-firm-opt:nth-last-child(-n+2) { border-bottom: none; }
.ldg-firm-opt:hover { background: var(--soft); }
.ldg-firm-opt:has(input:checked) {
  background: var(--navy);
  color: var(--bg);
  position: relative;
  z-index: 1;
}
.ldg-firm-opt input { accent-color: var(--gold); margin: 0; }

/* ── Consent ──────────────────────────────────────────────────────── */
.ldg-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.65;
  color: var(--ink60);
  cursor: pointer;
}
.ldg-consent input { margin-top: 2px; flex: 0 0 auto; accent-color: var(--navy); }
.ldg-consent a { color: var(--navy); text-decoration: underline; }
.ldg-consent strong { color: var(--navy); font-weight: 500; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.ldg-btn {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font: 500 12px/1 'DM Sans', 'Avenir Next', ui-sans-serif, sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.ldg-btn--navy { background: var(--navy); color: var(--bg); }
.ldg-btn--navy:hover { background: #192b42; }
.ldg-btn--gold { background: var(--gold); color: var(--navy); }
.ldg-btn--gold:hover { background: var(--gold-h); }
.ldg-btn:hover { transform: translateY(-1px); }
.ldg-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.ldg-btn:active { transform: translateY(0); }
.ldg-arrow { margin-left: 8px; color: var(--gold); }
.ldg-btn--gold .ldg-arrow { color: var(--navy); }

/* ── Sign-in footer links ─────────────────────────────────────────── */
.ldg-signin-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ink15);
  font-size: 11px;
  color: var(--ink60);
}
.ldg-signin-foot a { color: inherit; text-decoration: none; }
.ldg-signin-foot a:hover { color: var(--gold); }

/* ── Lower bar ────────────────────────────────────────────────────── */
.ldg-lower {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 48px;
  padding-bottom: 48px;
  margin-top: auto;
}
@media (min-width: 768px) {
  .ldg-lower {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.ldg-lower-link {
  font-size: 13px;
  color: var(--ink65);
  margin: 0;
}
.ldg-lower-link a {
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}
.ldg-lower-link a:hover { color: var(--gold); }
.ldg-lower-counts {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink40);
  margin: 0;
}

/* ── Legal footer ─────────────────────────────────────────────────── */
.ldg-foot {
  background: var(--navy);
  color: rgba(250,247,240,.60);
  padding: 32px 0;
}
.ldg-foot-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 768px) {
  .ldg-foot-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}
.ldg-foot p { margin: 0; font-size: 10px; line-height: 1.7; }
.ldg-foot p:first-child { max-width: 620px; }

@media (max-width: 560px) {
  .ldg-intro { padding: 44px 0 40px; }
  .ldg-col { padding: 40px 0; }
  .ldg-form--grid { grid-template-columns: 1fr; }
  .ldg-form--grid .ldg-span2 { grid-column: auto; }
  .ldg-firmtype-grid { grid-template-columns: 1fr; }
  .ldg-firm-opt,
  .ldg-firm-opt:nth-child(even),
  .ldg-firm-opt:nth-last-child(-n+2) { border-right: none; border-bottom: 1px solid var(--line); }
  .ldg-firm-opt:last-child { border-bottom: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ldg-btn,
  .ldg-input,
  .ldg-firm-opt { transition: none; }
  .ldg-btn:hover { transform: none; }
}
