
.game-signup-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: var(--cg-bg);
  /*background: #f3f4f6; /* fond gris clair comme sur le screen */
}

.game-signup-card {
  background: var(--cg-bg);
  background: #0C111C;  /* carte blanche */
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 600px;
  overflow: hidden;
  animation: fadeIn 0.5s ease;
  border-radius: 8px;  /* ou 0, 8px, etc. */
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-signup-header {
  padding: 30px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--cg-content);
}

.game-signup-header h2 {
  margin: 0;
  font-size: 1.4rem; /* plus petit */
  font-weight: 600;  /* moins épais */
}


.game-signup-header p {
  margin: 10px 0 0;
  opacity: 0.9;
  font-size: 1rem;
}

.game-signup-form {
  padding: 30px;
}

.game-error-message {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
  padding: 12px 15px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  border-left: 4px solid var(--danger-color);
  animation: shake 0.5s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.game-error-message p {
  margin: 0;
  font-size: 0.9rem;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.game-form-group {
  margin-bottom: 20px;
  position: relative;
  background-color: #020617;   /* couleur de la case */
  border: 1px solid #1f2937;   /* bordure de la case */
  border-radius: 8px;         /* ⇐ change cette valeur pour les coins */
  overflow: hidden;            /* pour que l'input suive le radius */
}


.half-width {
  flex: 1;
}

.game-form-group input {
  width: 100%;
  padding: 14px 15px;
  border: none;               /* plus de bordure sur l'input */
  border-radius: 0;           /* plus de coins ronds sur l'input */
  background-color: transparent;  /* on voit la couleur de .game-form-group */
  color: #e5e7eb;
  font-size: 1rem;
  transition: var(--transition);
}


.game-form-group input:focus {
  outline: none;
  box-shadow: 0 0 0 1px #38bdf8 inset;  /* halo bleu à l'intérieur de la case */
}


.game-form-group input::placeholder {
  color: var(--cg-muted);
}

.game-form-group .errorlist {
  list-style: none;
  padding: 0;
  margin: 5px 0 0;
  color: var(--danger-color);
  font-size: 0.85rem;
}

.game-password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--cg-muted);
  cursor: pointer;
  padding: 5px;
  transition: var(--transition);
}

.game-password-toggle:hover {
  color: var(--primary-color);
}

.password-strength-meter {
  height: 4px;
  background-color: var(--cg-border);
  border-radius: 2px;
  margin-top: 8px;
  overflow: hidden;
  display: none;
}

.strength-bar {
  height: 100%;
  width: 0;
  transition: var(--transition);
}
/* Section avatar en haut de la carte */
.avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

/* Cercle avatar */
.image-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-color: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(148, 163, 184, 0.8);
}

.image-preview__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-preview__icon i {
  font-size: 32px;
  color: #9ca3af;
}

.image-preview__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none; /* visible seulement après upload */
}

/* le champ file reste caché */
#id_profile_image {
  display: none;
}

/* Texte "Upload an Avatar" */
.game-upload-label {
  cursor: pointer;
}

.upload-text {
  color: #4f46e5;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.upload-text:hover {
  text-decoration: underline;
}


.game-upload-label:hover .upload-text {
  background-color: var(--cg-bg);
  border-color: var(--primary-color);
  color: var(--primary-color);
}



/* Messages globaux */
.game-flash-messages {
  margin-bottom: 16px;
}

.game-flash {
  padding: 10px 12px;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

/* selon message.tags : error, success, info, warning */
.game-flash-error {
  background-color: rgba(239, 68, 68, 0.08);
  border-left: 3px solid #ef4444;
  color: #fecaca;
}

.game-flash-success {
  background-color: rgba(34, 197, 94, 0.08);
  border-left: 3px solid #22c55e;
  color: #bbf7d0;
}

.game-flash-info {
  background-color: rgba(59, 130, 246, 0.08);
  border-left: 3px solid #3b82f6;
  color: #bfdbfe;
}

/* Labels et aide champ */
.game-form-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.85rem;
  color: var(--cg-muted);
}

.field-help {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--cg-muted);
}


#id_profile_image {
  display: none;
}



.game-signup-btn {
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: var(--cg-content);
  border: none;
  border-radius: var(--border-radius);
  border-radius: 8px;   /* <= coins très arrondis type "pill" */
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.game-signup-btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.game-signup-footer {
  text-align: center;
  margin-top: 20px;
  color: var(--cg-muted);
  font-size: 0.95rem;
}

.game-signup-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.game-signup-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .game-signup-card {
    max-width: 100%;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .half-width {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .game-signup-header {
    padding: 20px;
  }

  .game-signup-header h2 {
    font-size: 1.5rem;
  }

  .game-signup-form {
    padding: 20px;
  }

  .game-form-group input {
    padding: 12px 15px;
  }
}

/******** input ***********/


/* Couleur du placeholder (texte gris dans le champ) */
.game-form-group input::placeholder {
  color: #9ca3af;
}

