/* =======================
   AUTH MODAL — DrinkGames
   ======================= */

   :root {
    --bg: #0b1220;
    --panel: #101a2b;
    --card: #0e1726;
    --border: #1f2c44;
    --text: #e8eef8;
    --muted: #9fb0c9;
    --accent: #00d3ff;
    --accent2: #7b5cff;
    --ok: #22c55e;
    --warn: #f59e0b;
    --err: #ef4444;
    --radius: 18px;
    --shadow: 0 12px 30px rgba(0,0,0,.4);
  }
  
  /* BACKDROP */
  .auth-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 100;
  }
  
  .auth-backdrop.show {
    opacity: 1;
  }
  
  /* MODAL */
  .auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(.9);
    width: min(420px, 90%);
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
    z-index: 101;
  }
  
  .auth-modal[aria-hidden="false"] {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: auto;
  }
  
  /* CLOSE BUTTON */
  .auth-close {
    position: absolute;
    top: 12px;
    right: 16px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 20px;
    cursor: pointer;
    transition: .15s;
  }
  .auth-close:hover {
    color: var(--accent);
  }
  
  /* TABS (Connexion / Inscription / Reset) */
  .auth-tabs {
    display: flex;
    justify-content: space-between;
    border-radius: 12px;
    background: var(--card);
    overflow: hidden;
    margin-bottom: 20px;
  }
  
  .auth-tab {
    flex: 1;
    padding: 10px 6px;
    border: none;
    background: none;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    transition: .15s ease;
  }
  
  .auth-tab[aria-selected="true"] {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    color: #fff;
  }
  
  .auth-tab:hover {
    color: var(--text);
  }
  
  /* PANELS */
  .auth-panel {
    display: none;
  }
  .auth-panel[hidden] {
    display: none;
  }
  .auth-panel:not([hidden]) {
    display: block;
  }
  
  /* FORMS */
  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .auth-form label {
    font-size: 14px;
    color: var(--muted);
  }
  
  .auth-form input {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
  }
  
  .auth-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(0,211,255,.2);
  }
  
  /* BUTTONS */
  .auth-primary {
    background: linear-gradient(135deg, var(--accent2), var(--accent));
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: transform .1s ease, box-shadow .15s ease;
  }
  
  .auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0,0,0,.5);
  }
  
  /* STATUS MESSAGES */
  .auth-muted {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
  }
  
  .auth-ok {
    color: var(--ok);
    font-size: 13px;
    text-align: center;
  }
  
  .auth-err {
    color: var(--err);
    font-size: 13px;
    text-align: center;
  }
  
  /* ACCESSIBILITY */
  .visually-hidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
  }
  
  /* RESPONSIVE */
  @media (max-width: 480px) {
    .auth-modal {
      width: 94%;
      padding: 18px;
    }
    .auth-tab {
      font-size: 13px;
    }
    .auth-primary {
      font-size: 14px;
    }
  }
  