/*
 * Umzugs-Portal — Loginseite
 * Design-Tokens aus deutschefachpflege.de: Grün #006b2d, Gelb #ffdb1b,
 * Text #333, Schrift Roboto 18px, Buttons eckig (0px).
 * DSGVO: keine externen Schriftarten-Requests.
 */

:root {
  --brand: #006b2d;
  --brand-dark: #00551f;
  --accent: #ffdb1b;
  --sub: #51595a;
  --tint: #e3edeb;
  --text: #333333;
  --error: #b3261e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh; /* verhindert Sprünge durch Browserleisten auf Mobilgeräten */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--brand);
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 2.25rem 1.75rem 2rem;
  border-top: 6px solid var(--accent);
}

.login-card img.logo {
  height: 64px;
  width: 64px;
  display: block;
  margin: 0 auto 1.25rem;
}

h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--brand);
  text-align: center;
}
.sub {
  margin: 0 0 1.75rem;
  color: var(--sub);
  font-size: 0.92rem;
  text-align: center;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sub);
}

input[type="password"] {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #c9d2cb;
  background: #fff;
  color: var(--text);
  font-size: 1rem;      /* >=16px: verhindert Auto-Zoom in iOS Safari */
  font-family: inherit;
  margin-bottom: 1.25rem;
}
input[type="password"]:focus {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--brand);
}

button {
  width: 100%;
  min-height: 48px;      /* Touch-Zielgröße */
  padding: 0.8rem;
  border: 0;
  background: var(--brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}
button:hover { background: var(--brand-dark); }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.error {
  color: var(--error);
  font-size: 0.9rem;
  margin: 0 0 1rem;
  padding: 0.6rem 0.8rem;
  background: #fdecea;
  border-left: 4px solid var(--error);
}

.foot {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tint);
  color: var(--sub);
  font-size: 0.82rem;
  text-align: center;
}
.foot a { color: var(--brand); }

@media (max-width: 420px) {
  .login-card { padding: 1.75rem 1.25rem; }
  h1 { font-size: 1.3rem; }
}
