/* =========================================================
   ANMELDUNG, REGISTRIERUNG, PASSWORT, ZWEI-FAKTOR

   Eigenstaendig und mit eigenen Klassennamen. Die alten
   .login-* Regeln lagen ueber style.css, login.css und
   responsive.css verteilt und widersprachen sich teils -
   die bleiben unangetastet, damit nichts anderes bricht.

   Farben wie im Rest der Anwendung: dunkle Flaeche,
   Haarlinie als Rand, ein Akzent.
   ========================================================= */

.anmeld-seite {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 160px);
  padding: 2.5rem 1rem;
}

.anmeld-karte {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  background: rgba(22, 27, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
}

.anmeld-kopf {
  text-align: center;
  margin-bottom: 1.75rem;
}

.anmeld-logo {
  height: 42px;
  width: auto;
  margin-bottom: 1rem;
}

.anmeld-titel {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e6edf3;
}

.anmeld-unter {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

/* ----- Felder ----- */
.anmeld-feld {
  margin-bottom: 1.1rem;
}

.anmeld-feld label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.anmeld-feld label i {
  color: rgba(255, 255, 255, 0.4);
}

.anmeld-feld input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #e6edf3;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.anmeld-feld input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.anmeld-feld input:focus {
  outline: none;
  border-color: rgba(13, 110, 253, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

/* Passwortfeld mit Aug-Schalter */
.anmeld-passwort {
  position: relative;
}

.anmeld-passwort input {
  padding-right: 2.75rem;
}

.anmeld-auge {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  transform: translateY(-50%);
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.anmeld-auge:hover {
  color: #e6edf3;
}

/* ----- Knopf ----- */
.anmeld-knopf {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  margin-top: 0.35rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d6efd, #6610f2);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.anmeld-knopf:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.anmeld-knopf:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ----- Verweise unter dem Formular ----- */
.anmeld-fuss {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-align: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.5);
}

.anmeld-fuss p {
  margin: 0 0 0.4rem;
}

.anmeld-fuss p:last-child {
  margin-bottom: 0;
}

.anmeld-fuss a {
  color: #6ea8fe;
  text-decoration: none;
}

.anmeld-fuss a:hover {
  text-decoration: underline;
}

/* ----- Andere Anbieter ----- */
.anmeld-anbieter {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.anmeld-trenner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.35rem 0 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.anmeld-trenner::before,
.anmeld-trenner::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* Nur die Anbieter-Knoepfe selbst - der Verweis im Hinweistext darunter
   sah sonst aus wie ein weiterer Knopf. */
.anmeld-anbieter > a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.anmeld-anbieter > a:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.anmeld-hinweis {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.anmeld-hinweis a {
  color: #6ea8fe;
}

/* =========================================================
   PASSWORTSTAERKE
   ========================================================= */
.anmeld-staerke {
  margin-top: 0.55rem;
}

.anmeld-staerke-balken {
  display: flex;
  gap: 4px;
  margin-bottom: 0.4rem;
}

.anmeld-staerke-balken span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease;
}

.anmeld-staerke.stufe-1 .anmeld-staerke-balken span:nth-child(1) { background: #f44336; }
.anmeld-staerke.stufe-2 .anmeld-staerke-balken span:nth-child(-n+2) { background: #ff9800; }
.anmeld-staerke.stufe-3 .anmeld-staerke-balken span:nth-child(-n+3) { background: #ffc107; }
.anmeld-staerke.stufe-4 .anmeld-staerke-balken span { background: #4caf50; }

.anmeld-staerke-text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Die einzelnen Anforderungen - erfuellt wird gruen abgehakt */
.anmeld-regeln {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.75rem;
}

.anmeld-regeln li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.4);
}

.anmeld-regeln li::before {
  content: '○';
  font-size: 0.7rem;
}

.anmeld-regeln li.erfuellt {
  color: #7ed492;
}

.anmeld-regeln li.erfuellt::before {
  content: '✓';
}

/* =========================================================
   ZWEI-FAKTOR: Code-Eingabe
   ========================================================= */
.anmeld-code {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.35rem;
  letter-spacing: 0.5rem;
  text-indent: 0.5rem;
}

.anmeld-umschalter {
  margin-top: 0.75rem;
  text-align: center;
}

.anmeld-umschalter button {
  padding: 0;
  border: none;
  background: transparent;
  color: #6ea8fe;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.anmeld-umschalter button:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .anmeld-karte {
    padding: 1.5rem 1.25rem;
  }

  .anmeld-regeln {
    grid-template-columns: 1fr;
  }
}
