/* ==========================================================================
   1. VARIABLES & CONFIGURATION CHARTE ZUACOOP
   ========================================================================== */
:root {
  --royal: #060b18;          /* Bleu nuit très profond */
  --cyan-tech: #00a8b5;      /* Bleu cyan des circuits du logo */
  --blue-connect: #0f4c81;   /* Bleu roi de la structure du Z */
  --glass: rgba(255, 255, 255, 0.02);
  --glass-border: rgba(255, 255, 255, 0.07);
  --cyan-tech-glow: rgba(0, 168, 181, 0.15);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at top right, #0d2040 0%, var(--royal) 100%);
  min-height: 100vh;
  color: #ffffff;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* ==========================================================================
   2. CARTE DE CONNEXION LUXE / TECH
   ========================================================================== */
.login-card {
  background: var(--glass);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  width: 100%;
  max-width: 400px;
  padding: 50px 40px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.login-card h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}

.subtitle {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

/* ==========================================================================
   3. CHAMPS D'ENTRÉE ET STRUCTURE DES ICÔNES (CORRIGÉ)
   ========================================================================== */
.input-group {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
}

/* Style de base pour toutes les icônes internes */
.input-group i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  z-index: 3; /* Forcé au premier plan pour passer devant l'input */
  pointer-events: auto; /* Assure que le clic fonctionne */
}

/* Icône principale de sécurité (à gauche) */
.input-group .main-icon {
  left: 15px;
  color: var(--cyan-tech);
}

/* Icône œil pour afficher/masquer (à droite) */
.input-group .toggle-password {
  right: 15px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s;
}

.input-group .toggle-password:hover {
  color: var(--cyan-tech);
}

/* Configuration du champ texte global */
.input-group input {
  width: 100%;
  padding: 14px 45px 14px 45px; /* Dégagement gauche et droite pour les icônes */
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  color: #ffffff;
  outline: none;
  font-size: 0.95rem;
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1; /* Placé en arrière-plan par rapport aux icônes */
}

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

.input-group input:focus {
  border-color: var(--cyan-tech);
  background: rgba(0, 168, 181, 0.02);
  box-shadow: 0 0 15px var(--cyan-tech-glow);
}


/* ==========================================================================
   4. OPTIONS DE CONNEXION (Rester connecté & Mot de passe oublié)
   ========================================================================== */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: -10px 0 25px 0;
  font-size: 0.85rem;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  user-select: none;
}

.remember-me input {
  accent-color: var(--cyan-tech);
  cursor: pointer;
  width: 15px;
  height: 15px;
  margin: 0;
}

.forgot-password {
  color: var(--cyan-tech);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, text-shadow 0.2s;
}

.forgot-password:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--cyan-tech-glow);
}

/* ==========================================================================
   5. BOUTON D'AUTHENTIFICATION GRADIENT
   ========================================================================== */
.btn-login {
  background: linear-gradient(135deg, var(--cyan-tech), var(--blue-connect));
  color: #ffffff;
  width: 100%;
  padding: 16px;
  border-radius: 15px;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.2s, box-shadow 0.3s;
  margin-top: 10px;
}

.btn-login:hover {
  transform: translateY(-2px);
  opacity: 0.95;
  box-shadow: 0 10px 20px rgba(0, 168, 181, 0.25);
}

/* ==========================================================================
   6. PIED DE CARTE (LIENS D'INSCRIPTION)
   ========================================================================== */
.footer-text {
  margin-top: 30px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-text a {
  color: var(--cyan-tech);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-text a:hover {
  color: #ffffff;
  text-decoration: underline;
}
