body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #f7f8fa;
  min-height: 100vh;
  margin: 0; /* KEIN display:flex / align / justify */
}

.container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.right-half {
  width: 120%;
  background-color: #d3d3d3; /* Grauer Hintergrund */
  display: flex;
  justify-content: center;
  align-items: center;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #333;
}

form label {
  font-weight: bold;
  margin-top: 20px;
  display: block;
  color: #333;
}

select,
input[type="password"],
input[type="email"] {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

button {
  width: 100%;
  max-width: 400px;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#continueButton,
#loginButton,
#registerButton,
#confirmButton {
  background-color: var(--akzent);
  color: #fff;
  font-weight: bold;
  margin-bottom: 15px;
}

#confirmButton {
  background-color: var(--akzent);
  color: #fff;
  font-weight: bold;
  margin-top: 15px;
}

button:hover {
  background-color: var(--akzent);
}

.result-message {
  text-align: left;
  font-size: 0.95rem;
  margin-top: -4px;
  margin-bottom: 12px;
  margin-left: 4px;
  max-width: 400px;
}

#validationMessage,
#resultMessage {
  text-align: center;
  font-size: 1rem;
}

.register-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--sec-font);
  cursor: pointer;
  user-select: none;
}

.register-link strong {
  color: var(--akzent);
  font-weight: bold;
}

.register-link:hover strong {
  text-decoration: underline;
}

#additionalLoginFields {
  margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  #loginFormContainer,
  .right-half {
    width: 100%;
  }

  .right-half {
    display: none;
  }
}

.whats-new-link {
  font-weight: bold;
  color: var(--akzent);
  text-decoration: none;
  font-size: 1rem;
}

.release-info h3 {
  font-size: 1.2rem;
  color: #333;
  margin-top: 10px;
  margin-bottom: 10px;
}

.release-info p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.view-changes-link {
  font-weight: bold;
  color: var(--akzent);
  text-decoration: none;
  font-size: 0.9rem;
}

.view-changes-link:hover,
.whats-new-link:hover {
  text-decoration: underline;
}
/* Bottom Right Image Styling */
/* Bottom Right Image Styling */
/* Bottom Right Image Styling */
.bottom-right-image {
  position: fixed; /* Positioniert das Bild fest an der Seite */
  bottom: 0; /* Kein Abstand zum unteren Rand */
  right: 0; /* Kein Abstand zum rechten Rand */
}

.bottom-right-image img {
  width: 800px; /* Stelle sicher, dass das Bild die gewünschte Größe hat; in diesem Fall kleiner */
  height: auto; /* Beibehaltung des Seitenverhältnisses */
  object-fit: contain; /* Das Bild wird vollständig angezeigt */
}
.brand-in-form {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.brand-logo {
  width: 52px; /* vorher 36px → größer und klarer sichtbar */
  height: 52px;
  object-fit: contain;
}

.brand-title {
  font-weight: 800; /* kräftiger */
  font-size: 1.4rem; /* größerer Schriftzug */
  color: #111;
  letter-spacing: 0.5px; /* leichte Weitung für modernes Gefühl */
}

.container {
  display: flex;
  width: 100vw; /* statt 100% → verhindert weißen Rand rechts */
  min-height: 100vh;
  overflow-x: hidden;
}
#loginFormContainer {
  flex: 0 0 40%; /* statt width:% → padding zählt nicht mehr mit */
  min-height: 100vh;
  padding: 24px 50px 50px 60px;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-sizing: border-box;
}

/* NEU: Inhalt (ohne Logo) vertikal mittig halten */
.main-form-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right-half {
  flex: 0 0 60%;
  min-height: 100vh;
  background-color: #d3d3d3 !important; /* grau erzwingen */
  position: relative;
  overflow: hidden;
}

/* Mobile: rechte Hälfte ausblenden wie zuvor */
@media (max-width: 768px) {
  .right-half {
    display: none;
  }
}

/* Buttons auf Akzent */
#continueButton,
#loginButton,
#registerButton,
#confirmButton {
  background-color: var(--akzent);
  color: #fff;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Einheitliches Hover-Verhalten ohne feste Farbe */
button:hover {
  filter: brightness(0.92);
}

/* Fokus sichtbar, mit Akzent */
button:focus,
select:focus,
input:focus {
  outline: 2px solid var(--akzent);
  outline-offset: 2px;
}

/* Labels / Links bleiben neutral */
/* Gruppe aus Button + Step genau gleich breit wie der Button */
.cta-group {
  width: 100%;
  max-width: 400px;
}

/* Button innerhalb der Gruppe bleibt vollbreit */
.cta-group #continueButton {
  width: 100%;
}

/* Step-Indikator zentriert innerhalb der 400px-Gruppe */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 12px 0 0; /* Abstand zum Button */
}

/* Balken */
.step-indicator .bar {
  flex: 0 0 100px;
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
}
.step-indicator .bar.active {
  background: var(--akzent);
}

.step-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #555;
}

/* Die zwei Balken nebeneinander anordnen */
.step-indicator .bar:first-child,
.step-indicator .bar:nth-child(2) {
  display: inline-block;
}

/* Login-Inputs bleiben sauber */
select,
input[type="password"],
input[type="email"] {
  width: 100%;
  max-width: 400px;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Mobile */
@media (max-width: 1024px) {
  .whats-new-container {
    max-width: 300px;
  }
  .bottom-right-image img {
    width: min(50vw, 420px);
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  #loginFormContainer,
  .right-half {
    width: 100%;
  }

  .right-half {
    display: none;
  }

  #loginFormContainer {
    padding: 28px 20px; /* kompakter auf Mobile */
  }

  .whats-new-container {
    position: static; /* rutscht nach oben in den Flow */
    padding: 16px;
    margin: 0 20px 12px 20px;
  }

  .bottom-right-image {
    display: none;
  } /* verhindert Überdecken auf kleinen Screens */
}
.right-half {
  width: 50%;
  background-color: #d3d3d3;
  position: relative; /* Bezug für absolute Kinder */
  display: flex;
  align-items: stretch;
  justify-content: flex-start; /* Inhalte beginnen links */
  overflow: hidden;
}

/* What's new – oben links in der rechten Hälfte */
.right-half .whats-new-container {
  position: absolute;
  top: 24px;
  left: 180px; /* von 120px → auf 180px leicht verschoben */
  right: auto;
  padding: 0;
  max-width: 440px;
  background: transparent;
}

/* Bild – unten links, deutlich größer innerhalb der rechten Hälfte */
.right-half .bottom-right-image {
  position: absolute;
  bottom: 0;
  right: 0; /* statt left: 0 → rechtsbündig */
  z-index: 10;
  display: flex;
  justify-content: flex-end; /* sichert rechtes Ausrichten innerhalb des Containers */
}

.right-half .bottom-right-image img {
  display: block;
  width: clamp(580px, 83%, 1200px); /* etwas kleiner & ausgewogen */
  height: auto;
  object-fit: contain;
}
.validation-message {
  text-align: left;
  color: green;
  font-size: 0.95rem;
  margin-top: -8px;
  margin-bottom: 16px;
  margin-left: 4px;
  max-width: 400px; /* gleiche Breite wie Input */
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin-top: 10px;
}

.auth-buttons button {
  background-color: var(--akzent);
  color: #fff;
  font-weight: bold;
  padding: 14px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.auth-buttons button:hover {
  filter: brightness(0.92);
}
/* Visuelle Deaktivierung des Passwortfelds */
.disabled-input {
  background-color: #f1f1f1;
  color: #777;
  cursor: not-allowed;
}

/* Validation-Nachricht leicht nach links unter Passwortfeld */
.validation-message {
  text-align: left;
  color: green;
  font-size: 0.95rem;
  margin-top: -8px;
  margin-bottom: 10px;
  margin-left: 4px;
  max-width: 400px;
}

/* Step-Indikator bleibt zentriert unter Buttons */
.step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 400px;
  margin: 18px 0 0;
}
/* Falls kein <form> genutzt wird: Labels/Inputs trotzdem untereinander */
#additionalLoginFields label {
  display: block;
  margin-top: 20px;
}
#additionalLoginFields input {
  display: block;
  width: 100%;
  max-width: 400px;
}
