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

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===== Container principal ===== */
.container {
  display: flex;
  width: 600px;
  max-width: 80%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  animation: fadeIn 0.6s ease;
}

/* ===== Section formulaire ===== */
.form-section {
  flex: 1.7;
  background: #fff;
  padding: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card {
  width: 100%;
  max-width: 400px;
}

.card h2 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
}

/* ===== Champs du formulaire ===== */
.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-wrapper {
    padding: 5px;
  display: flex;
  align-items: center; /* aligne icône + texte */
  border: 1px solid #dcdfe3;
  border-radius: 8px;
  background: #fdfdfd;
  padding: 0.5rem 0.8rem; /* réduit la hauteur */
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-wrapper:focus-within {
  border-color: #3498db;
  box-shadow: 0 0 6px rgba(52,152,219,0.25);
}

.input-wrapper i {
  color: #3498db;
  font-size: 0.85rem; /* icône plus petite */
  margin-right: 0.5rem;
}

.input-wrapper input,
.input-wrapper select {
  border: none;
  outline: none;
  background: transparent;
  flex: 3;
  font-size: 0.85rem; /* texte plus petit */
  color: #2c3e50;
}

/* ===== Bouton ===== */
.btn {
  width: 100%;
  padding: 0.7rem;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem; /* bouton plus compact */
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn i {
  margin-right: 6px;
  font-size: 0.9rem;
}

.btn:hover {
  background: #2980b9;
  transform: translateY(-2px);
}

/* ===== Liens footer ===== */
.footer-link {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #7f8c8d;
}

.footer-link a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
}

.footer-link a:hover {
  text-decoration: underline;
}

/* ===== Section logo + slogan ===== */
.logo-section {
  flex: 1.3;
  background: rgba(41, 128, 185, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 2rem;
}

.logo-section h1 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.logo-section .logo {
  max-width: 200px;
  margin-bottom: 1rem;
}

.logo-section .slogan {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

/* ===== Animation ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    width: 95%;
  }

  .form-section, .logo-section {
    flex: none;
    width: 100%;
    border-radius: 0;
  }

  .logo-section h1 {
    font-size: 1.4rem;
  }

  .logo-section .logo {
    max-width: 120px;
  }

  .logo-section .slogan {
    font-size: 0.9rem;
  }
}
