/* === Fond statique === */
body.login-page {
  margin: 0;
  min-height: 100vh;
  background: #000814 url('/../assets/login-bg.jpg') center center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
}

/* Halo central bleu doux */
body.login-page::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(0,160,255,0.15), rgba(0,0,0,0.9) 80%);
  z-index: 0;
}

/* === Bloc principal === */
.login-box {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 16px;
  padding: 40px 60px;
  box-shadow: 0 0 40px rgba(0, 200, 255, 0.25);
  color: #fff;
  display: flex;
  gap: 60px;
  max-width: 950px;
  width: 90%;
  margin: 60px auto;
  flex-wrap: nowrap;
}

/* === Section gauche === */
.login-left {
  flex: 1;
  text-align: center;
}
.login-left .logo {
  width: 110px;
  margin-bottom: 25px;
  filter: drop-shadow(0 0 12px rgba(0,200,255,0.6));
}
.login-left h1 {
  font-size: 22px;
  margin-bottom: 10px;
}
.login-left p {
  font-size: 15px;
  color: #d8e9ff;
  line-height: 1.5;
}

/* === Section droite (formulaire) === */
.login-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-form h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 22px;
  color: #00d9ff;
}
.login-form label {
  font-weight: 500;
  margin-top: 10px;
  display: block;
}
.login-form input,
.login-form select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 8px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  outline: none;
}
.login-form input:focus,
.login-form select:focus {
  border-color: #00baff;
  background: rgba(255,255,255,0.18);
}
.login-form button {
  margin-top: 20px;
  padding: 12px;
  border: none;
  background: linear-gradient(90deg, #00aaff, #0077ff);
  color: #fff;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}
.login-form button:hover {
  opacity: 0.85;
}
.error {
  background: rgba(255,0,0,0.1);
  border: 1px solid rgba(255,0,0,0.4);
  color: #ff8080;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 15px;
}
.signup {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}
.signup a {
  color: #00c6ff;
  text-decoration: none;
}
.signup a:hover {
  text-decoration: underline;
}

/* === Sélecteur de langue === */
.lang-switcher {
  position: fixed;
  top: 60px;
  right: 400px;
  background: rgba(0, 30, 60, 0.6);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 6px 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: 'Poppins', sans-serif;
  z-index: 100;
  box-shadow: 0 0 15px rgba(0, 180, 255, 0.3);
  transition: all 0.3s ease;
}
.lang-switcher:hover {
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.5);
}
.lang-switcher a {
  color: #00d9ff;
  text-decoration: none;
  margin: 0 4px;
  transition: color 0.3s ease;
}
.lang-switcher a.active {
  color: #fff;
}
.lang-switcher a:hover {
  color: #fff;
}

/* === Avatar (signup) === */
.avatar-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 10px auto;
  border: 2px solid #00aaff;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .lang-switcher {
    right: 40px;
    top: 25px;
    padding: 5px 10px;
  }
}

@media (max-width: 820px) {
  body.login-page {
    align-items: flex-start;
    padding-top: 40px;
  }

  .login-box {
    flex-direction: column;
    gap: 30px;
    padding: 30px 25px;
    width: 95%;
    margin: 30px auto;
  }

  .login-left,
  .login-form {
    flex: 1 1 100%;
    text-align: center;
  }

  .login-left .logo {
    width: 90px;
  }

  .login-left h1 {
    font-size: 20px;
  }

  .login-left p {
    font-size: 14px;
  }

  .login-form h2 {
    font-size: 20px;
  }

  .lang-switcher {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 480px) {
  .login-box {
    padding: 25px 20px;
  }
  .login-form input,
  .login-form select,
  .login-form button {
    font-size: 15px;
  }
  .login-form button {
    padding: 10px;
  }
}
