/* ========================================
   Mitglieder-Login – Layout und Farben
   ======================================== */

body {
  font-family: 'Quicksand', sans-serif;
}

/* Container der Login-Seite */
body.login main.container {
  width: 100%;
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.2rem;
  padding-right: 2.2rem;
  box-sizing: border-box;
  display: block;
}

/* ========================================
   Flex-Layout: Login-Formular + Hinweisfeld
   ======================================== */

.login-flexbereich {
  display: flex;
  justify-content: space-between;
  align-items: stretch;     /* ✅ Unterkante beider Boxen bündig */
  gap: 2rem;
  max-width: 1040px;
  margin: 2rem auto;
  padding-left: 1.2rem;
  padding-right: 2.2rem;
}

/* ========================================
   Login-Formularbox (linke Spalte)
   ======================================== */

.login-box {
  flex: 0 0 350px;
  max-width: 350px;
  margin: 0;
  background-color: #222;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.login-box form {
  display: flex;
  flex-direction: column;
}

.login-box label {
  margin-bottom: 0.5rem;
  color: #eee;
  font-weight: bold;
}

.login-box input {
  padding: 0.6rem;
  margin-bottom: 1.2rem;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #fff;
  color: #111;
}

/* Autofill-Färbung neutralisieren (Browser) */
.login-box input:-webkit-autofill,
.login-box input:-webkit-autofill:hover,
.login-box input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* Firefox */
.login-box input:autofill {
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: #111;
}

/* ========================================
   Passwort-Feld mit Auge (sauber & eindeutig)
   ======================================== */

.login-passwrap {
  position: relative;
  display: block;
  margin-bottom: 1.2rem; /* Abstand wie bei anderen Inputs */
}

/* Passwort-Input: volle Breite + Platz fürs Icon */
.login-passwrap input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 2.6rem; /* Platz fürs Auge */
  margin-bottom: 0;      /* verhindert vertikalen Versatz des Icons */
}

/* Auge-Button im Feld */
.login-passwrap .toggle-pass {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.75;
}

/* Hover nur für das Auge */
.login-passwrap .toggle-pass:hover {
  opacity: 1;
}

/* SVG-Icons klar sichtbar auf weißem Input */
.login-passwrap .toggle-pass svg {
  width: 25px;
  height: 25px;
  stroke: #222;        /* ✅ sichtbar */
  stroke-width: 2;
  fill: none;
}

/* Auge-Icon-Umschaltung */
.login-passwrap .toggle-pass .eye {
  display: none;         /* Standard: PW verborgen → NICHT das normale Auge */
}
.login-passwrap .toggle-pass .eye-off {
  display: block;        /* Standard: PW verborgen → Auge durchgestrichen */
}
.login-passwrap .toggle-pass.is-visible .eye {
  display: block;        /* PW sichtbar → normales Auge */
}
.login-passwrap .toggle-pass.is-visible .eye-off {
  display: none;         /* PW sichtbar → durchgestrichenes Auge weg */
}

/* ========================================
   Remember-me + Hinweistext
   ======================================== */

.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem; /* etwas Luft zum Hinweis */
}

/* Hinweis linksbündig unter dem Label */
.login-box .hinweis {
  font-size: 0.8rem;
  color: #aaa;
  text-align: left;
  margin: 0 0 1rem 0;  /* ✅ „Leerzeile“ darunter durch Abstand */
}

/* ========================================
   Submit-Button (nur der echte Button!)
   ======================================== */

.login-box button[type="submit"] {
  background-color: #444;
  color: #f9f2e8;
  border: none;
  padding: 0.7rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.login-box button[type="submit"]:hover {
  background-color: #666;
}

/* ========================================
   Fehlermeldung
   ======================================== */

.fehlermeldung {
  color: #ff3333;
  background: #ffe5e5;
  padding: 0.7rem;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 1rem;
  text-align: center;
}

/* ========================================
   Hinweisfeld (rechte Spalte, nur Desktop)
   ======================================== */

.login-hinweisfeld {
  flex: 1;
  background-color: #222;
  padding: 2rem;
  border-radius: 10px;
  color: #eee;
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  align-items: center; /* vertikal angenehm zentriert */
}

.hinweis-wrapper {
  position: static;
  transform: none;
  margin-top: 0;
}

/* ========================================
   Responsive: Smartphone-Ansicht
   ======================================== */

@media (max-width: 767px) {
  .login-flexbereich {
    flex-direction: column;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .login-hinweisfeld {
    display: none;
  }
}