/*
 * geotour - Anmeldeseite.
 * Lokales Stylesheet, keine externen Schriftarten, kein Build (D-08, ADR-0014).
 * Bewusst eigenstaendig: die Kartenseite laedt app.css, die Login-Seite nur diese Datei.
 */

:root {
  --bg: #eef1f3;
  --panel: #ffffff;
  --ink: #1d2a32;
  --ink-muted: #5d6b74;
  --border: #d5dde2;
  --accent: #14556f;
  --error-bg: #fdecea;
  --error-border: #e0a49d;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem 1rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
}

.auth {
  width: 100%;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth__title {
  margin: 0;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.auth__lead {
  margin: 0;
  color: var(--ink-muted);
}

.auth-panel {
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-panel__title {
  margin: 0;
  font-size: 1.1rem;
}

.auth-status {
  margin: 0;
  min-height: 1.45em;
  color: var(--ink);
}

.auth-hint {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.auth-hint--error {
  padding: 0.6rem 0.75rem;
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 0.35rem;
  color: var(--ink);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.auth-form__label {
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.auth-form__input {
  width: 100%;
  padding: 0.5rem 0.6rem;
  font: inherit;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
}

.auth-form__input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.button {
  align-self: flex-start;
  padding: 0.55rem 1rem;
  font: inherit;
  color: #ffffff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 0.35rem;
  cursor: pointer;
}

.button:hover:enabled {
  filter: brightness(1.1);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.95em;
}
