/* ==========================================
   XDVision – accueil.css
   Utilisé pour : /accueil, /login, /mot-de-passe-oublie, etc.
   Ce fichier gère uniquement les styles spécifiques
   aux pages publiques avant connexion.
========================================== */

/* === HERO DE LA PAGE D'ACCUEIL === */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: url('../img/xdvision-bg-fallback.jpg') center center / cover no-repeat;
}
.hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  text-align: center;
  color: white;
  animation: fadeIn 1.6s ease-in-out both;
}
.hero-logo {
  width: clamp(160px, 20vw, 280px);
  margin-bottom: 2rem;
  animation: fadeIn 1.6s ease-in-out both, glowPulse 2s ease-out;
}
.hero .btn-main {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  padding: clamp(0.5rem, 1vw, 0.9rem) clamp(1.2rem, 2.5vw, 2rem);
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 1vw;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  animation: fadeIn 2s ease-in-out both;
}
.hero .btn-main:hover {
  background-color: var(--color-primary-hover);
}

/* === FORMULAIRES COMMUNS : login, mdp oublié, réinit, choix orga === */

/* FOND & CONTAINER */
.login-page-bg {
  background: url('../img/xdvision-bg-fallback.jpg') center center / cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
  overflow: hidden;
  animation: bgFadeIn 1s ease-out both;
}
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--border-radius, 12px);
  box-shadow: var(--shadow-soft, 0 4px 12px rgba(0, 0, 0, 0.2));
  animation: loginFadeInUp 1s ease-out both;
}
.login-container p {
  color: #ccc;
}

/* LOGO */
.login-logo {
  width: clamp(120px, 18vw, 220px);
}

/* FORMULAIRE */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  width: 90vw;
  max-width: 400px;
  padding: 0;
}
.login-form input {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  border: none;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.08);
  color: white;
  text-align: center;
  outline: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}
.login-form input:focus {
  background-color: rgba(255, 255, 255, 0.12);
}
.login-form input::placeholder {
  color: #ccc;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  opacity: 0.8;
  font-family: 'Segoe UI', 'Roboto', sans-serif;
}

/* BOUTON STANDARD */
.login-form button {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  background-color: var(--color-primary, #2962FF);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.login-form button:hover {
  background-color: var(--color-primary-hover, #0039cb);
}

/* BOUTONS DE CHOIX D’ORGANISATION */
.login-form button[name="organisation_id"] {
  min-width: 280px;
  font-size: 0.8rem;
}

/* LIEN MOT DE PASSE OUBLIE */
.login-forgot {
  margin-top: -0.5rem;
  font-size: 0.9rem;
  color: #ccc;
  text-decoration: underline;
  text-align: center;
}
.login-forgot a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}
.login-forgot a:hover {
  color: white;
}

/* ANIMATIONS */
@keyframes fadeIn {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%   { filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5)); }
  50%  { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)); }
  100% { filter: drop-shadow(0 0 0px rgba(0, 0, 0, 0)); }
}
@keyframes loginFadeInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes bgFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* RESPONSIVE */
@media (max-width: 350px) {
  .login-form {
    max-width: 95vw;
  }
}
