.login-container {
  flex: 1;
  position: relative;
  background-image: url("/images/page-connexion.jpg");
  background-color: var(--primary);
  background-size: contain;
  background-position: left;
  background-repeat: no-repeat;
  background-color: var(--primary);
  font-family: var(--font-primary);
  overflow-y: auto;
}

.login-form {
  position: absolute;
  color: white;
  right: 250px;
  width: 900px;
  height: 100%;
  display: flex;
  gap: 2.4rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
}

.login-title {
  font-family: var(--font-secondary);
  font-size: 4.5rem;
}

.login-input {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--secondary);
  padding: 7px 0;
  margin: 20px 0;
  font-family: var(--font-primary);
  font-size: 2rem;
  color: white;
  outline: none;
  transition: border-color 0.3s;
}

.login-input::placeholder {
  color: white;
}

.login-input:-webkit-autofill {
  box-shadow: 0 0 0 1000px var(--primary) inset !important;
  -webkit-text-fill-color: white !important;
  caret-color: white !important;
  transition: background-color 5000s ease-in-out 0s;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 15px;
}

.login-remember {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 0.5rem;
}

.login-remember input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 24px;
  height: 22px;
  margin-bottom: 5px;
  background-color: var(--primary);
  border: 4px solid white;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.login-remember input[type="checkbox"]::before {
  content: "✔";
  color: white;
  font-size: 11.8px;
  display: none;
}

.login-remember input[type="checkbox"]:checked::before {
  display: block;
}

.login-remember > span {
  font-family: var(--font-primary);
  color: white;
  font-size: 2rem;
}

.login-forgot {
  font-family: var(--font-primary);
  color: white;
  text-decoration: underline;
  font-size: 2rem;
}

.login-button {
  width: 200px;
  min-height: 50px;
  margin-top: 20px;
  border: 4px solid white;
  color: white;
  border-radius: 40px;
  background-color: inherit;
  font-family: var(--font-secondary);
  font-size: 1.1rem;
  cursor: pointer;
}

.login-button:hover {
  transform: scale(1.03);
  background-color: #458b83;
}

.login-validation-message {
  color: yellow;
  font-size: 1.7rem;
  font-weight: bold;
  text-align: center;
  margin-top: 10px;
  position: absolute;
  bottom: -40px;
}

.login-validation-message > .validation-summary-errors > ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.login-register {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
}

.login-arrow {
  position: absolute;
  right: 300px;
  top: 30px;
}

.login-arrow-text {
  position: absolute;
  color: white;
  right: 120px;
  top: 120px;
  rotate: -8deg;
  font-family: var(--font-tertiary);
  font-size: 2rem;
  font-weight: bold;
}

@media (max-width: 2150px), (max-height: 900px) {
  .login-form {
    padding-top: 50px;
    justify-content: normal;
  }
}

@media (max-width: 1400px) {
  .login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .login-form {
    padding-top: 30px;
    position: static;
    transform: none;
  }
}

@media (max-width: 970px) {
  .login-form {
    width: 450px;
  }

  .login-title,
  .login-input,
  .login-remember > span,
  .login-forgot {
    font-size: 1rem;
  }

  .login-title {
    font-size: 2.5rem;
  }

  .login-validation-message {
    font-size: 1.2rem;
  }
}
