.login-outer {
  /* min-height: 100vh; */
  margin-top: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* justify-content: center; */
  position: relative;
}

#loginError {
  word-break: break-word;
  max-width: 100%;
  overflow-wrap: break-word;
  white-space: pre-line;
  box-sizing: border-box;
  /* Pour éviter tout débordement horizontal */
  overflow-x: auto;
  /* Pour forcer la largeur à ne jamais dépasser le parent */
  width: 100%;
  min-width: 0;
}

.login-error {
  max-width: 500px;
  width: 100%;
  margin-bottom: 24px;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
  background: #ffeaea;
  color: #d32f2f;
  box-shadow: 0 2px 8px #0001;
  display: none;
  word-break: break-word;
  white-space: pre-line;
  overflow-wrap: break-word;
  position: relative;
  z-index: 2;
}

.login-error.visible {
  display: block;
}

.login-error.success {
  background: #eaffea;
  color: #388e3c;
  border: 1px solid #b2dfdb;
}

.login-container {
  padding: 40px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #121212b7;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
  position: relative;
  overflow: hidden;
}

.login-title {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.5em;
  letter-spacing: 1px;
  text-shadow: none;
}

.login-subtitle {
  color: #e0f7fa;
  margin-bottom: 2em;
  font-size: 1rem;
  text-shadow: none;
}

.login-form {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: stretch;
}

.login-form input {
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 0;
  padding: 12px 16px 12px 40px;
  font-size: 1rem;
  background: transparent;
  color: #fff;
  box-shadow: none;
  outline: none;
  transition: border 0.2s;
  position: relative;
}

.login-form input:focus {
  background: transparent !important;
  color: #fff;
}

.login-form input::placeholder {
  color: #bfbfbf;
  opacity: 0.5;
}

.login-form input[type="email"] {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 10px center;
}

.login-form input[type="password"] {
  background-image: url('data:image/svg+xml;utf8,<svg fill="white" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 17a2 2 0 1 0 0-4 2 2 0 0 0 0 4zm6-7V7a6 6 0 0 0-12 0v3a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7a2 2 0 0 0-2-2zm-8-3a4 4 0 0 1 8 0v3H6V7zm10 12H6v-7h12v7z"/></svg>');
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 10px center;
}

/* Pour forcer le fond transparent sur l'autofill (Chrome/Safari) */
.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:focus,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #121212b7 inset !important; /* même fond que la boîte */
  box-shadow: 0 0 0 1000px #121212b7 inset !important;
  -webkit-text-fill-color: #fff !important;
  color: #fff !important;
  caret-color: #fff !important;
  transition: background-color 5000s ease-in-out 0s;
}

.login-btn {
  background: #ffffff;
  color: #121212;
  /* border: 1.5px solid rgba(255,255,255,0.4); */
  border: none;
  border-radius: 32px;
  padding: 14px 0;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  max-width: 150px;
  align-self: center;
  margin-top: 12px;
  box-shadow: 0 2px 8px #0001;
}

.login-btn:hover {
  background: #024cdf;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  /* border: 0.1px solid #024ddf; */
}

@media (max-width: 600px) {
  .login-container {
    padding: 24px 2vw 16px 2vw;
    max-width: 98vw;
    min-width: unset;
    min-height: 400px;
  }
  .login-title {
    font-size: 1.5rem;
  }
  .login-form {
    gap: 16px;
  }
  .login-btn {
    font-size: 1rem;
    padding: 12px 0;
  }
}




