/* Modernes, schlichtes Design */
.login-card {
  background: #c1c1e8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 50%;
  max-width: 500px;
  margin: 40px 20px 20px 100px;
}

h2 {
  margin-top: 0;
  margin-left: 40px;
}

.input-group {
  margin-bottom: 15px;
}

/* Neu: Container für relative Positionierung des Auges */
.password-container {
  position: relative;
  width: 100%;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #666;
  font-size: 14px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Neu: Rechter Abstand für das Passwortfeld, damit Text das Auge nicht überlagert */
#password {
  padding-right: 40px;
}

/* Neu: Styling für den Auge-Button */
.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  width: auto;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

.toggle-password:hover {
  background: none;
  opacity: 0.7;
}

button[type="submit"] {
  width: 100%;
  padding: 10px;
  background-color: #945ff8;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: rgb(221, 159, 217);
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  text-align: center;
  margin-top: 15px;
  display: none;
}