/* =====================================================================
   LE LABO — auth.css  (modale connexion / inscription)
   Calé sur les frames "Creation de compte" / "Connection compte".
   ===================================================================== */

.auth-backdrop {
  position: fixed; inset: 0;
  background: rgba(24, 8, 0, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px 32px; overflow: auto;
}

/* Pile : cercle (derrière) + carte (opaque) + chat (devant) */
.auth-stack { position: relative; width: 560px; max-width: 100%; }
.auth-modal {
  position: relative; z-index: 1;             /* la carte couvre le bas du cercle */
  background: #fff; border: 2px solid var(--ink); border-radius: 32px;
  padding: 74px 26px 26px;
  box-shadow: var(--shadow-card);
}
/* Grand cercle plein, moitié haute visible au-dessus de la carte */
.auth-circle { position: absolute; z-index: 0; top: -112px; left: 50%; transform: translateX(-50%); width: 184px; height: 184px; border-radius: 50%; }
/* Chat centré dans le cercle, devant la carte */
.auth-cat-img { position: absolute; z-index: 2; top: -80px; left: 50%; transform: translateX(-50%); width: 124px; height: auto; }

/* Onglets */
.auth-tabs { display: flex; gap: 20px; }
.auth-tab { flex: 1; min-height: 38px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; color: var(--ink); font-family: var(--font-body); font-weight: 600; font-size: var(--t-base); cursor: pointer; box-shadow: var(--shadow-btn); }
.auth-tab.is-active { background: var(--ink); color: #fff; }

.auth-modal h1 { font-size: var(--h3); margin-top: 26px; }
.auth-sub { margin-top: 8px; color: var(--ink); }

.auth-form { margin-top: 20px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-family: var(--font-body); font-weight: 700; font-size: var(--t-important); margin-bottom: 8px; }
.auth-field input { width: 100%; height: 46px; border: none; border-radius: 10px; background: var(--gray-light); padding: 0 15px; font-family: var(--font-body); font-size: var(--t-base); color: var(--ink); }
.auth-field input::placeholder { color: var(--gray); }

.auth-submit { width: 100%; margin-top: 6px; }
.auth-error { color: #c0392b; font-weight: 600; margin-bottom: 12px; min-height: 1px; }
.auth-switch { text-align: center; margin-top: 18px; }
.auth-switch a { font-weight: 700; color: var(--terracotta); }
