/* ----- Style global ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh; /* pour centrer verticalement */
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #007bff, #004085);
}

/* ----- Conteneur principal ----- */
.login-container {
  display: flex;
  width: 90%;
  max-width: 1100px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* ----- Partie gauche ----- */
.left-section {
  flex: 1;
  background: #f8f9fa;
  padding: 50px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.left-section .logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50px;
  margin: 0 auto 20px;
}

.left-section h1 {
  color: #004085;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.left-section .welcome-text {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.left-section .quote {
  margin-top: 20px;
  color: #007bff;
  font-style: italic;
}

/* ----- Partie droite ----- */
.right-section {
  flex: 1;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.login-box {
  width: 100%;
  max-width: 350px;
}

.login-box h2 {
  text-align: center;
  color: #004085;
  margin-bottom: 20px;
}

.alert {
  background: #f8d7da;
  color: #721c24;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 15px;
}

label {
  display: block;
  color: #333;
  margin-bottom: 5px;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: border 0.3s;
}

input:focus {
  border-color: #007bff;
  outline: none;
}

button {
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

button:hover {
  background: #0056b3;
}
/* Texte copyright sous le bouton */
.login-box .copyright {
    text-align: center;
    color: #555;
    font-size: 10px;
    margin-top: 10px;
}


/* ----- Responsive: tablette et mobile ----- */
@media (max-width: 900px) {
  .login-container {
    width: 95%;
  }

  .left-section {
    padding: 30px 20px;
  }

  .right-section {
    padding: 30px 20px;
  }
}

/* Empilement pour petit écran : left au-dessus, right en bas */
@media (max-width: 750px) {
  .login-container {
    flex-direction: column;
    width: 95%;
    margin: 20px;
  }

  .left-section, .right-section {
    padding: 20px;
  }

  .left-section {
    order: 0; /* en haut */
    text-align: center;
  }

  .right-section {
    order: 1; /* en bas */
  }

  .left-section .logo {
    width: 80px;
    height: 80px;
    margin-bottom: 12px;
  }

  .left-section h1 {
    font-size: 1.2rem;
  }

  .login-box {
    max-width: 100%;
  }
}

/* Pour très petits écrans (mobile très étroit) */
@media (max-width: 420px) {
  .left-section h1 { font-size: 1.05rem; }
  .left-section .welcome-text { font-size: 0.95rem; }
  .login-box h2 { font-size: 1.05rem; }
  .left-section, .right-section { padding: 16px; }
}
