/* login.css — Stile für die Anmeldeseite */

:root {
  --bg: #f5f4f1;
  --flaeche: #ffffff;
  --text: #1a1a1a;
  --text-still: #5c5c5c;
  --text-leise: #949494;
  --rand: #e8e6e1;
  --rand-stark: #d4d1ca;
  --akzent-gold: #ffb800;
  --kopf-bg: #0d1117;
  --kopf-text: #f0f0f0;
  --radius: 12px;
  --radius-s: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --flaeche: #161b22;
    --text: #e6edf3;
    --text-still: #8b949e;
    --text-leise: #6e7681;
    --rand: #21262d;
    --rand-stark: #30363d;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.kopf {
  position: fixed; top: 0; left: 0; right: 0;
  background: var(--kopf-bg);
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.kopf img { height: 38px; width: auto; display: block; }

.login-karte {
  background: var(--flaeche);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 400px;
  margin: 20px;
}

h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 6px;
}

.untertitel {
  font-size: 13px;
  color: var(--text-still);
  margin-bottom: 28px;
}

.feld-gruppe {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-still);
  margin-bottom: 5px;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rand-stark);
  border-radius: var(--radius-s);
  background: var(--flaeche);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  outline: none;
  border-color: var(--akzent-gold);
  box-shadow: 0 0 0 3px rgba(255,184,0,.15);
}

button {
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-s);
  background: var(--akzent-gold);
  color: #1a1a1a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
button:hover { background: #e6a600; }

.fehler {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 14px;
  border-radius: var(--radius-s);
  font-size: 13px;
  margin-bottom: 18px;
  display: none;
}
.fehler.sichtbar { display: block; }

@media (prefers-color-scheme: dark) {
  .fehler { background: #1f1115; border-color: #3d1820; color: #fca5a5; }
}

/* Passwort-Sichtbarkeit */
.pw-zeile {
  display: flex;
  gap: 0;
}
.pw-zeile input {
  border-radius: var(--radius-s) 0 0 var(--radius-s);
  border-right: none;
}
.pw-zeigen {
  width: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--rand-stark);
  border-left: none;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--flaeche);
  color: var(--text-leise);
  cursor: pointer;
  padding: 0;
  transition: color .15s, background .15s;
}
.pw-zeigen:hover {
  color: var(--text);
  background: var(--flaeche-still, #f8f7f5);
}
.pw-zeigen svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fuss {
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-leise);
  text-align: center;
}
