/* ===========================
   Auth (Login + Register)
   =========================== */
   :root { color-scheme: dark; }

   body {
     margin: 0;
     min-height: 100dvh;
     display: grid;
     place-items: center;
     background: var(--bg, #0f172a);
     color: var(--text, #e5e7eb);
     font-family: system-ui, -apple-system, Segoe UI, Roboto, Poppins, Arial, sans-serif;
   }
   
   /* Cartes (login: .auth-block, register: .auth-container) */
   .auth-block,
   .auth-container {
     width: min(480px, 92vw);
     background: var(--panel-2, #111827);
     border: 1px solid var(--block-border, rgba(255,255,255,.1));
     border-radius: var(--radius-lg, 12px);
     padding: 24px 20px 18px;
     box-shadow: var(--shadow-md, 0 10px 30px rgba(0,0,0,.35));
     backdrop-filter: blur(6px);
     box-sizing: border-box;
   }
   
   .auth-block h2,
   .auth-container h2 {
     margin: 0 0 6px 0;
     font-weight: 800;
     letter-spacing: .2px;
   }
   
   /* Sous-titre / texte atténué */
   .muted { color: var(--muted, #94a3b8); font-size: .95rem; margin: 0 0 18px; }
   
   /* Brand login */
   .brand { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
   .dot { width: 10px; height: 10px; border-radius: 999px; background: var(--brand, #2563eb); box-shadow: 0 0 16px #2563ebaa; }
   
   /* ===== Formulaires ===== */
   .auth-block form,
   .auth-container form { display: grid; gap: 12px; margin-top: 12px; }
   .field { margin: 8px 0; }
   
   .label-row { display: flex; justify-content: space-between; align-items: center; }
   label { font-size: .95rem; color: var(--text-primary, #e5e7eb); }
   
   /* Inputs (login utilise .input ; register des <input> natifs) */
   .input,
   .auth-container input[type="text"],
   .auth-container input[type="email"],
   .auth-container input[type="password"] {
     width: 100%;
     background: #1a1a1d;
     border: 1px solid #3a3a3f;
     color: #fff;
     padding: 12px 12px;
     border-radius: 10px;
     font-size: 1rem;
     box-sizing: border-box;
   }
   .input:focus,
   .auth-container input:focus {
     outline: none;
     border-color: #2563eb;
     box-shadow: 0 0 0 2px rgba(37,99,235,.35);
   }
   
   /* Toggle mot de passe (login) */
   .pw-wrap { position: relative; }
   .pw-toggle {
     position: absolute; right: 10px; top: 50%; translate: 0 -50%;
     background: transparent; border: none; color: #c9c9c9; cursor: pointer; font-size: .9rem;
   }
   
   /* Boutons (100%) */
   .btn,
   .auth-container .btn {
     display: inline-flex; justify-content: center; align-items: center; gap: .5rem;
     width: 100%;
     border: none; border-radius: 10px; padding: 12px 14px; cursor: pointer;
     background: var(--brand, #2563eb); color: #fff; font-weight: 600; font-size: 1rem;
     transition: filter .15s ease, transform .06s ease;
   }
   .btn:hover { filter: brightness(1.04); }
   .btn:active { transform: translateY(1px); }
   .btn[disabled]{ opacity: .6; cursor: not-allowed; }
   
   /* Messages d’état */
   .error, #error-message {
     display: none;
     color: #ff9c9c;
     background: #3a1f20;
     border: 1px solid #6e2c2f;
     border-radius: 10px;
     padding: 10px 12px;
     font-size: .95rem;
   }
   .info {
     display: none;
     color: #b4e1ff;
     background: #1c2935;
     border: 1px solid #24455f;
     border-radius: 10px;
     padding: 8px 10px;
     font-size: .9rem;
     margin-top: 10px;
   }
   
   /* Liens */
   .link, .auth-container a { color: var(--brand-light, #93c5fd); text-decoration: none; }
   .link:hover, .auth-container a:hover { text-decoration: underline; }
   .foot { text-align: center; margin-top: 16px; color: var(--muted, #94a3b8); font-size: .95rem; }
   
   /* Responsive léger */
   @media (max-width: 420px){
     .auth-block, .auth-container { padding: 18px 14px 16px; }
   }
   