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

    :root {
      --bg:      #0a0a0f;
      --surface: #13131a;
      --border:  #1e1e2e;
      --accent:  #7c5cfc;
      --accent2: #00d4aa;
      --text:    #e8e8f0;
      --muted:   #6b6b8a;
      --error:   #ff5555;
      --success: #00d4aa;
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Space Grotesk', sans-serif;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 24px;
      position: relative;
      overflow: hidden;
    }

    /* background blobs */
    body::before, body::after {
      content: '';
      position: fixed;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.15;
      pointer-events: none;
    }
    body::before {
      width: 400px; height: 400px;
      background: var(--accent);
      top: -100px; left: -100px;
    }
    body::after {
      width: 300px; height: 300px;
      background: var(--accent2);
      bottom: -80px; right: -80px;
    }

    /* Logo */
    .logo {
      font-family: 'Syne', sans-serif;
      font-size: 1.6rem;
      font-weight: 800;
      color: var(--text);
      margin-bottom: 32px;
      text-decoration: none;
    }
    .logo span { color: var(--accent); }

    /* Card */
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 40px 36px;
      width: 100%;
      max-width: 420px;
      position: relative;
    }

    .card-title {
      font-family: 'Syne', sans-serif;
      font-size: 1.6rem;
      font-weight: 800;
      margin-bottom: 6px;
      letter-spacing: -0.5px;
    }
    .card-sub {
      color: var(--muted);
      font-size: 0.88rem;
      margin-bottom: 28px;
    }

    /* Tabs */
    .tabs {
      display: flex;
      background: var(--bg);
      border-radius: 10px;
      padding: 4px;
      margin-bottom: 28px;
      border: 1px solid var(--border);
    }
    .tab {
      flex: 1;
      padding: 10px;
      text-align: center;
      border-radius: 8px;
      cursor: pointer;
      font-size: 0.9rem;
      font-weight: 600;
      color: var(--muted);
      transition: all 0.2s;
      border: none;
      background: transparent;
      font-family: 'Space Grotesk', sans-serif;
    }
    .tab.active {
      background: var(--accent);
      color: #fff;
    }

    /* Form */
    .form-group { margin-bottom: 18px; }
    label {
      display: block;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--muted);
      margin-bottom: 7px;
      letter-spacing: 0.5px;
      text-transform: uppercase;
    }
    input {
      width: 100%;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 13px 16px;
      color: var(--text);
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      outline: none;
      transition: border-color 0.2s;
    }
    input:focus { border-color: var(--accent); }
    input::placeholder { color: var(--muted); }
    input.error { border-color: var(--error); }

    /* Button */
    .btn {
      width: 100%;
      background: linear-gradient(135deg, var(--accent), #5b3fd4);
      color: #fff;
      border: none;
      border-radius: 10px;
      padding: 14px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      margin-top: 8px;
      transition: transform 0.15s, opacity 0.15s;
      box-shadow: 0 4px 20px rgba(124,92,252,0.3);
    }
    .btn:hover { transform: translateY(-1px); opacity: 0.92; }
    .btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

    /* Messages */
    .msg {
      padding: 12px 16px;
      border-radius: 10px;
      font-size: 0.88rem;
      margin-bottom: 18px;
      display: none;
    }
    .msg.error {
      background: rgba(255,85,85,0.1);
      border: 1px solid rgba(255,85,85,0.3);
      color: #ff8888;
      display: block;
    }
    .msg.success {
      background: rgba(0,212,170,0.1);
      border: 1px solid rgba(0,212,170,0.3);
      color: var(--accent2);
      display: block;
    }

    /* Divider */
    .divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 20px 0;
      color: var(--muted);
      font-size: 0.8rem;
    }
    .divider::before, .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }

    /* Google btn */
    .btn-google {
      width: 100%;
      background: var(--bg);
      color: var(--text);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 13px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.95rem;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: border-color 0.2s, background 0.2s;
    }
    .btn-google:hover { border-color: var(--accent); background: rgba(124,92,252,0.05); }

    .footer-note {
      text-align: center;
      color: var(--muted);
      font-size: 0.78rem;
      margin-top: 20px;
    }
    .footer-note a { color: var(--accent); text-decoration: none; }

    /* Loading spinner */
    .spinner {
      width: 18px; height: 18px;
      border: 2px solid rgba(255,255,255,0.3);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
      display: inline-block;
      vertical-align: middle;
      margin-right: 8px;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* Dashboard (shown after login) */
    .dashboard {
      display: none;
      width: 100%;
      max-width: 700px;
    }
    .dash-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 32px;
    }
    .dash-welcome {
      font-family: 'Syne', sans-serif;
      font-size: 1.4rem;
      font-weight: 800;
    }
    .dash-welcome span {
      background: linear-gradient(135deg, var(--accent), var(--accent2));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .logout-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--muted);
      border-radius: 8px;
      padding: 8px 16px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 0.85rem;
      cursor: pointer;
      transition: border-color 0.2s;
    }
    .logout-btn:hover { border-color: var(--error); color: var(--error); }

    .dash-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 40px;
      text-align: center;
    }
    .dash-card .big-emoji { font-size: 3rem; margin-bottom: 16px; }
    .dash-card h2 {
      font-family: 'Syne', sans-serif;
      font-size: 1.4rem;
      margin-bottom: 8px;
    }
    .dash-card p { color: var(--muted); font-size: 0.92rem; }

    .coming-soon {
      display: inline-block;
      background: rgba(124,92,252,0.15);
      border: 1px solid rgba(124,92,252,0.3);
      color: #a78bfa;
      border-radius: 100px;
      padding: 4px 14px;
      font-size: 0.75rem;
      font-weight: 600;
      margin-top: 16px;
    }
