:root {
        --bg: #080f0a;
        --surface: #0f1a11;
        --border: #1a2e1c;
        --accent: #4ade80;
        --accent2: #86efac;
        --green: #22c55e;
        --text: #efeff1;
        --text-dim: #adadb8;
        --text-mute: #53535f;
        --font: "Syne", sans-serif;
        --mono: "Space Mono", monospace;
      }
      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      html,
      body {
        height: 100%;
      }

      body {
        background: var(--bg);
        color: var(--text);
        font-family: var(--font);
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        position: relative;
        overflow: hidden;
      }

      /* ── Fond animé ── */
      .bg-glow {
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: 0;
      }
      .glow-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.25;
        animation: orb-drift 12s ease-in-out infinite alternate;
      }
      .glow-orb-1 {
        width: 500px;
        height: 500px;
        background: #15803d;
        top: -150px;
        left: -100px;
        animation-delay: 0s;
      }
      .glow-orb-2 {
        width: 400px;
        height: 400px;
        background: #4ade80;
        bottom: -100px;
        right: -50px;
        animation-delay: -4s;
      }
      .glow-orb-3 {
        width: 300px;
        height: 300px;
        background: #22c55e;
        top: 40%;
        left: 60%;
        animation-delay: -8s;
        opacity: 0.1;
      }

      /* Grille de fond */
      body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 0;
        background-image:
          linear-gradient(rgba(74, 222, 128, 0.04) 1px, transparent 1px),
          linear-gradient(90deg, rgba(74, 222, 128, 0.04) 1px, transparent 1px);
        background-size: 48px 48px;
      }

      /* ── Layout ── */
      .shell {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex: 1;
        padding: 24px;
      }

      /* ── Card login ── */
      .login-card {
        background: rgba(9, 20, 11, 0.85);
        border: 1px solid rgba(74, 222, 128, 0.2);
        border-radius: 20px;
        padding: 48px 40px;
        width: 100%;
        max-width: 440px;
        text-align: center;
        backdrop-filter: blur(20px);
        box-shadow:
          0 0 0 1px rgba(255, 255, 255, 0.04),
          0 24px 64px rgba(0, 0, 0, 0.5);
        animation: cardIn 0.6s cubic-bezier(0.22, 1, 0.36, 1);
      }

      .logo {
        font-size: 36px;
        margin-bottom: 8px;
        filter: drop-shadow(0 0 20px rgba(74, 222, 128, 0.5));
      }
      .product-name {
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.02em;
        background: linear-gradient(135deg, var(--accent), var(--accent2));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 4px;
      }
      .product-tagline {
        font-size: 13px;
        color: var(--text-mute);
        font-family: var(--mono);
        margin-bottom: 40px;
        line-height: 1.5;
      }

      /* Divider */
      .divider {
        width: 40px;
        height: 2px;
        background: linear-gradient(
          90deg,
          transparent,
          var(--accent),
          transparent
        );
        margin: 0 auto 32px;
      }

      /* Features */
      .features {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 36px;
        text-align: left;
      }
      .feature {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 10px;
      }
      .feature-icon {
        font-size: 18px;
        flex-shrink: 0;
      }
      .feature-text {
        font-size: 13px;
        color: var(--text-dim);
        line-height: 1.4;
      }
      .feature-text strong {
        color: var(--text);
        font-weight: 700;
      }

      /* Bouton Twitch */
      .btn-twitch {
        width: 100%;
        padding: 15px 24px;
        background: #9146ff;
        border: none;
        border-radius: 12px;
        color: #fff;
        font-family: var(--font);
        font-size: 15px;
        font-weight: 800;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-decoration: none;
        transition:
          background 0.2s,
          transform 0.15s,
          box-shadow 0.2s;
        position: relative;
        overflow: hidden;
      }
      .btn-twitch:hover {
        background: #4ade80;
        transform: translateY(-2px);
        box-shadow: 0 8px 28px rgba(74, 222, 128, 0.3);
      }
      .btn-twitch:active {
        transform: translateY(0);
      }
      .btn-twitch::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.12),
          transparent
        );
      }

      /* Icône Twitch SVG */
      .twitch-icon {
        width: 20px;
        height: 20px;
        fill: white;
        flex-shrink: 0;
      }

      /* Message erreur */
      .error-banner {
        display: none;
        align-items: center;
        gap: 8px;
        background: rgba(220, 38, 38, 0.1);
        border: 1px solid rgba(220, 38, 38, 0.3);
        border-radius: 10px;
        padding: 12px 14px;
        font-size: 12px;
        color: #ef4444;
        margin-bottom: 20px;
        font-family: var(--mono);
      }
      .error-banner.visible {
        display: flex;
      }

      /* Footer */
      .login-footer {
        margin-top: 20px;
        font-size: 11px;
        color: var(--text-mute);
        font-family: var(--mono);
        line-height: 1.6;
      }

      /* ── Animations ── */
      @keyframes cardIn {
        from {
          opacity: 0;
          transform: translateY(24px) scale(0.97);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }
      @keyframes orb-drift {
        from {
          transform: translate(0, 0) scale(1);
        }
        to {
          transform: translate(30px, -20px) scale(1.1);
        }
      }

      /* ── i18n lang toggle ── */
      .lang-toggle {
        position: fixed;
        top: 14px;
        right: 18px;
        z-index: 100;
        display: flex;
        align-items: center;
        gap: 4px;
      }
      .lang-pill {
        background: none;
        border: 1px solid rgba(74,222,128,.2);
        border-radius: 4px;
        color: rgba(74,222,128,.5);
        font-family: var(--mono);
        font-size: 10px;
        padding: 3px 7px;
        cursor: pointer;
        transition: color .2s, border-color .2s;
      }
      .lang-pill:hover { color: var(--accent); border-color: var(--accent); }
      .lang-pill.active { color: var(--accent); border-color: var(--accent); font-weight: 700; }
      .lang-sep { font-size: 9px; color: rgba(74,222,128,.2); }
