﻿body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
  }

  .page {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 440px;
    min-height: calc(100vh - 53px);
  }

  /* Left panel */
  .left {
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--border);
    background: var(--bg);
  }

  .left-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .left-eyebrow::before {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: var(--gold);
    flex-shrink: 0;
  }

  .left-heading {
    font-family: var(--sans);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
  }
  .left-heading strong { font-weight: 600; }

  .left-desc {
    font-size: 15px;
    line-height: 1.75;
    color: var(--muted);
    max-width: 420px;
    margin-bottom: 3rem;
    font-weight: 300;
  }

  .features {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }
  .feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
  }
  .feature-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--bg2);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
  }
  .feature-icon svg {
    width: 13px;
    height: 13px;
    stroke: var(--navy);
    fill: none;
    stroke-width: 1.75;
  }
  .feature-text strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 2px;
  }
  .feature-text span {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.5;
  }

  .stats {
    display: flex;
    gap: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
  }
  .stat-num {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .stat-lbl {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  /* Right panel */
  .right {
    background: var(--bg2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
  }

  .logo-slot {
    width: 100%;
    max-width: 340px;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .logo-mark {
    width: 48px;
    height: 48px;
    background: var(--navy);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .logo-mark svg {
    width: 22px;
    height: 22px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
  }
  .logo-wordmark {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.16em;
    color: var(--navy);
    text-transform: uppercase;
  }
  .logo-wordmark span {
    color: var(--muted);
    font-weight: 400;
  }

  .login-card {
    width: 100%;
    max-width: 340px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 2px 16px rgba(10,22,40,0.06);
  }
  .card-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .card-sub {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 1.75rem;
    line-height: 1.5;
  }
  .card-footer {
    margin-top: 1rem;
    text-align: center;
    font-size: 12px;
  }
  .card-footer a {
    color: var(--muted);
    text-decoration: none;
    transition: color .15s;
  }
  .card-footer a:hover { color: var(--navy); }

  .ticker {
    border-top: 1px solid var(--border);
    padding: 12px 2.5rem;
    display: flex;
    gap: 2.5rem;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--muted);
    background: var(--bg);
    flex-shrink: 0;
  }
  .ticker-item { white-space: nowrap; display: flex; gap: 8px; align-items: center; }
  .ticker-up   { color: var(--green); }
  .ticker-down { color: var(--red); }

  /* ════════════════════════════════════════════════════════════ */
  /* RESPONSIVE DESIGN - MOBILE & TABLET                          */
  /* ════════════════════════════════════════════════════════════ */

  /* Tablet layout (768px - 1024px) */
  @media (max-width: 1024px) {
    .page { grid-template-columns: 1fr 380px; min-height: auto; }
    .left { padding: 3rem 2rem; }
    .left-heading { font-size: clamp(1.75rem, 2.5vw, 2.25rem); }
    .left-desc { font-size: 14px; max-width: 100%; }
    .stats { gap: 2rem; }
    .right { padding: 2rem; }
  }

  /* Mobile layout (< 768px) */
  @media (max-width: 768px) {
    .page {
      grid-template-columns: 1fr;
      min-height: auto;
    }

    .left {
      padding: 2rem 1.5rem;
      border-right: none;
      border-bottom: 1px solid var(--border);
      justify-content: flex-start;
      min-height: auto;
    }

    .left-eyebrow {
      font-size: 9px;
      margin-bottom: 1.25rem;
    }
    .left-eyebrow::before {
      width: 16px;
    }

    .left-heading {
      font-size: clamp(1.5rem, 4vw, 2rem);
      margin-bottom: 1rem;
      line-height: 1.2;
    }

    .left-desc {
      font-size: 13px;
      line-height: 1.6;
      max-width: 100%;
      margin-bottom: 2rem;
    }

    .features {
      margin-bottom: 2rem;
      gap: 1rem;
    }
    .feature { gap: 10px; }
    .feature-icon {
      width: 24px;
      height: 24px;
      margin-top: 0;
    }
    .feature-icon svg {
      width: 11px;
      height: 11px;
    }
    .feature-text strong {
      font-size: 12px;
      margin-bottom: 1px;
    }
    .feature-text span {
      font-size: 11px;
    }

    .stats {
      flex-direction: row;
      gap: 1.5rem;
      padding-top: 1.5rem;
      flex-wrap: wrap;
    }
    .stat-num { font-size: 18px; }
    .stat-lbl { font-size: 10px; }

    .right {
      background: var(--bg2);
      padding: 1.5rem 1rem;
      justify-content: flex-start;
      border-top: 1px solid var(--border);
      min-height: auto;
    }

    .logo-slot {
      width: 100%;
      margin-bottom: 1.5rem;
      gap: 8px;
    }
    .logo-mark {
      width: 40px;
      height: 40px;
    }
    .logo-mark svg {
      width: 18px;
      height: 18px;
    }
    .logo-wordmark { font-size: 11px; }

    .login-card {
      width: 100%;
      max-width: 100%;
      padding: 1.5rem;
      border-radius: 8px;
    }
    .card-heading { font-size: 14px; }
    .card-sub { font-size: 11px; margin-bottom: 1.25rem; }
    .card-footer { font-size: 11px; }

    .ticker {
      padding: 10px 1rem;
      gap: 1.5rem;
      font-size: 10px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .ticker-item { font-size: 9px; gap: 6px; }
  }

  /* Small mobile (< 480px) */
  @media (max-width: 480px) {
    .left { padding: 1.5rem 1rem; }
    .left-heading { font-size: clamp(1.25rem, 5vw, 1.75rem); }
    .left-desc { font-size: 12px; margin-bottom: 1.5rem; }

    .features { margin-bottom: 1.5rem; gap: 0.75rem; }
    .feature-icon { width: 22px; height: 22px; }
    .feature-icon svg { width: 10px; height: 10px; }
    .feature-text { gap: 0; }
    .feature-text strong { font-size: 11px; }
    .feature-text span { font-size: 10px; }

    .stats {
      gap: 1rem;
      padding-top: 1rem;
      justify-content: space-around;
    }
    .stat-num { font-size: 16px; }
    .stat-lbl { font-size: 9px; }

    .right { padding: 1rem; }
    .logo-mark { width: 36px; height: 36px; }
    .logo-mark svg { width: 16px; height: 16px; }

    .login-card { padding: 1.25rem; border-radius: 6px; }
    .card-heading { font-size: 13px; }
    .card-sub { font-size: 10px; }

    .ticker { padding: 8px 1rem; gap: 1rem; }
    .ticker-item { font-size: 8px; gap: 4px; }
  }

  /* Large desktop (> 1400px) */
  @media (min-width: 1400px) {
    .page { grid-template-columns: 1fr 520px; }
    .left { padding: 6rem 5rem; }
    .left-heading { font-size: 3rem; }
    .left-desc { font-size: 16px; }
    .right { padding: 4rem 3rem; }
  }


