/* web/auth-screen.css — Interface d'accueil et d'authentification rétro Miami */

#auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(10px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #c5d0d9;
  user-select: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#auth-overlay[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.auth-card {
  width: 90%;
  max-width: 440px;
  background: #141b24;
  border: 2px solid #ffd700;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.25), 0 12px 36px rgba(0, 0, 0, 0.8);
  padding: 28px 24px;
  box-sizing: border-box;
  animation: auth-pop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes auth-pop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-title {
  margin: 0;
  font-family: "Courier New", monospace;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  color: #ffd700;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5), 2px 2px 0 #070a0e;
}

.auth-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #8b9bab;
}

/* Onglets Connexion / Inscription / Profil */
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #283747;
  padding-bottom: 8px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8b9bab;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.auth-tab-btn:hover {
  color: #ffd700;
}

.auth-tab-btn.active {
  color: #ffd700;
  border-bottom: 2px solid #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* Formulaires */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #a0aec0;
  text-transform: uppercase;
}

.auth-input {
  background: #0d1219;
  border: 1px solid #283747;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.auth-submit-btn {
  background: #ffd700;
  color: #0b1016;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 16px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(255, 215, 0, 0.3);
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.auth-submit-btn:hover {
  background: #ffea75;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.45);
}

.auth-submit-btn:active {
  transform: translateY(1px);
}

.auth-submit-btn:disabled {
  background: #4a5568;
  color: #718096;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Boutons secondaires */
.auth-secondary-btn {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.auth-secondary-btn:hover {
  background: #334155;
  border-color: #475569;
}

.auth-danger-btn {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid #ef4444;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.2s;
}

.auth-danger-btn:hover {
  background: rgba(239, 68, 68, 0.35);
}

/* Messages d'erreur et succès */
.auth-alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  display: none;
}

.auth-alert.on {
  display: block;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #6ee7b7;
}

/* Badge Joueur flottant dans le jeu */
#player-badge {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 20, 28, 0.88);
  border: 1.5px solid #ffd700;
  border-radius: 20px;
  padding: 6px 14px;
  color: #ffd700;
  font: 800 13px "Courier New", monospace;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

#player-badge:hover {
  background: rgba(20, 28, 40, 0.95);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.3);
}

#player-badge .avatar-icon {
  font-size: 15px;
}
