.container {
  display: flex;
  width: 100vw; /* Utilise la largeur complète de la fenêtre de visualisation */
  height: 100vh; /* Utilise la hauteur complète de la fenêtre de visualisation */
}

.left-side, .right-side {
  display: flex;
  justify-content: center; /* Centre horizontalement le contenu */
  align-items: center; /* Centre verticalement le contenu */
}

.right-side {
  padding: 60px;
  flex: 1 1 50%;
  max-width: 600px;
  width: 100%;
}

.left-side {
  flex: 1 1 50%;
  padding: 0 100px;
  background: linear-gradient(rgb(var(--brand-color-quaternary)) 0%, rgb(var(--brand-color-secondary)) 85%, rgb(var(--brand-color-primary)) 100%);
}

.left-side > svg {
  padding: 30px;
}

.login-form {
  width: 100%;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  text-align: center;
  background-color: #FFFF;
}

#bouton-retour {
  position: absolute;
  top: -55px;
  left: 0;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  text-align: left;
  margin-bottom: 15px;
}

.input-group input {
  width: 100%;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: none;
  background-color: rgb(217, 217, 217, 0.4);
  outline: transparent;
  transition: outline-color 0.2s;
}

.input-group input:hover, .input-group input:focus {
  outline: 2px solid rgba(var(--brand-color-secondary), 0.5);
  outline-offset: 2px;
}

button {
  background-color: rgb(var(--brand-color-quaternary));
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  display: block;
  width: 100%;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-size: 18px;
}

.signup-link {
  margin: 40px 20px 20px 20px;
  padding: 20px 18px;
  color: rgb(var(--brand-color-quaternary));
  background-color: rgba(var(--brand-color-quaternary), 0.1);
  text-decoration: none;
  font-weight: bold;
  border-radius: 12px;
}

.signup-link a {
  color: rgb(var(--brand-color-quaternary));
  text-decoration: none;
  font-weight: bold;
}

input {
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"], input[type="password"] {
  padding: 10px;
  margin-bottom: 10px; /* Espacement entre les champs de saisie */
  height: 45px;
}

button[type="submit"],button[type="button"] {
  padding: 20px;
  cursor: pointer;
}

.login-header {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  color: rgb(var(--brand-color-secondary));
  background-color: rgba(var(--brand-color-primary), 0.1);
  border-radius: 15px 15px 0 0 ;
  padding: 20px 20px 5px 20px;
}

.login-header::after {
  position: absolute;
    bottom: -180px;
    content: "";
    width: calc(100% + 15px);
    height: 180px;
    background-color: rgba(var(--brand-color-primary), 0.1);
    clip-path: polygon(50% 20%, 0 0, 100% 0);
}

.login-body {
  padding: 50px 20px 0 20px;
}

h2 {
  margin: 0;
  font-size: 18px;
}

label {
  color: rgb(var(--brand-color-secondary));
}

form {
  margin: 0;
}

.login-footer button {
  border-radius: 0 0 10px 10px;
}

.bordure-erreur{
    border: 2px solid red!important;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  background-color: #dfe1e4;
  border-radius: 72px;
  border-style: none;
  flex-shrink: 0;
  height: 20px;
  margin: 0;
  position: relative;
  width: 30px;
}

.checkbox-wrapper input[type="checkbox"]::before {
  bottom: -6px;
  content: "";
  left: -6px;
  position: absolute;
  right: -6px;
  top: -6px;
}

.checkbox-wrapper input[type="checkbox"],
.checkbox-wrapper input[type="checkbox"]::after {
  transition: all 100ms ease-out;
}

.checkbox-wrapper input[type="checkbox"]::after {
  background-color: #fff;
  border-radius: 50%;
  content: "";
  height: 14px;
  left: 3px;
  position: absolute;
  top: 3px;
  width: 14px;
}

.checkbox-wrapper input[type=checkbox] {
  cursor: default;
}

.checkbox-wrapper input[type="checkbox"]:hover {
  background-color: #c9cbcd;
  transition-duration: 0s;
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background-color: #6e79d6;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  background-color: #fff;
  left: 13px;
}

.checkbox-wrapper :focus:not(.focus-visible) {
  outline: 0;
}

.checkbox-wrapper input[type="checkbox"]:checked:hover {
  background-color: #535db3;
}

@media (max-width: 1030px) {
  body {
    background-image: linear-gradient(rgb(var(--brand-color-quaternary)) 0%, rgb(var(--brand-color-secondary)) 85%, rgb(var(--brand-color-primary)) 100%);
  }

  .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    margin: auto;
  }

  .left-side {
    display: none;
  }

  .left-side > svg {
    width: 80%;
    height: auto;
  }

  .right-side {
    max-width: unset;
    padding: 0;
  }
}

@media (max-width: 550px) {
  .login-form {
    width: 100vh;
    border-radius: 0;
  }

  .login-footer button {
    border-radius: 0;
  }
}