/* Anmeldung und Hinweisseiten.
 *
 * Dieselben Werte wie in der Dokumentation (doku/quellen/_static/marke.css) —
 * getrennte Datei, weil Backend und Doku eigene Container sind und keiner auf
 * die Dateien des anderen zugreift. Aendert sich hier etwas, gehoert es auch
 * dorthin.
 */

@font-face {
  font-family: "Hind";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("schriften/hind-400.woff2") format("woff2");
}
@font-face {
  font-family: "Hind";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("schriften/hind-500.woff2") format("woff2");
}
@font-face {
  font-family: "Hind";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("schriften/hind-600.woff2") format("woff2");
}

:root {
  --at-gruen: #6fa32e;
  --at-gruen-dunkel: #5c8a26;
  --at-blau: #005482;
  --text: #272727;
  --text-leise: #767676;
  --grund: #ffffff;
  --flaeche: #fbfbfb;
  --rahmen: #e3e3e3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --at-gruen: #8dc63f;
    --at-gruen-dunkel: #a4d65f;
    --text: #e8e8e8;
    --text-leise: #9a9a9a;
    --grund: #16181a;
    --flaeche: #1c1f21;
    --rahmen: #2c3033;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 2rem 1.25rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grund);
  color: var(--text);
  font-family: "Hind", "Open Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

main {
  width: 100%;
  max-width: 23rem;
}

.marke {
  margin-bottom: 2.5rem;
}

.marke img {
  width: 9.5rem;
  height: auto;
  display: block;
}

/* Die Umkehrvariante des Logos nur im dunklen Modus. */
.marke .hell { display: block; }
.marke .dunkel { display: none; }

@media (prefers-color-scheme: dark) {
  .marke .hell { display: none; }
  .marke .dunkel { display: block; }
}

h1 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 0.4rem;
}

.kunde {
  margin: 0 0 2rem;
  color: var(--text-leise);
  font-size: 0.95rem;
}

p {
  margin: 0 0 1.1rem;
}

label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 500;
  font-size: 0.9rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.6rem 0.7rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--rahmen);
  border-radius: 2px;
  background: var(--grund);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: 2px solid var(--at-gruen);
  outline-offset: 1px;
  border-color: var(--at-gruen);
}

button {
  width: 100%;
  padding: 0.65rem;
  border: 0;
  border-radius: 2px;
  background: var(--at-gruen);
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--at-gruen-dunkel);
}

@media (prefers-color-scheme: dark) {
  button { color: #16181a; }
}

/* Ein Balken links statt einer farbigen Flaeche — dieselbe Zurueckhaltung wie
   bei den Hinweiskaesten in der Dokumentation. */
.fehler {
  border-left: 3px solid var(--at-blau);
  background: var(--flaeche);
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.3rem;
  font-size: 0.92rem;
}

.knopf-schmal {
  width: auto;
  padding: 0.55rem 1.2rem;
}

footer {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rahmen);
  color: var(--text-leise);
  font-size: 0.8rem;
}
