/* Général */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('../IMAGES/FondCNX.png') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  text-align: center;
  padding: 30px;
}

h1 {
  margin-bottom: 20px;
  font-size: 2em;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Conteneur principal */
#authForms {
  max-width: 500px;
  margin: auto;
  background: rgba(0, 0, 0, 0.75);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
  margin-top: 10%;
}

/* Onglets */
.tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  border-bottom: 2px solid #00bfff;
}

.tab-button {
  flex: 1;
  background: none;
  border: none;
  color: #ccc;
  font-weight: bold;
  font-size: 16px;
  padding: 12px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-button:hover {
  color: #fff;
}

.tab-button.active {
  color: #fff;
  border-bottom: 3px solid #00bfff;
}

/* Sections */
.tab-content {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.tab-content.active {
  display: flex;
}

/* Champs de formulaire */
input[type="text"],
input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  background-color: #222;
  color: #fff;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

input::placeholder {
  color: #aaa;
}

input:focus {
  outline: none;
  box-shadow: 0 0 6px #00bfff;
}

/* Boutons modernisés */
button {
  position: relative;
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  background: linear-gradient(135deg, #00bfff, #009fd4);
  color: white;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 8px rgba(0, 191, 255, 0.35);
  overflow: hidden;
}

/* Glow discret sous le bouton */
button::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(0, 191, 255, 0.35),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

/* Hover */
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 191, 255, 0.45);
}

button:hover::before {
  opacity: 1;
}

/* Click */
button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 5px rgba(0, 191, 255, 0.3);
}
/* Messages */
p {
  font-size: 0.9rem;
  margin-top: 8px;
}

.tab-button.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: default;
}


/* Conteneurs des listes : #joinedserveurs ul, #availableserveurs ul */
/* Items */
.srv-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: .5rem 1rem;
  padding: .75rem 1rem;
  border: 1px solid #2b2f3a;
  border-radius: .75rem;
  background: #11141a;
  color: #e8ecf1;
  margin: .5rem 0;
}
.srv-item--disabled {
  opacity: .6;
}

/* Nom + petit meta (slug) */
.srv-name { font-weight: 600; }
.srv-meta { color: #9aa4b2; margin-left: .25rem; }

/* Actions (boutons à droite) */
.srv-actions { display: flex; gap: .5rem; }

/* Badges (ex: fermé) */
.srv-badge {
  margin-left: .5rem;
  font-size: .85rem;
  padding: .15rem .5rem;
  border-radius: .5rem;
  background: #273042;
  color: #c7d2fe;
}
.srv-badge--locked { background: #3a2430; color: #f6c2d0; }

/* Boutons */
.srv-btn {
  padding: .5rem .9rem;
  border-radius: .5rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  transition: transform .06s ease, opacity .2s ease, background .2s ease;
}
.srv-btn:active { transform: translateY(1px); }

.srv-btn--enter {
  background: #1f6feb;
  color: white;
  border-color: #1a5ec9;
}
.srv-btn--enter:hover { background: #2b79f0; }

.srv-btn--join {
  background: #10b981;
  color: #07271e;
  border-color: #0e9e6f;
}
.srv-btn--join:hover { background: #13c292; }

.srv-btn--disabled {
  background: #232833;
  color: #9aa4b2;
  cursor: not-allowed;
}

/* États vides */
.empty-state {
  list-style: none;
  padding: 1rem;
  border: 1px dashed #2b2f3a;
  border-radius: .75rem;
  text-align: center;
  color: #aab4c2;
  background: #0c0f14;
  margin: .5rem 0;
}
.empty-icon { font-size: 1.4rem; margin-bottom: .25rem; }
.empty-text strong { color: #e8ecf1; }

select{
flex: 1;
min-width: 120px;
background: #222;
color: #fff;
border: 1px solid #444;
border-radius: 4px;
padding: 6px 8px;
outline: none;
transition: border-color 0.2s, background 0.2s;
}

/* ====== OGame-like Cards (Inscription) ====== */
.register-servers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.server-card {
  position: relative;
  background: radial-gradient(120% 140% at 80% -20%, rgba(0,255,255,0.06), transparent 60%),
              radial-gradient(90% 80% at 0% 110%, rgba(255,255,255,0.05), transparent 50%),
              linear-gradient(180deg, rgba(20,28,36,0.9), rgba(9,12,17,0.9));
  border: 1px solid rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.06) inset, 0 10px 20px rgba(0,0,0,0.35);
  border-radius: 14px;
  padding: 14px;
  color: #dbe8ff;
  overflow: hidden;
  transition: transform .15s ease, border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}

.server-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.1) inset, 0 14px 26px rgba(0,0,0,0.45);
}

.server-card.offline {
  filter: grayscale(0.25) brightness(0.9);
  opacity: .75;
}

.server-card .header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.server-card .planet {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 35%, rgba(255,255,255,0.35), rgba(255,255,255,0) 45%),
    radial-gradient(circle at 40% 60%, rgba(0,185,255,0.25), rgba(0,185,255,0) 50%),
    radial-gradient(circle at 30% 30%, rgba(0,255,190,0.12), rgba(0,255,190,0) 60%),
    #0d1f2a;
  box-shadow: inset -8px -8px 18px rgba(0,0,0,0.5), 0 0 10px rgba(0,255,255,0.15);
  border: 1px solid rgba(0,255,255,0.2);
}

.server-card .title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
}

.badges {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid;
  letter-spacing: .2px;
}

.badge-open {
  color: #19ffc8;
  border-color: rgba(25,255,200,.4);
  background: rgba(25,255,200,.08);
  text-shadow: 0 0 4px rgba(25,255,200,.4);
}

.badge-closed {
  color: #ff9f60;
  border-color: rgba(255,159,96,.35);
  background: rgba(255,159,96,.07);
}

.server-card .stats {
  display: flex;
  gap: 12px;
  margin: 8px 0 12px;
  font-size: 12px;
  opacity: .9;
}

.server-card .stat {
  display: flex;
  gap: 6px;
  align-items: center;
}

.server-card .stat .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #38eaff, #00c6ff);
  box-shadow: 0 0 6px rgba(0, 255, 255, .5);
}

.server-card .actions {
  display: flex;
  gap: 8px;
}

.server-card button {
  appearance: none;
  border: 1px solid rgba(0,255,255,.4);
  background: linear-gradient(180deg, rgba(0,180,255,.12), rgba(0,220,255,.08));
  color: #e9fbff;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .1s ease, opacity .2s ease;
}

.server-card button:hover:not(:disabled) {
  box-shadow: 0 0 12px rgba(0,255,255,.35);
  transform: translateY(-1px);
}

.server-card button:disabled {
  opacity: .55;
  border-color: rgba(255,159,96,.35);
  background: linear-gradient(180deg, rgba(255,160,90,.08), rgba(255,120,70,.05));
  cursor: not-allowed;
}

/* Energy shimmer line */
.server-card::after {
  content: "";
  position: absolute;
  inset: -120% -50% auto -50%;
  height: 240%;
  transform: rotate(35deg);
  background: linear-gradient(90deg, transparent, rgba(0,255,255,.08), transparent);
  animation: energySweep 4.5s linear infinite;
  pointer-events: none;
}
@keyframes energySweep {
  0%   { transform: translateX(-40%) rotate(35deg); }
  100% { transform: translateX(40%)  rotate(35deg); }
}

/* Empty state */
.empty-register {
  margin-top: 16px;
  padding: 18px;
  border: 1px dashed rgba(0,255,255,.25);
  border-radius: 12px;
  color: #bfefff;
  background: linear-gradient(180deg, rgba(0,25,35,.35), rgba(0,18,28,.25));
  text-align: center;
}
.empty-register strong {
  color: #19ffc8;
}
.empty-register .hint {
  font-size: 12px;
  opacity: .85;
  margin-top: 6px;
}


/* Section serveurs disponibles */
#serversSection {
  margin-top: 25px;
  text-align: left;
}

#serversSection h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

#serversMessage.muted {
  font-size: 13px;
  opacity: .8;
  margin-bottom: 10px;
}

/* Wrapper du tableau */
.servers-wrap {
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 191, 255, 0.2);
  overflow-x: auto; /* sécurité mobile */
}

/* Tableau stylé façon “cartes” */
.servers-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px; /* espace entre les lignes = effet cartes */
}

/* En-tête */
.servers-table thead th {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #b8dafe;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

/* Lignes */
.servers-table tbody tr {
  background: radial-gradient(circle at 0 0, rgba(0, 255, 255, 0.08), transparent 55%),
              linear-gradient(135deg, rgba(10, 15, 25, 0.96), rgba(5, 8, 14, 0.95));
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  overflow: hidden;
}

.servers-table tbody tr:hover {
  box-shadow: 0 0 18px rgba(0, 191, 255, 0.3);
  transform: translateY(-1px);
}

/* pour que le border-radius marche avec border-spacing */
.servers-table tbody tr > td:first-child {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.servers-table tbody tr > td:last-child {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

/* Cellules */
.servers-table td {
  padding: 10px 12px;
  font-size: 14px;
  color: #e4f2ff;
  border: none;
}

/* Colonne "Univers" un peu plus mise en avant */
.servers-table td:first-child {
  font-weight: 600;
  font-size: 15px;
}

/* Colonne paramètres : texte plus discret si brut */
.servers-table td:nth-child(3) {
  font-size: 13px;
  color: #b0c4d8;
}

/* Badges de statut que tu peux utiliser côté JS (optionnel) */
.server-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.server-status-open {
  background: rgba(16, 185, 129, 0.15);
  color: #6ef5c3;
  border: 1px solid rgba(16, 185, 129, 0.5);
}

.server-status-closed {
  background: rgba(248, 113, 113, 0.1);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.5);
}

/* Bouton dans le tableau (réutilise tes styles globaux) */
.servers-table td button {
  font-size: 13px;
  padding: 7px 12px;
}

/* DISCORD */
.discord-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1b1e2d;
    border: 1px solid rgba(255,255,255,0.07);
    padding: 18px 22px;
    border-radius: 14px;
    color: #fff;
    max-width: 450px;
}

.discord-card img {
    width: 50px;
    height: 50px;
}

.dc-text h3 {
    margin: 0;
    font-size: 20px;
}

.dc-text p {
    margin: 2px 0 0;
    opacity: .85;
    font-size: 14px;
}

/* --- Bouton --- */
.dc-join {
    position: relative;
    margin-left: auto;
    padding: 10px 18px;
    background: #5865F2;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Texte indépendant du glow */
.dc-join .btn-text {
    position: relative;
    z-index: 3;
}

/* Glow animé derrière */
.dc-join .btn-glow {
    position: absolute;
    top: 0;
    left: -130%;
    width: 160%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.6s ease;
    z-index: 2;
}

/* Hover */
.dc-join:hover {
    background: #4650c7;
}

.dc-join:hover .btn-glow {
    left: 130%;
}


/* Conteneur général de la section serveurs */
#chooseserveursection {
  max-width: 700px;
  margin: 0 auto;
}

/* Titre des blocs */
.serveurs-list h3 {
  margin: 15px 0 10px;
  font-size: 18px;
  font-weight: 700;
}

/* UL sans puces */
.serveurs-list .serveurs {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Chaque serveur = une ligne stylée */
.serveur-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.serveur-item + .serveur-item {
  margin-top: 10px; /* ajuste à 12/14 si tu veux encore plus d’espace */
}
/* Nom du serveur */
.serveur-name {
  font-size: 15px;
  font-weight: 600;
}

/* Bouton serveur (reprend ton style modernisé) */
.btn-serveur {
  position: relative;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(135deg, #00bfff, #009fd4);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 3px 8px rgba(0, 191, 255, 0.35);
}

.btn-serveur:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 191, 255, 0.45);
  background: linear-gradient(135deg, #00b5ff, #008fc0);
}

.btn-serveur:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 191, 255, 0.3);
}