/* Die Anmeldeseite kommt aus Twig, nicht aus React. Sie bekommt dieselben
   Farben und Masse wie die Oberflaeche (shadcn, Thema Neutral), nur von
   Hand geschrieben: Ein Formular braucht kein Tailwind. */
:root {
  --radius: 0.625rem;
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --primary: oklch(0.205 0 0);
  --primary-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --border: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--muted);
  color: var(--foreground);
  font: 14px/1.43 ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.anmeldung {
  width: 100%;
  max-width: 24rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
}

.anmeldung .marke {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}

.anmeldung .marke span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 13px;
}

.anmeldung .karte {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.anmeldung h1 {
  margin: 0 0 .25rem;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
}

.anmeldung .karte > p {
  margin: 0;
  color: var(--muted-foreground);
}

.anmeldung form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.anmeldung .feld {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.anmeldung label {
  font-weight: 500;
}

.anmeldung input {
  height: 2.25rem;
  padding: .25rem .75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: inherit;
  font: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  outline: none;
}

.anmeldung input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ring) 50%, transparent);
}

.anmeldung button {
  height: 2.25rem;
  padding: 0 1rem;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  background: var(--primary);
  color: var(--primary-foreground);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.anmeldung button:hover { opacity: .9; }

.anmeldung .fehler {
  margin: 0;
  padding: .625rem .75rem;
  border: 1px solid #fecaca;
  border-radius: calc(var(--radius) - 2px);
  background: #fef2f2;
  color: var(--destructive);
}
