/* poliSYS Entity Monitoring - gemeinsames Stylesheet (Variante corporate).
   Schriften nur lokal vom eigenen Server (/fonts), keine externen Fonts. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --slate: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #5a52e8;
  --accent-hover: #4a43d4;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --ok-bg: #f0fdf4;
  --ok-text: #166534;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--slate);
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

input[type="email"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font: inherit;
  color: var(--text);
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 0.5rem;
}

input[type="email"]:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.cf-turnstile {
  margin: 1rem 0;
  min-height: 65px;
}

button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}

button[type="submit"]:hover {
  background: var(--accent-hover);
}

button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Zweitrangige Aktion (Dashboard: Abmelden, Überwachung beenden), EM-261118-abmelde-strecke. */
.logout-form {
  margin: 2rem 0 0;
}

button.button-secondary {
  width: auto;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--slate);
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease-out;
}

button.button-secondary:hover {
  background: var(--bg);
}

.notice {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.notice[hidden] {
  display: none;
}

.notice-error {
  color: var(--error-text);
  background: var(--error-bg);
  border: 1px solid #fecaca;
}

.notice-ok {
  color: var(--ok-text);
  background: var(--ok-bg);
  border: 1px solid #bbf7d0;
}

a {
  color: var(--accent-hover);
}

.site-footer {
  flex-shrink: 0;
  padding: 1.5rem 1.25rem;
  color: #cbd5e1;
  background: var(--slate);
  text-align: center;
  font-size: 0.875rem;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: #ffffff;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  button[type="submit"],
  button.button-secondary {
    transition: none;
  }
}
