@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background-image: url("../../images/actualite.jpg");
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  padding: 15px;
}

.container {
  background-color: #02751d;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
}

.login-container {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.left-side {
  flex: 1;
  min-width: 250px;
  background-image: url("../../images/DSC_5198.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 10px 0 0 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.left-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(27, 26, 26, 0.5);
  z-index: 1;
}

.left-side img.illustration {
  position: relative;
  z-index: 2;
  pointer-events: none;
  max-width: 70%;
  max-height: 70%;
}

.right-side {
  flex: 1;
  padding: 30px;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-text {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  text-align: center;
  color: #FFF;
}

.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 15px;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #FFF;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-clip: padding-box;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.login-button {
  background-color: #F0A945;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #F57C00;
}

.forgot-password, .create-account {
  display: block;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  margin-top: 10px;
  text-align: center;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .container {
    max-width: 95%;
    margin: 10px auto;
  }

  .login-container {
    flex-direction: column;
  }
  
  .left-side, .right-side {
    flex: none;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
  }
  
  .left-side {
    min-height: 200px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  .right-side {
    padding: 20px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

@media screen and (max-width: 576px) {
  body {
    padding: 10px;
  }

  .container {
    margin: 5px auto;
  }

  .right-side {
    padding: 15px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea,
  .login-button {
    font-size: 14px;
    padding: 8px;
  }

  .welcome-text {
    font-size: 16px;
  }

  .form-group label {
    font-size: 13px;
  }
}

@media screen and (max-width: 380px) {
  .form-group input,
  .form-group select,
  .form-group textarea,
  .login-button {
    font-size: 12px;
    padding: 6px;
  }

  .welcome-text {
    font-size: 14px;
  }

  .form-group label {
    font-size: 12px;
  }
}

/* Ensure full responsiveness */
img {
  max-width: 100%;
  height: auto;
}

/* Custom select styling to improve appearance */
.form-group select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 8px 10px;
}