/* Conteneur principal */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  text-align: center;
}

/* Fond dynamique si image définie */
.login-page.has-background {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* l'image est injectée directement en inline style via PHP */
}

/* Titre */
.login-page h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Formulaire de connexion */
.login-page form {
  background: rgba(255,255,255,0.85);
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  margin-bottom: 2rem;
}

.login-page form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.login-page form input[type="text"],
.login-page form input[type="password"],
.login-page form input[type="email"] {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-page form input[type="submit"] {
  background: #000;
  color: #fff;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.login-page form input[type="submit"]:hover {
  background: #333;
}

/* Actions supplémentaires */
.login-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-actions a {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-inscription {
  background: #0073aa;
  color: #fff;
}

.btn-inscription:hover {
  background: #005f8d;
}

.btn-mdp-oublie {
  background: #f1f1f1;
  color: #333;
}

.btn-mdp-oublie:hover {
  background: #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  .login-page {
    padding: 1rem;
  }

  .login-page form {
    padding: 1.5rem;
  }

  .login-page h2 {
    font-size: 1.6rem;
  }

  /* Boutons en full-width sur mobile */
  .login-actions a {
    width: 100%;
    text-align: center;
  }
}