:root {
  --rot: #ff3131;
}
html, body {
  height: 100%;
  margin: 0;
  background: #fff;
}
.einstieg {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  width: min(90vw, 90vh);
  height: auto;
  overflow: visible;
}

/* Endzustand = Standard; die Animation setzt nur den Startzustand (from) */
.rahmen {
  fill: none;
  stroke: var(--rot);
  stroke-width: 33;
  stroke-dasharray: 1;
  animation: rahmen-zeichnen 1.3s cubic-bezier(.65, 0, .35, 1) both;
}
.schriftzug {
  animation: schriftzug-rein 1s cubic-bezier(.2, .7, .2, 1) 1.2s both;
}
.punkt {
  fill: var(--rot);
  transform-box: fill-box;
  transform-origin: center;
  animation: punkt-setzen .45s cubic-bezier(.3, 1.6, .5, 1) 2.3s both;
}

/* Anmelde-Popup (Strg+Alt+Umschalt+P) */
.loginDialog {
  width: min(92vw, 340px);
  padding: 26px 24px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .18);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.loginDialog::backdrop {
  background: rgba(255, 255, 255, .75);
}
.loginDialog label {
  display: block;
  margin: 12px 0 4px;
  font-size: 13px;
  color: #6b7280;
}
.loginDialog label:first-of-type {
  margin-top: 0;
}
.loginDialog input:not([type="hidden"]) {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
}
.loginDialog input:focus {
  outline: 2px solid #1f3a5f;
  border-color: #1f3a5f;
}
.loginDialog button {
  width: 100%;
  margin-top: 20px;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  background: #1f3a5f;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.ldFehler {
  margin: 12px 0 0;
  color: var(--rot);
  font-size: 14px;
}
.ldLink {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
}
.ldLink a {
  color: #6b7280;
}

@keyframes rahmen-zeichnen {
  from { stroke-dashoffset: 1; }
}
@keyframes schriftzug-rein {
  from { clip-path: inset(0 100% 0 0); opacity: 0; transform: translateX(-40px); }
}
@keyframes punkt-setzen {
  from { transform: scale(0); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rahmen, .schriftzug, .punkt { animation: none; }
}
