/* Anmeldung zum Consulting-Cockpit. Aufbau wie die Anmeldung der Zeitung
   (dieselben Klassen, dasselbe login.js), Farben und Schriften wie stil.css. */

:root {
  color-scheme: light dark;
  --grund: #f7f7f5;
  --karte: #ffffff;
  --ink: #1d2327;
  --stumm: #6b757c;
  --linie: #dde1e4;
  --akzent: #1f6f78;
  --akzent-ink: #ffffff;
  --gut: #2e7d4f;
  --ernst: #c62828;
  --schrift: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --grund: #15181a;
    --karte: #1d2124;
    --ink: #e8eaec;
    --stumm: #8d969c;
    --linie: #30363a;
    --akzent: #4fb3bd;
    --akzent-ink: #0d1f22;
    --gut: #6cc28f;
    --ernst: #ff7a72;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--ink);
  font: 15px/1.5 var(--schrift);
}

.anmeldung {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.karte {
  width: 100%;
  max-width: 380px;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 1.75rem 1.5rem;
}

.marke {
  font-weight: 700;
}

.marke span {
  font-weight: 400;
  color: var(--stumm);
}

h1 {
  font-size: 1.35rem;
  margin: 0.4rem 0 1.25rem;
}

button {
  font: inherit;
  width: 100%;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--akzent);
  background: var(--akzent);
  color: var(--akzent-ink);
  cursor: pointer;
  margin-top: 0.75rem;
}

button:disabled {
  opacity: 0.55;
  cursor: default;
}

.passkey-knopf {
  margin-top: 0;
}

.trenner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--stumm);
  font-size: 0.85rem;
  margin: 1.25rem 0 0.75rem;
}

.trenner::before,
.trenner::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--linie);
}

label {
  display: block;
  font-size: 0.85rem;
  color: var(--stumm);
  margin: 0.6rem 0 0.2rem;
}

input {
  font: inherit;
  width: 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--linie);
  border-radius: 8px;
  background: transparent;
  color: inherit;
}

input:focus {
  outline: 2px solid var(--akzent);
  outline-offset: 1px;
}

.meldung {
  min-height: 1.5em;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
}

.meldung.gut {
  color: var(--gut);
}

.meldung.schlecht {
  color: var(--ernst);
}

.einrichten {
  margin-top: 1rem;
  border-top: 1px solid var(--linie);
  padding-top: 0.75rem;
}

.einrichten summary {
  cursor: pointer;
  color: var(--stumm);
  font-size: 0.9rem;
}

.klein {
  font-size: 0.85rem;
  color: var(--stumm);
}

button.textknopf {
  width: auto;
  background: none;
  border: 0;
  color: var(--stumm);
  text-decoration: underline;
  padding: 0;
}
