    /* ── Page shell ── */
    html, body { height: 100%; overflow: hidden; }

    .auth-shell {
      display: flex;
      height: 100vh;
      width: 100vw;
      overflow: hidden;
    }

    /* ══ LEFT PANEL — branding ══ */
    .auth-left {
      width: 42%;
      flex-shrink: 0;
      background: linear-gradient(145deg, #0d1520 0%, #0a1628 50%, #071020 100%);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 3rem;
      position: relative;
      overflow: hidden;
    }

    /* subtle grid background */
    .auth-left::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image:
        linear-gradient(rgba(61,154,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(61,154,255,0.04) 1px, transparent 1px);
      background-size: 40px 40px;
      pointer-events: none;
    }

    /* glowing orb */
    .auth-left::after {
      content: '';
      position: absolute;
      top: -120px;
      left: -120px;
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(61,154,255,0.12) 0%, transparent 70%);
      pointer-events: none;
    }

    .auth-brand {
      position: relative;
      z-index: 1;
    }

    .auth-logo-mark {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 2.5rem;
    }

    .auth-logo-icon img { width:64px; height:64px; border-radius:16px; object-fit:cover; display:block; }
    .auth-logo-icon {
      width: 64px;
      height: 64px;
      flex-shrink: 0;
    }


    .auth-logo-name {
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -0.5px;
      color: var(--text);
    }

    .auth-logo-tag {
      font-size: 10px;
      font-family: var(--mono);
      color: var(--text3);
      letter-spacing: 0.5px;
      margin-top: 2px;
    }

    .auth-headline {
      font-size: 32px;
      font-weight: 800;
      letter-spacing: -1px;
      line-height: 1.2;
      color: var(--text);
      margin-bottom: 1rem;
    }

    .auth-headline span { color: var(--accent); }

    .auth-subtext {
      font-size: 14px;
      color: var(--text2);
      line-height: 1.6;
      max-width: 300px;
    }

    .auth-features {
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      gap: 0.85rem;
      margin-top: 2.5rem;
    }

    .auth-feature {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 13px;
      color: var(--text2);
    }

    .auth-feature-dot {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      background: rgba(61,154,255,0.1);
      border: 1px solid rgba(61,154,255,0.2);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .auth-feature-dot svg { fill: var(--accent); }

    .auth-footer-note {
      position: relative;
      z-index: 1;
      font-size: 11px;
      font-family: var(--mono);
      color: var(--text3);
    }

    /* ══ RIGHT PANEL — form ══ */
    .auth-right {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow-y: auto;
      padding: 2rem 1.5rem;
      background: var(--bg);
    }

    .auth-form-wrap {
      width: 100%;
      max-width: 400px;
    }

    /* Tab switcher */
    .auth-tabs {
      display: flex;
      background: var(--bg3);
      border-radius: var(--radius);
      padding: 4px;
      margin-bottom: 1.75rem;
      gap: 4px;
    }

    .auth-tab {
      flex: 1;
      text-align: center;
      padding: 0.55rem;
      border-radius: 6px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 600;
      color: var(--text3);
      transition: all 0.15s;
      user-select: none;
    }

    .auth-tab.active {
      background: var(--bg2);
      color: var(--text);
      box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    }

    /* Form heading */
    .auth-form-title {
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.5px;
      color: var(--text);
      margin-bottom: 0.25rem;
    }

    .auth-form-sub {
      font-size: 13px;
      color: var(--text2);
      margin-bottom: 1.75rem;
    }

    /* Panel visibility */
    .auth-panel { display: none; }
    .auth-panel.active { display: block; }

    /* Single-column form fields */
    .auth-fields {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    /* Two-column row inside form */
    .auth-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0.75rem;
      align-items: end;
    }

    /* Submit button */
    .auth-submit {
      width: 100%;
      justify-content: center;
      padding: 0.8rem;
      font-size: 14px;
      margin-top: 0.5rem;
      border-radius: var(--radius);
    }

    /* Demo hint */
    .auth-demo-hint {
      margin-top: 1rem;
      text-align: center;
      font-size: 11px;
      color: var(--text3);
      font-family: var(--mono);
      padding: 0.6rem 0.9rem;
      background: var(--bg3);
      border-radius: var(--radius);
      border: 1px solid var(--border);
    }

    .auth-demo-hint strong { color: var(--accent); }

    /* Input overrides for this page */
    .auth-fields input,
    .auth-fields select {
      background: var(--bg2);
      border-color: var(--border2);
    }

    .auth-fields input:focus,
    .auth-fields select:focus {
      border-color: var(--accent);
      background: var(--bg3);
    }

    /* Divider */
    .auth-divider {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      margin: 0.25rem 0;
      font-size: 11px;
      color: var(--text3);
    }

    .auth-divider::before,
    .auth-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* ── Responsive Adjustments ── */
    @media (max-width: 850px) {
      html, body {
        overflow: auto;
        height: auto;
      }
      .auth-shell {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow: visible;
      }
      .auth-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem 1.25rem;
        height: auto;
      }
      .auth-brand {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 1rem;
        flex-wrap: wrap;
      }
      .auth-logo-mark {
        margin-bottom: 0;
      }
      .auth-logo-icon img {
        width: 40px;
        height: 40px;
        border-radius: 10px;
      }
      .auth-logo-icon {
        width: 40px;
        height: 40px;
      }
      .auth-logo-name {
        font-size: 18px;
      }
      .auth-logo-tag {
        font-size: 8px;
      }
      .auth-headline,
      .auth-subtext,
      .auth-features,
      .auth-footer-note {
        display: none;
      }
      .auth-mode-selector {
        margin-top: 0 !important;
        max-width: 100% !important;
        padding: 8px 10px !important;
      }
      .auth-right {
        width: 100%;
        padding: 2.5rem 1.5rem;
        height: auto;
      }
    }
