  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Inter', 'Noto Sans Display', sans-serif;
      min-height: 100vh;
      display: flex;
      background: #0f172a;
      overflow: hidden;
    }

    /* ── Animated gradient background ─────────────────────── */
    .login-bg {
      position: fixed; inset: 0;
      background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 30%, #312e81 60%, #4338ca 100%);
      z-index: 0;
    }

    /* Floating orbs */
    .orb {
      position: fixed;
      border-radius: 50%;
      filter: blur(60px);
      opacity: 0.25;
      animation: floatOrb 8s ease-in-out infinite;
      pointer-events: none;
    }
    .orb-1 { width: 500px; height: 500px; background: #6366f1; top: -150px; left: -100px; animation-delay: 0s; }
    .orb-2 { width: 400px; height: 400px; background: #8b5cf6; bottom: -100px; right: -80px; animation-delay: -3s; }
    .orb-3 { width: 300px; height: 300px; background: #06b6d4; top: 40%; left: 30%; animation-delay: -6s; }

    @keyframes floatOrb {
      0%, 100% { transform: translate(0, 0) scale(1); }
      33%       { transform: translate(30px, -30px) scale(1.05); }
      66%       { transform: translate(-20px, 20px) scale(0.95); }
    }

    /* Grid pattern overlay */
    .login-bg::after {
      content: '';
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
      background-size: 50px 50px;
    }

    /* ── Layout ─────────────────────────────────────────────── */
    .login-wrapper {
      position: relative; z-index: 1;
      display: flex;
      width: 100%;
      min-height: 100vh;
    }

    /* Left side hero panel */
    .login-hero {
      flex: 1;
      display: none;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      padding: 4rem;
      max-width: 54%;
    }
    @media (min-width: 900px) { .login-hero { display: flex; } }

    .login-hero-logo {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 3rem;
    }
    .login-hero-logo .logo-icon {
      width: 54px; height: 54px;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      font-size: 1.6rem; color: #fff;
      box-shadow: 0 8px 24px rgba(99,102,241,0.4);
    }
    .login-hero-logo span {
      font-size: 1.3rem; font-weight: 700; color: #fff;
    }

    .login-hero h1 {
      font-size: clamp(2rem, 4vw, 3.2rem);
      font-weight: 800;
      color: #fff;
      line-height: 1.15;
      letter-spacing: -0.03em;
      margin-bottom: 1.25rem;
    }
    .login-hero h1 span {
      background: linear-gradient(90deg, #a5b4fc, #67e8f9);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    .login-hero p {
      font-size: 1rem; color: rgba(255,255,255,0.6);
      line-height: 1.7; max-width: 420px; margin-bottom: 2.5rem;
    }

    /* Stat chips */
    .hero-stats {
      display: flex; flex-wrap: wrap; gap: 1rem;
    }
    .hero-stat {
      background: rgba(255,255,255,0.08);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 12px;
      padding: 0.75rem 1.25rem;
      backdrop-filter: blur(10px);
      text-align: center;
    }
    .hero-stat .num {
      font-size: 1.6rem; font-weight: 800; color: #fff;
      line-height: 1;
    }
    .hero-stat .label {
      font-size: 0.72rem; color: rgba(255,255,255,0.5);
      text-transform: uppercase; letter-spacing: 0.08em;
      margin-top: 4px;
    }

    /* Quick links below */
    .hero-links {
      display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem;
    }
    .hero-link {
      background: rgba(255,255,255,0.07);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      padding: 0.5rem 1rem;
      color: rgba(255,255,255,0.7);
      font-size: 0.82rem; font-weight: 500;
      text-decoration: none;
      transition: all 0.2s;
      display: flex; align-items: center; gap: 0.5rem;
      cursor: pointer;
    }
    .hero-link:hover {
      background: rgba(255,255,255,0.14);
      color: #fff;
      transform: translateY(-2px);
    }

    /* ── Login card ─────────────────────────────────────────── */
    .login-card-wrap {
      width: 100%;
      max-width: 440px;
      margin: auto;
      padding: 2rem 1.5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    @media (min-width: 900px) { .login-card-wrap { padding: 3rem 2.5rem; } }

    .login-card {
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 24px;
      padding: 2.5rem;
      backdrop-filter: blur(20px);
      box-shadow: 0 24px 64px rgba(0,0,0,0.4);
      animation: fadeSlideIn 0.6s cubic-bezier(0.4,0,0.2,1) both;
    }
    @keyframes fadeSlideIn {
      from { opacity: 0; transform: translateY(30px) scale(0.97); }
      to   { opacity: 1; transform: translateY(0)    scale(1);    }
    }

    .login-card .card-logo {
      text-align: center; margin-bottom: 1.75rem;
    }
    .login-card .card-logo img {
      width: 85px; height: 85px; border-radius: 18px;
      
    }
    .login-card .card-logo .sys-icon {
      width: 72px; height: 72px;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      border-radius: 18px;
      display: inline-flex; align-items: center; justify-content: center;
      font-size: 2rem; color: #fff;
      box-shadow: 0 8px 24px rgba(99,102,241,0.35);
    }

    .login-card h2 {
      text-align: center;
      font-size: 1.4rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.35rem;
    }
    .login-card .subtitle {
      text-align: center;
      font-size: 0.85rem;
      color: rgba(255,255,255,0.5);
      margin-bottom: 2rem;
    }

    /* Input groups */
    .field-group { margin-bottom: 1rem; }
    .field-group label {
      display: block;
      font-size: 0.78rem;
      font-weight: 600;
      color: rgba(255,255,255,0.6);
      margin-bottom: 0.4rem;
      text-transform: uppercase;
      letter-spacing: 0.06em;
    }
    .field-wrap { position: relative; }
    .field-wrap i.field-icon {
      position: absolute; left: 14px; top: 50%;
      transform: translateY(-50%);
      color: rgba(255,255,255,0.35);
      font-size: 0.9rem;
      pointer-events: none;
    }
    .field-wrap input {
      width: 100%;
      background: rgba(255,255,255,0.07);
      border: 1.5px solid rgba(255,255,255,0.12);
      border-radius: 12px;
      padding: 0.75rem 1rem 0.75rem 2.5rem;
      color: #fff;
      font-size: 0.92rem;
      font-family: 'Inter', sans-serif;
      transition: all 0.2s;
      outline: none;
    }
    .field-wrap input::placeholder { color: rgba(255,255,255,0.3); }
    .field-wrap input:focus {
      border-color: #6366f1;
      background: rgba(99,102,241,0.08);
      box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
    }
    .field-wrap .eye-btn {
      position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
      background: none; border: none; color: rgba(255,255,255,0.35);
      cursor: pointer; font-size: 0.9rem; padding: 0;
      transition: color 0.2s;
    }
    .field-wrap .eye-btn:hover { color: rgba(255,255,255,0.7); }

    /* Login button */
    .btn-login {
      width: 100%; padding: 0.85rem;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      border: none; border-radius: 12px;
      color: #fff; font-size: 1rem; font-weight: 600;
      font-family: 'Inter', sans-serif;
      cursor: pointer; margin-top: 0.5rem;
      transition: all 0.2s;
      box-shadow: 0 4px 20px rgba(99,102,241,0.4);
      display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    }
    .btn-login:hover {
      transform: translateY(-2px);
      box-shadow: 0 8px 28px rgba(99,102,241,0.55);
    }
    .btn-login:active { transform: translateY(0); }
    .btn-login .spinner {
      display: none;
      width: 18px; height: 18px;
      border: 2px solid rgba(255,255,255,0.4);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }
    .btn-login.loading .btn-label { display: none; }
    .btn-login.loading .spinner { display: block; }

    /* Error message */
    .login-error {
      display: none;
      background: rgba(239,68,68,0.12);
      border: 1px solid rgba(239,68,68,0.25);
      border-radius: 10px;
      padding: 0.75rem 1rem;
      color: #fca5a5;
      font-size: 0.85rem;
      margin-bottom: 1rem;
      text-align: center;
    }
    .login-error.show { display: flex; align-items: center; gap: 0.5rem; }

    /* Divider */
    .login-divider {
      display: flex; align-items: center; gap: 0.75rem;
      margin: 1.5rem 0 1.25rem;
    }
    .login-divider::before, .login-divider::after {
      content: ''; flex: 1; height: 1px;
      background: rgba(255,255,255,0.1);
    }
    .login-divider span {
      font-size: 0.72rem; color: rgba(255,255,255,0.35);
      white-space: nowrap; text-transform: uppercase; letter-spacing: 0.08em;
    }

    /* Public links (mobile only shown below card) */
    .public-links { margin-top: 1.25rem; }
    .public-links .link-title {
      font-size: 0.72rem; color: rgba(255,255,255,0.35);
      text-transform: uppercase; letter-spacing: 0.08em;
      margin-bottom: 0.6rem; display: block;
    }
      .pub-btns { display: flex; flex-direction: column; gap: 0.5rem; }
    .pub-btn {
      background: rgba(255,255,255,0.06);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      padding: 0.55rem 0.75rem;
      color: rgba(255,255,255,0.6);
      font-size: 0.8rem; font-weight: 500;
      text-align: center; cursor: pointer;
      transition: all 0.2s; font-family: 'Inter', sans-serif;
    }
    .pub-btn:hover {
      background: rgba(255,255,255,0.12);
      color: #fff; transform: translateY(-1px);
    }
    .pub-btn i { margin-right: 4px; }

      /* ═══════════════════════════════════════════════
     ADVANCED BACKGROUND LAYER
  ═══════════════════════════════════════════════ */

  /* 1. Full canvas — sits behind everything */
  #bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  /* 2. Cursor spotlight glow */
  #cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
      rgba(99,102,241,.18) 0%,
      rgba(139,92,246,.10) 30%,
      transparent 70%);
    transition: opacity .3s;
  }

  /* 3. Custom cursor ring */
  #cursor-ring {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 2px solid rgba(139,92,246,.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%,-50%);
    transition: width .2s, height .2s, border-color .2s;
    mix-blend-mode: screen;
  }
  #cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #a78bfa;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%,-50%);
    box-shadow: 0 0 8px #a78bfa, 0 0 16px #a78bfa;
  }

  /* 4. Cursor trail dots — removed */

  /* 5. Floating grid overlay */
  .bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
      linear-gradient(rgba(99,102,241,.06) 1px, transparent 1px),
      linear-gradient(90deg, rgba(99,102,241,.06) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridDrift 20s linear infinite;
  }
  @keyframes gridDrift {
    0%   { background-position: 0 0; }
    100% { background-position: 60px 60px; }
  }
  .bg-grid { animation: gridDrift 60s linear infinite; }

  /* 6. Scanline noise texture */
  .bg-noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px;
  }

  /* 7. Deep space orbs (replace existing orbs with better ones) */
  .orb-new {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(80px);
    animation: orbFloat ease-in-out infinite;
  }
  .orb-new.a {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,.35), transparent 70%);
    top: -15%; left: -10%;
    animation-duration: 40s;
  }
  .orb-new.b {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,.28), transparent 70%);
    bottom: -10%; right: -8%;
    animation-duration: 52s;
    animation-delay: -16s;
  }
  .orb-new.c {
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(6,182,212,.2), transparent 70%);
    top: 40%; left: 35%;
    animation-duration: 60s;
    animation-delay: -28s;
  }
  @keyframes orbFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-30px) scale(1.06); }
    66%      { transform: translate(-25px,20px) scale(.96); }
  }

  /* 8. Floating tech badges */
  .tech-badge {
    position: fixed;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    color: rgba(255,255,255,.5);
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    pointer-events: none;
    z-index: 20;
    animation: badgeDrift ease-in-out infinite;
    white-space: nowrap;
  }
  @keyframes badgeDrift {
    0%,100% { transform: translateY(0) rotate(0deg); opacity: .4; }
    50%      { transform: translateY(-14px) rotate(1deg); opacity: .7; }
  }

  /* Ensure login card is above all background layers */
  .login-wrapper { position: relative; z-index: 10; }