/* login.css — AI Trading Terminal sign-in page */

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

    :root {
      --bg:        #080c12;
      --surface:   #0e1420;
      --surface2:  #151d2b;
      --border:    rgba(255,255,255,0.08);
      --border2:   rgba(255,255,255,0.14);
      --text:      #e2e8f0;
      --muted:     #64748b;
      --accent:    #2563eb;
      --accent-h:  #1d4ed8;
      --success:   #10b981;
      --danger:    #ef4444;
      --warning:   #f59e0b;
      --green:     #22c55e;
      --font:      "Inter", system-ui, -apple-system, sans-serif;
    }

    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

    html, body {
      height: 100%;
      background: var(--bg);
      color: var(--text);
      font-family: var(--font);
      -webkit-font-smoothing: antialiased;
    }

    body {
      display: grid;
      grid-template-columns: 1fr 1fr;
      min-height: 100vh;
    }

    /* ── Left panel — branding ──────────────────────────────── */
    .left {
      background: var(--surface);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 48px;
      position: relative;
      overflow: hidden;
    }

    .left::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 60% 50% at 20% 20%, rgba(37,99,235,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 80%, rgba(16,185,129,0.08) 0%, transparent 60%);
      pointer-events: none;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 1;
    }
    .logo-icon {
      width: 36px; height: 36px;
      background: var(--accent);
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      font-size: 16px;
    }
    .logo-text {
      font-size: 15px;
      font-weight: 600;
      letter-spacing: -0.01em;
      color: var(--text);
    }
    .logo-text span { color: var(--accent); }

    .left-main { z-index: 1; }

    .left-main h1 {
      font-size: clamp(28px, 3vw, 38px);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.15;
      color: #f1f5f9;
      margin-bottom: 16px;
    }
    .left-main h1 em {
      font-style: normal;
      color: var(--accent);
    }
    .left-main p {
      font-size: 15px;
      color: var(--muted);
      line-height: 1.65;
      max-width: 360px;
      margin-bottom: 32px;
    }

    .stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    .stat {
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 14px 16px;
    }
    .stat-val {
      font-size: 22px;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: var(--green);
    }
    .stat-label {
      font-size: 11px;
      color: var(--muted);
      margin-top: 2px;
      text-transform: uppercase;
      letter-spacing: .05em;
    }

    .ticker-strip {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      z-index: 1;
    }
    .ticker-pill {
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 5px;
      padding: 4px 10px;
      font-size: 11px;
      font-family: "JetBrains Mono", "Fira Code", monospace;
      color: var(--muted);
      letter-spacing: .04em;
    }

    /* ── Right panel — forms ────────────────────────────────── */
    .right {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 48px 32px;
      background: var(--bg);
    }

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

    .form-head {
      margin-bottom: 28px;
    }
    .form-head h2 {
      font-size: 22px;
      font-weight: 600;
      letter-spacing: -0.02em;
      color: #f1f5f9;
      margin-bottom: 6px;
    }
    .form-head p {
      font-size: 13px;
      color: var(--muted);
    }

    /* Tabs */
    .tabs {
      display: flex;
      gap: 2px;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 9px;
      padding: 3px;
      margin-bottom: 24px;
    }
    .tab {
      flex: 1;
      padding: 8px;
      text-align: center;
      font-size: 13px;
      font-weight: 500;
      color: var(--muted);
      cursor: pointer;
      border-radius: 7px;
      transition: all 0.15s;
      border: none;
      background: none;
    }
    .tab.active {
      background: var(--surface);
      color: var(--text);
      box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    }

    /* Google button */
    .btn-google {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 11px;
      background: var(--surface2);
      border: 1px solid var(--border2);
      border-radius: 9px;
      color: var(--text);
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s;
      text-decoration: none;
    }
    .btn-google:hover {
      background: rgba(255,255,255,0.07);
      border-color: rgba(255,255,255,0.22);
    }
    .btn-google svg { flex-shrink: 0; }

    .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 18px 0;
      font-size: 12px;
      color: var(--muted);
    }
    .divider::before, .divider::after {
      content: "";
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* Form fields */
    .field { margin-bottom: 14px; }
    .field label {
      display: block;
      font-size: 12px;
      font-weight: 500;
      color: var(--muted);
      margin-bottom: 5px;
      letter-spacing: .03em;
    }
    .field input {
      width: 100%;
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 10px 12px;
      color: var(--text);
      font-size: 14px;
      font-family: var(--font);
      transition: border-color 0.15s;
      outline: none;
    }
    .field input:focus { border-color: var(--accent); }
    .field input::placeholder { color: var(--muted); }

    .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

    /* Submit button */
    .btn-primary {
      width: 100%;
      padding: 11px;
      background: var(--accent);
      border: none;
      border-radius: 9px;
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: background 0.15s, opacity 0.15s;
      margin-top: 6px;
      letter-spacing: .01em;
    }
    .btn-primary:hover { background: var(--accent-h); }
    .btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

    /* Messages */
    .msg {
      padding: 10px 12px;
      border-radius: 8px;
      font-size: 13px;
      margin-bottom: 14px;
      display: none;
    }
    .msg.show { display: block; }
    .msg.error   { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
    .msg.success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
    .msg.info    { background: rgba(37,99,235,0.12);  border: 1px solid rgba(37,99,235,0.3);  color: #93c5fd; }

    /* Footer */
    .form-footer {
      margin-top: 22px;
      text-align: center;
      font-size: 12px;
      color: var(--muted);
    }



    /* ── Responsive ─────────────────────────────────────────── */
    @media (max-width: 720px) {
      body { grid-template-columns: 1fr; }
      .left { display: none; }
    }