* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html, body {
  height: auto;
  overflow: auto;
}

body {
  display: flex;
  flex-direction: row;
}

a {
  text-decoration: none;
  color: #007bff;
}

.left {
  width: 50%;
  background: #007bff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.left img {
  width: 100%;
  height: 80%;
  object-fit: cover;
}

.right {
  width: 50%;
  background-color: #fff;
  overflow-y: auto;
  padding: 40px 30px;
}

.form-container {
  width: 70%;
  max-width: 700px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  color: #007bff;
  font-size: 2.2em;
  margin-bottom: 25px;
}

label {
  display: block;
  margin-top: 20px;
  color: #007bff;
  font-weight: bold;
}

input, select, textarea {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border: 1px solid #007bff;
  border-radius: 6px;
  font-size: 1em;
}

textarea {
  height: 100px;
  resize: vertical;
}

select[multiple] {
  height: auto;
}

button {
  margin-top: 30px;
  width: 100%;
  padding: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1.1em;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9em;
  color: #A4A7AD;
}

.login-link a {
  color: #007bff;
  text-decoration: none;
}

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

/* Responsive design */
@media (max-width: 1024px) {
  body {
    flex-direction: column;
  }

  .left, .right {
    width: 100%;
    height: auto; /* ne pas forcer 50vh */
  }

  .right {
    overflow: visible; /* ne pas forcer le scroll interne */
    padding: 25px 20px;
  }

  h2 {
    font-size: 1.7em;
  }
}


@media (max-width: 600px) {
  .form-container {
    padding: 0 10px;
  }

  h2 {
    font-size: 1.4em;
  }

  button {
    font-size: 1em;
  }
}