body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Public header/footer layout */
body.layout--toptabs.is-public {
  display: flex;
  flex-direction: column;
}

/* Overlay sombre pour ameliorer la lisibilite */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.7);
  pointer-events: none;
  z-index: 0;
}

/* Container principal */
.auth-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  min-height: calc(100vh - 260px);
  justify-content: center;
  margin: 0 auto;
}

/* Logo centre en haut */
.logo-section {
  text-align: center;
  animation: fadeInDown 0.8s ease-out;
}

.brand-logo {
  height: 140px;
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.8));
  transition: filter .3s ease;
}

.brand-logo:hover {
  filter: drop-shadow(0 10px 30px rgba(214,181,106,.5));
}

/* Container des deux blocs */
.auth-layout {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: 1100px;
  align-items: center;
  justify-content: center;
}

/* Panneau d'infos (gauche) */
.info-panel {
  flex: 1;
  max-width: 500px;
}

.info-carousel {
    background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
    border: 2px solid var(--bd);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.8);
  position: relative;
  overflow: hidden;
  min-height: 450px;
}

.info-carousel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
}

/* Carousel */
.carousel-slides {
  position: relative;
}

.carousel-slide { display: block; }

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

.slide-icon {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px rgba(214,181,106,.3));
}

.slide-title {
  font-family: 'Times New Roman', serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 12px;
}

.slide-description {
  color: #ccc;
  line-height: 1.6;
  font-size: 14px;
  margin-bottom: 20px;
}

.slide-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.slide-features li {
  padding: 8px 0;
  color: #e9e1c8;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-features li::before {
  content: "*";
  color: var(--brand);
  font-weight: 900;
  font-size: 16px;
}

/* Indicateurs de pagination */
.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}

.carousel-dot.active {
  background: var(--brand);
  width: 24px;
  border-radius: 4px;
}

.carousel-dot:hover {
  background: rgba(214,181,106,.6);
}

/* Stats en bas */
.game-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand);
  display: block;
}

.stat-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 4px;
}

/* Container formulaire (droite) */
.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  flex-shrink: 0;
}

  .login-card {
    background: linear-gradient(145deg, var(--surface-2), var(--surface-3));
    border: 2px solid var(--bd);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 
      0 20px 60px rgba(0,0,0,.8),
      inset 0 1px 0 rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}

  .login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ring), transparent);
  }

.section__title {
  margin: 0 0 8px;
  font-family: 'Times New Roman', serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(45deg, var(--brand), #fff, var(--brand));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
  text-align: center;
}

.login-subtitle {
  color: #999;
  font-size: 14px;
  margin: 0 0 32px;
  text-align: center;
  line-height: 1.5;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--brand);
  font-size: 12px;
}

.input {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--ink-inv);
  background: rgba(21,21,21,.8);
  border: 2px solid rgba(255,255,255,.12);
  transition: all .2s ease;
  font-family: inherit;
  font-size: 14px;
}

.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(214,181,106,.25);
  transform: translateY(-1px);
}

.input::placeholder {
  color: #888;
}

.field--password {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 8px;
  font-size: 12px;
  font-weight: 600;
  transition: color .2s ease;
}

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

.password-toggle .hide-text {
  display: none;
}

.password-toggle.is-visible .hide-text {
  display: inline;
}

.password-toggle.is-visible .show-text {
  display: none;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.check span {
  color: #e9e1c8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-size: 12px;
}

.btn {
  width: 100%;
  height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  font-weight: 900;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .8px;
  transition: all .2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-bottom: 16px;
}

.btn--brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #1a1a1a;
  border-color: rgba(214,181,106,.35);
  box-shadow: 0 6px 16px rgba(214,181,106,.3);
}

.btn--brand:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214,181,106,.4);
}

.btn--outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.btn--outline:hover {
  background: rgba(214,181,106,.1);
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none !important;
}

.forgot-link {
  display: block;
  text-align: center;
  color: var(--brand);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-top: 16px;
  transition: all .2s ease;
}

.forgot-link:hover {
  color: #fff;
  text-shadow: 0 0 8px rgba(214,181,106,.5);
}

.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent);
}

.divider span {
  padding: 0 16px;
}

.err {
  color: #ffcec9;
  background: linear-gradient(135deg, rgba(122,46,50,.18) 0%, rgba(122,46,50,.08) 100%);
  border: 2px solid rgba(122,46,50,.45);
  padding: 12px 16px;
  border-radius: 10px;
  margin: 16px 0;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
  font-size: 14px;
}

.caps-hint {
  display: none;
  background: rgba(245,158,11,.1);
  color: #fbbf24;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  margin-top: 8px;
  border: 1px solid rgba(245,158,11,.3);
}

.caps-hint.is-visible {
  display: block;
}

/* Animations retirées (blocs statiques) */

/* Responsive */
@media (max-width: 1024px) {
  .auth-layout {
    flex-direction: column;
    align-items: center;
  }

  .info-panel {
    max-width: 100%;
    width: 100%;
  }

  .login-container {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .auth-wrapper {
    padding: 20px 16px;
    gap: 24px;
  }

  .brand-logo {
    height: 100px;
  }

  .info-carousel {
    padding: 24px;
    min-height: 350px;
  }

  .login-card {
    padding: 24px;
  }

  .section__title {
    font-size: 24px;
  }

  .game-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
