:root {
  /* Marke */
  --accent: #6cbbbc;
  --accent-deep: #57a7a8;
  --on-accent: #06312f;
  /* Light (Standard) */
  --grad-1: #e9f3f3;
  --grad-2: #f4f6f7;
  --card: #ffffff;
  --line: #e3e7ea;
  --text: #1c2126;
  --muted: #69727c;
  --field: #f6f8f9;
  --error: #c0392b;
  --error-bg: rgba(192,57,43,.08);
  --shadow: 0 18px 50px rgba(20,30,35,.14);
  --checker-a: #e8edee;
  --checker-b: #eef1f2;
}
html[data-theme="dark"] {
  --grad-1: #1b2230;
  --grad-2: #0f1115;
  --card: #181b22;
  --line: #262b34;
  --text: #e8eaed;
  --muted: #9aa3af;
  --field: #0e1117;
  --error: #ff6b6b;
  --error-bg: rgba(255,107,107,.12);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --checker-a: #1a1d24;
  --checker-b: #181b21;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
.login-body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Dezentes Schachbrett-Pattern (wie der Viewer-Hintergrund) + weicher Marken-Glow,
     damit die Karte klar im Vordergrund steht. */
  background:
    radial-gradient(820px 460px at 50% 8%, var(--grad-1), transparent 72%),
    repeating-conic-gradient(var(--checker-a) 0% 25%, var(--checker-b) 0% 50%) 50% / 28px 28px;
  background-color: var(--grad-2);
  color: var(--text);
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px 40px 30px;
  box-shadow: var(--shadow);
  text-align: center;
}
.login-logo {
  height: 26px;
  width: auto;
  margin: 0 auto 40px;
  display: block;
}
html[data-theme="dark"] .login-logo { filter: brightness(0) invert(1); }
.login-card .login-title {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.login-sub {
  margin: 0 0 28px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.login-kicker {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: lowercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 22px;
}
.login-card h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}
.login-hint {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.login-error {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin-bottom: 20px;
}
.login-form { display: flex; flex-direction: column; gap: 12px; }
.login-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 19px;
  letter-spacing: .32em;
  text-indent: .32em; /* zentriert den Text trotz letter-spacing optisch */
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-input:focus {
  border-color: var(--accent);
  background: var(--card);
  box-shadow: 0 0 0 3px rgba(108,187,188,.25);
}
.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(20,30,35,.12);
  transition: background .15s, transform .05s;
}
.login-btn:hover { background: var(--accent-deep); }
.login-btn:active { transform: translateY(1px); }
.login-btn--link { width: auto; height: auto; padding: 11px 22px; margin-top: 8px; }
.login-foot {
  margin: 22px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.login-legal {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: center; align-items: center; gap: 14px;
  font-size: 12.5px;
}
.login-legal a { color: var(--muted); text-decoration: none; }
.login-legal a:hover { color: var(--accent-deep); text-decoration: underline; }
.login-legal span { color: var(--muted); opacity: .45; }
