/* ============================================================
   Mission ORBITA — Page d'authentification
   COLEAN Académie · Charte spécifique au jeu
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============================================================
   ÉCRAN AUTH
   ============================================================ */
.screen-auth {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #0A1929 0%, #1565C0 100%);
  color: white;
  overflow-x: hidden;
  position: relative;
  text-align: center;
}

.screen-auth.active {
  display: flex !important;
}

/* Particules de fond avec couleur d'accent */
.screen-auth::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 107, 53, 0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.auth-container {
  max-width: 720px;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 60px 40px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.auth-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  display: inline-block;
}

.auth-logo-float {
  animation: float 3s ease-in-out infinite;
}

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

/* Badge avec couleur d'accent du jeu */
.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 53, 0.20);
  border: 1px solid #FF6B35;
  color: #FF8A5C;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.auth-badge-locked {
  background: rgba(184, 73, 31, 0.20);
  border-color: #B8491F;
  color: #E07B39;
}

.auth-badge-expired {
  background: rgba(212, 175, 55, 0.20);
  border-color: #D4AF37;
  color: #F0CB5A;
}

.auth-badge-loading {
  background: rgba(245, 136, 0, 0.20);
  border-color: #F58800;
  color: #FFB347;
}

.auth-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 179, 71, 0.3);
  border-top-color: #FFB347;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.auth-title {
  font-size: 42px;
  margin-bottom: 14px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: white;
}

.auth-subtitle {
  font-size: 19px;
  opacity: 0.9;
  margin-bottom: 28px;
  font-weight: 300;
  font-style: italic;
}

.auth-description {
  font-size: 15px;
  opacity: 0.78;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* Section "features" */
.auth-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.auth-feature {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 12px;
  transition: all 0.2s;
}

.auth-feature:hover {
  background: rgba(255, 107, 53, 0.10);
  border-color: rgba(255, 107, 53, 0.30);
  transform: translateY(-2px);
}

.auth-feature-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.auth-feature-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

/* Section "options" pour la page expirée */
.auth-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  text-align: left;
}

.auth-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #FF8A5C;
  border-radius: 10px;
  padding: 14px 18px;
  transition: all 0.2s;
}

.auth-option:hover {
  background: rgba(255, 107, 53, 0.08);
  transform: translateX(3px);
}

.auth-option-title {
  font-size: 14px;
  font-weight: 700;
  color: #FF8A5C;
  margin-bottom: 4px;
}

.auth-option-desc {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

.auth-help {
  font-size: 14px;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA avec couleur du jeu */
.auth-cta {
  display: inline-block;
  background: #FF8A5C;
  color: white;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(255, 107, 53, 0.30);
}

.auth-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255, 107, 53, 0.50);
  filter: brightness(1.1);
}

.auth-footer {
  margin-top: 32px;
  font-size: 12px;
  opacity: 0.5;
  letter-spacing: 0.5px;
}

.auth-footer a {
  color: #FF8A5C;
  text-decoration: none;
}

@media (max-width: 600px) {
  .auth-container { padding: 40px 24px; }
  .auth-title { font-size: 30px; }
  .auth-subtitle { font-size: 16px; }
  .auth-logo { width: 90px; height: 90px; }
  .auth-features { grid-template-columns: 1fr; }
}
