/* RESET SPATIAL */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: 
    radial-gradient(circle at 20% 50%, rgba(41, 78, 152, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(101, 41, 152, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(152, 41, 113, 0.3) 0%, transparent 50%),
    linear-gradient(135deg, #0a0a1a 0%, #1a1a3a 50%, #0f0f2b 100%);
  color: #fff;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Effets d'étoiles */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent 100%),
    radial-gradient(2px 2px at 40% 70%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, #fff 50%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, #fff 50%, transparent 100%),
    radial-gradient(2px 2px at 30% 80%, #fff 50%, transparent 100%);
  background-repeat: repeat;
  background-size: 200px 200px;
  opacity: 0.4;
  animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {
  0% { opacity: 0.3; }
  100% { opacity: 0.7; }
}

/* Container spatial */
.login-container {
  width: 100%;
  max-width: 500px;
  padding: 40px 32px;
  background: rgba(255,255,255,0.05);
  border-radius: 20px;
  box-shadow: 
    0 15px 35px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
  box-shadow: 
    0 20px 45px rgba(0,0,0,0.9),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Titre spatial */
.login-container h1 {
  text-align: center;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #00d4ff 0%, #6a00ff 50%, #ff00cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 20px rgba(106, 0, 255, 0.4);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* Séparateur spatial */
hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(0, 212, 255, 0.4) 20%, 
    rgba(106, 0, 255, 0.6) 50%, 
    rgba(0, 212, 255, 0.4) 80%, 
    transparent 100%);
  margin: 30px 0;
  position: relative;
}

hr::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a3a;
  color: #00d4ff;
  padding: 0 15px;
  font-size: 0.8rem;
}

/* Formulaires */
form {
  margin-bottom: 25px;
}

/* Étiquettes spatiales */
label {
  display: block;
  margin: 15px 0 8px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Champs de saisie spatiaux */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

input[type="text"]:focus,
input[type="password"]:focus {
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 
    0 0 0 3px rgba(0, 212, 255, 0.2),
    0 8px 25px rgba(0, 0, 0, 0.4);
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
}

/* Boutons spatiaux */
input[type="submit"] {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 15px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #5a3f8c 100%);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

input[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,0.2), 
    transparent);
  transition: left 0.5s;
}

input[type="submit"]:hover::before {
  left: 100%;
}

input[type="submit"]:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 25px rgba(102, 126, 234, 0.4),
    0 5px 15px rgba(118, 75, 162, 0.3);
}

input[type="submit"]:active {
  transform: translateY(-1px);
}

/* Animation d'entrée */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container {
  animation: fadeInUp 0.8s ease-out;
}