    :root {
      --brand-2: #2563eb;
      --brand-3: #38bdf8;
      --ink: #0f172a;
      --muted: #64748b;
      --card-bg: rgba(255, 255, 255, 0.88);
      --card-border: rgba(255, 255, 255, 0.6);
    }

    * { box-sizing: border-box; }
    html, body { height: 100%; }

    body {
      margin: 0;
      font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
      color: var(--ink);
      background:
        radial-gradient(1200px 800px at 10% 10%, #1e40af 0%, transparent 60%),
        radial-gradient(1000px 700px at 90% 90%, #0ea5e9 0%, transparent 55%),
        linear-gradient(135deg, #0b1220 0%, #0f172a 100%);
      overflow: hidden;
      position: relative;
    }

    /* Decorative animated blobs */
    .blob {
      position: absolute;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.55;
      pointer-events: none;
      animation: float 14s ease-in-out infinite;
    }
    .blob.b1 { width: 420px; height: 420px; background: #3b82f6; top: -120px; left: -120px; }
    .blob.b2 { width: 360px; height: 360px; background: #06b6d4; bottom: -120px; right: -100px; animation-delay: -6s; }
    .blob.b3 { width: 260px; height: 260px; background: #8b5cf6; top: 40%; left: 60%; animation-delay: -3s; }
    @keyframes float {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50%      { transform: translate(20px, -30px) scale(1.05); }
    }

    /* Subtle grid overlay */
    body::before {
      content: "";
      position: absolute; inset: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
      background-size: 40px 40px;
      -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
              mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%);
      pointer-events: none;
    }

    .stage {
      position: relative;
      z-index: 1;
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: 24px;
    }

    .login-card {
      width: 100%;
      max-width: 400px;
      background: var(--card-bg);
      backdrop-filter: blur(18px) saturate(140%);
      -webkit-backdrop-filter: blur(18px) saturate(140%);
      border: 1px solid var(--card-border);
      border-radius: 20px;
      box-shadow: 0 20px 60px rgba(2, 6, 23, 0.45),
                  0 2px 6px rgba(2, 6, 23, 0.2);
      padding: 36px 32px 28px;
      animation: rise 0.5s ease-out both;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .brand {
      display: flex; flex-direction: column; align-items: center; gap: 10px;
      margin-bottom: 22px;
    }
    .brand-mark {
      width: 56px; height: 56px; border-radius: 14px;
      background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
      display: grid; place-items: center;
      color: #fff; font-size: 26px;
      box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    }
    .brand h1 {
      font-size: 1.35rem; font-weight: 700; margin: 0; letter-spacing: -0.01em;
    }
    .brand p { margin: 0; color: var(--muted); font-size: 0.9rem; }

    .btn-vatsim {
      width: 100%;
      display: inline-flex; align-items: center; justify-content: center; gap: 10px;
      padding: 12px 16px;
      border-radius: 12px;
      border: 1px solid #e5e7eb;
      background: #fff;
      color: #111827;
      font-weight: 600; font-size: 0.95rem;
      cursor: pointer;
      transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
    }
    .btn-vatsim:hover {
      transform: translateY(-1px);
      border-color: #cbd5e1;
      box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    }
    .btn-vatsim:active { transform: translateY(0); }
    .btn-vatsim:focus-visible {
      outline: 3px solid rgba(37, 99, 235, 0.35);
      outline-offset: 2px;
    }
    .btn-vatsim img { height: 18px; }
    .btn-vatsim:disabled { opacity: 0.7; cursor: not-allowed; }

    .spinner {
      width: 16px; height: 16px;
      border: 2px solid rgba(0,0,0,0.15);
      border-top-color: var(--brand-2);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      display: none;
    }
    .is-loading .spinner { display: inline-block; }
    @keyframes spin { to { transform: rotate(360deg); } }

    .divider {
      display: flex; align-items: center; gap: 10px;
      color: var(--muted); font-size: 0.72rem;
      margin: 18px 0 14px;
      text-transform: uppercase; letter-spacing: 0.08em;
    }
    .divider::before, .divider::after {
      content: ""; flex: 1; height: 1px;
      background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
    }

    .help {
      text-align: center; font-size: 0.85rem; color: var(--muted); margin: 0;
    }
    .help a { color: var(--brand-2); text-decoration: none; font-weight: 500; }
    .help a:hover { text-decoration: underline; }

    .alert-box {
      display: none;
      margin-top: 14px;
      padding: 10px 12px;
      border-radius: 10px;
      background: #fef2f2;
      border: 1px solid #fecaca;
      color: #b91c1c;
      font-size: 0.85rem;
      align-items: flex-start; gap: 8px;
    }
    .alert-box.show { display: flex; }

    .footer {
      position: absolute;
      bottom: 16px; left: 0; right: 0;
      text-align: center;
      font-size: 0.78rem;
      color: rgba(255,255,255,0.6);
      z-index: 1;
    }
    .footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
    .footer a:hover { text-decoration: underline; }

    @media (max-width: 380px) {
      .login-card { padding: 28px 22px 22px; border-radius: 16px; }
      .brand-mark { width: 48px; height: 48px; font-size: 22px; }
    }

    @media (prefers-reduced-motion: reduce) {
      .blob, .login-card { animation: none !important; }
    }