/* Modernes, schlichtes Design */
.login-card {
  background: #c1c1e8;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 70%;
  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;
}

/* Container, der den rotierenden Farbverlauf hält */
.input-wrapper {
  position: relative;
  width: 300px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  /* Schneidet den rotierenden Kreis außerhalb des Rahmens ab */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Das rotierende Farbelement im Hintergrund */
.input-wrapper::before {
  content: '';
  position: absolute;
  width: 150%;
  /* Größer als das Feld, damit bei der Rotation keine Ecken frei bleiben */
  height: 150%;
  /* Umlaufender Regenbogen-Farbverlauf */
  background: conic-gradient(#ff007f, #7f00ff, #00f0ff, #00ff7f, #ffff00, #ff007f);
  /* Animation: Name, Dauer, Endlosschleife, gleichmäßige Geschwindigkeit */
  animation: rotieren 4s linear infinite;
  z-index: 1;
}

/* Das eigentliche Eingabefeld liegt darüber */
.input-wrapper input {
  position: relative;
  z-index: 2;
  width: calc(100% - 4px);
  /* Erzeugt eine 2px dicke "Border" (100% minus 2px links & 2px rechts) */
  height: calc(100% - 4px);
  /* Erzeugt eine 2px dicke "Border" oben und unten */
  border: none;
  outline: none;
  background-color: #f4f2f2;
  /* Hintergrundfarbe des Eingabefeldes (an dein Design anpassen) */
  color: #0c0c0c;
  padding: 0 15px;
  border-radius: 6px;
  /* Leicht kleiner als der Wrapper für saubere Kurven */
  box-sizing: border-box;
}

/* Animation für die Drehung */
@keyframes rotieren {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.container-login {
  background: url("Logos/punkte-start.png");
  background-color: #f2f1f8;
  border: px solid;
  border-radius: 8px;
  border-color: #808080;
  display: flex;
  font-size: 1.2rem;
  font-family: "Noto Sans";
  max-width: 1200px;
  margin: 0 auto;
}

.contain-login {
  border: 0px solid;
  border-radius: 8px;
  background-color: #f2f1f8;
  max-width: 1200px;
  margin: 0 auto;
}