/* ===== AUTH PAGE FULLSCREEN - INSPIRÉ DE REACT ===== */
.auth-page-fullscreen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #000 0%, #0a0a0a 50%, #1a1a1a 100%);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 999999;
  display: flex;
}

/* Masquer tout le contenu du site */
body.auth-required {
  overflow: hidden;
}

body.auth-required > *:not(.auth-page-fullscreen) {
  display: none !important;
}

/* ===== EFFETS VISUELS ARRIÈRE-PLAN ===== */
.auth-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.4;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: authFloat 20s ease-in-out infinite;
}

.auth-orb-1 {
  top: 10%;
  left: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  animation-delay: 0s;
}

.auth-orb-2 {
  bottom: 20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.2) 0%, transparent 70%);
  animation-delay: 7s;
}

.auth-orb-3 {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  animation-delay: 14s;
}

@keyframes authFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -50px) scale(1.1); }
  66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* ===== CONTENU PRINCIPAL ===== */
.auth-page-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* ===== SECTION BRANDING (GAUCHE) ===== */
.auth-branding {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(26, 26, 26, 0.8) 100%);
  backdrop-filter: blur(20px);
}

.brand-content {
  max-width: 500px;
  text-align: center;
}

.brand-icon-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
}

.brand-icon {
  font-size: 80px;
  filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
  animation: brandIconPulse 3s ease-in-out infinite;
}

@keyframes brandIconPulse {
  0%, 100% {
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
    transform: scale(1);
  }
  50% {
    filter: drop-shadow(0 0 50px rgba(212, 175, 55, 0.8));
    transform: scale(1.05);
  }
}

.sparkle {
  position: absolute;
  font-size: 32px;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 {
  top: -10px;
  right: -10px;
  animation-delay: 0s;
}

.sparkle-2 {
  bottom: 0;
  left: -15px;
  font-size: 24px;
  animation-delay: 1s;
}

@keyframes sparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.4; transform: scale(1.3) rotate(180deg); }
}

.brand-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 64px;
  font-weight: 900;
  background: linear-gradient(135deg, #d4af37 0%, #fbbf24 50%, #d4af37 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 10px 0;
  letter-spacing: 4px;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.brand-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 50px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.brand-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateX(5px);
}

.feature-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== SECTION FORMULAIRE (DROITE) ===== */
.auth-form-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.auth-container-modern {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 32px;
  padding: 50px 40px;
  max-width: 480px;
  width: 100%;
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.9),
    0 0 60px rgba(212, 175, 55, 0.2);
  animation: fadeInUp 0.6s ease;
}

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

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

.auth-icon-modern {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d4af37 0%, #fbbf24 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 40px;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
  animation: iconBounce 2s ease-in-out infinite;
}

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

.auth-title-modern {
  font-family: 'Orbitron', sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: white;
  margin: 0 0 10px 0;
}

.auth-subtitle-modern {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.auth-form-modern {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-label-modern {
  font-size: 14px;
  font-weight: 700;
  color: #d4af37;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-label-icon {
  font-size: 18px;
}

.form-input-modern {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(212, 175, 55, 0.2);
  color: white;
  padding: 16px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-family: 'Space Mono', monospace;
  transition: all 0.3s ease;
}

.form-input-modern::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-input-modern:focus {
  outline: none;
  border-color: #d4af37;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.error-message-modern {
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: shakeError 0.5s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

.error-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.auth-submit-btn-modern {
  background: linear-gradient(135deg, #d4af37 0%, #fbbf24 100%);
  border: none;
  color: #000;
  padding: 18px 24px;
  border-radius: 14px;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.auth-submit-btn-modern:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

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

.auth-submit-btn-modern:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner-auth {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spinAuth 0.8s linear infinite;
}

@keyframes spinAuth {
  to { transform: rotate(360deg); }
}

.auth-toggle-modern {
  margin-top: 30px;
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-toggle-modern p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.toggle-btn-modern {
  background: none;
  border: none;
  color: #d4af37;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
  font-family: inherit;
}

.toggle-btn-modern:hover {
  color: #fbbf24;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .auth-page-content {
    flex-direction: column;
  }
  
  .auth-branding {
    padding: 40px 20px;
  }
  
  .brand-title {
    font-size: 48px;
  }
  
  .brand-features {
    display: none;
  }
  
  .auth-form-section {
    padding: 20px;
  }
  
  .auth-container-modern {
    padding: 40px 30px;
  }
}

@media (max-width: 480px) {
  .auth-branding {
    padding: 30px 15px;
  }
  
  .brand-icon {
    font-size: 60px;
  }
  
  .brand-title {
    font-size: 36px;
  }
  
  .brand-subtitle {
    font-size: 16px;
  }
  
  .auth-icon-modern {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }
  
  .auth-title-modern {
    font-size: 26px;
  }
  
  .auth-container-modern {
    padding: 32px 24px;
    border-radius: 24px;
  }
  
  .form-input-modern {
    padding: 14px 16px;
  }
}
