body {
  font-family: Arial, sans-serif;
  /*  background-image: url("/images/background.jpg"); */
  background-color: rgb(173, 173, 173);
  background-size: cover;
  background-attachment: fixed;
  color: #ffffff;
  flex: 1;
}

html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  height: auto;
}

/* Registrierung & Login Wrapper */
.register-wrapper,
.login-wrapper {
  max-width: 400px;
  margin: 20px auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Überschrift */
.register-wrapper h2,
.login-wrapper h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

/* Form-Layout */
.register-form,
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: #000000;
}

/* Inputs */
.register-form input,
.login-form input {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

/* Buttons */
.register-form button,
.login-form button {
  padding: 0.8rem;
  background-color: #006400;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
.register-form button:hover,
.login-form button:hover {
  background-color: #003060;
}

/* Passwort-Visibility-Icon im Feld */
.password-wrapper {
  position: relative;
  width: 100%;
}
.password-wrapper input {
  width: 100%;
  padding-right: 2.5em; /* Platz für Icon */
  box-sizing: border-box;
}
/* Optional: Fehler-Nachrichten */
.form-error {
  color: #c00;
  font-size: 0.9rem;
}

.toggle-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
}

.error-message {
  color: #ff6666;
  font-weight: bold;
  margin: 10px 0;
}
.password-strength {
  margin-top: 5px;
}

#strength-bar {
  height: 8px;
  width: 100%;
  background-color: #ddd;
  margin-bottom: 4px;
  border-radius: 4px;
  overflow: hidden;
}

#strength-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease;
  background-color: red;
}

#strength-text {
  font-size: 0.9em;
}
#success-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background-color: white;
  color: black;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.btn {
  display: inline-block;
  margin: 10px;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background-color: #0056b3;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}