/* ═══════════════════════════════════════════════════════════
   auth.css — Écran de connexion
   ═══════════════════════════════════════════════════════════ */

/* ── FOND DE L'ÉCRAN CONNEXION ────────────────────────────── */
#ecran-connexion {
  /* Fond avec dégradé diagonal chaud */
  background:
    radial-gradient(ellipse at 30% 20%, rgba(245,166,35,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 80%, rgba(78,205,196,0.06) 0%, transparent 50%),
    var(--fond-app);
  position: relative;
  overflow: hidden;
}

/* Décoration géométrique en arrière-plan */
#ecran-connexion::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(245,166,35,0.08);
  border-radius: 50%;
  pointer-events: none;
}

#ecran-connexion::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(78,205,196,0.06);
  border-radius: 50%;
  pointer-events: none;
}

/* ── CARTE CENTRALE ───────────────────────────────────────── */
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--fond-carte);
  border: 1px solid var(--bordure);
  border-radius: 20px;
  padding: 36px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Ombre portée avec teinte ambre */
  box-shadow:
    var(--ombre),
    var(--ombre-accent);
  position: relative;
  z-index: 1;
  /* Animation d'entrée */
  animation: apparition 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes apparition {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Ligne décorative en haut de la carte */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

/* ── LOGO / ICÔNE ─────────────────────────────────────────── */
.auth-logo {
  font-size: 48px;
  text-align: center;
  margin-bottom: 12px;
  line-height: 1;
  /* Légère animation de flottement */
  animation: flottement 3s ease-in-out infinite;
}

@keyframes flottement {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* ── TITRES ───────────────────────────────────────────────── */
.auth-titre {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.8px;
  color: var(--accent);
  margin-bottom: 4px;
}

.auth-sous-titre {
  font-size: 13px;
  color: var(--texte-secondaire);
  text-align: center;
  margin-bottom: 28px;
  font-weight: 400;
}

/* ── CHAMPS DU FORMULAIRE ─────────────────────────────────── */
.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.champ label {
  font-size: 12px;
  font-weight: 700;
  color: var(--texte-secondaire);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── BOUTON CONNEXION ─────────────────────────────────────── */
/* On surcharge .btn-primaire pour cet écran */
#ecran-connexion .btn-primaire {
  margin-top: 6px;
  padding: 14px;
  font-size: 15px;
  border-radius: var(--rayon);
  /* Dégradé subtil pour plus d'impact */
  background: linear-gradient(135deg, var(--accent) 0%, #e8961a 100%);
  position: relative;
  overflow: hidden;
}

/* Effet de brillance au survol */
#ecran-connexion .btn-primaire::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-15deg);
  transition: left 0.5s ease;
}

#ecran-connexion .btn-primaire:hover::after {
  left: 130%;
}

/* ── ASTUCE MOT DE PASSE ──────────────────────────────────── */
.auth-hint {
  text-align: center;
  font-size: 12px;
  color: var(--texte-discret);
  margin-top: 16px;
  padding: 10px;
  background: var(--fond-app);
  border-radius: var(--rayon-petit);
  border: 1px dashed var(--bordure);
}

.auth-hint strong {
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}
