/* SimbaKids CRM – login pages */
:root {
  --bg: #fbf6ec;
  --card: #ffffff;
  --ink: #3b2a1a;
  --muted: #7a6a58;
  --line: #eadfcc;
  --brand: #f2b631;
  --brand-ink: #3b2a1a;
  --brand-hover: #e3a51c;
  --link: #9a5b00;
  --focus: #1f6feb;
  --ok-bg: #e9f6ec;  --ok-ink: #1e6b34;
  --err-bg: #fdecec; --err-ink: #a32020;
  --info-bg: #fff6dc; --info-ink: #7a5300;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1914; --card: #28221b; --ink: #f3ebe0; --muted: #b8a993; --line: #3d3428;
    --link: #f2c25a; --ok-bg: #18311f; --ok-ink: #9fe0b0; --err-bg: #3a1c1c; --err-ink: #ffb4b4;
    --info-bg: #3a2f14; --info-ink: #f6d68a;
  }
}

* { box-sizing: border-box; }
body.auth {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 8px 24px rgba(59, 42, 26, 0.06);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-paw { width: 40px; height: 40px; fill: var(--brand); flex: none; }
.auth-name { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.auth-sub { color: var(--muted); font-size: 12px; }

h1 { font-size: 22px; margin: 0 0 6px; letter-spacing: -0.01em; }
.auth-lead { color: var(--muted); margin: 0 0 20px; }

.auth-form { display: flex; flex-direction: column; }
.auth-form label { font-weight: 600; font-size: 13px; margin: 14px 0 6px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 13px; margin-top: 14px; }
.auth-form input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
}
.auth-form input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field-hint { color: var(--muted); font-size: 12px; margin: 6px 0 0; }

.btn {
  margin-top: 22px;
  font: inherit;
  font-weight: 600;
  padding: 11px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  cursor: pointer;
}
.btn:hover { background: var(--brand-hover); }
.btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.alert { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 4px; }
.alert-ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert-err { background: var(--err-bg); color: var(--err-ink); }
.alert-info { background: var(--info-bg); color: var(--info-ink); }

.auth-hint { color: var(--muted); font-size: 12px; margin: 16px 0 0; }
.auth-back { margin: 18px 0 0; font-size: 14px; }
.auth-foot { color: var(--muted); font-size: 12px; margin-top: 20px; font-style: italic; }

/* show / hide password button (static/js/password-toggle.js) */
.pw-wrap { position: relative; display: flex; }
.pw-wrap input { flex: 1; min-width: 0; padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.pw-toggle:hover { color: var(--ink); background: var(--bg); }
.pw-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.pw-toggle[aria-pressed="true"] { color: var(--ink); }

/* Arbeitgeber | Mitarbeiter: the two logins (templates/login/_login_switch.html) */
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: -8px 0 22px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.auth-switch a { text-align: center; padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--muted); }
.auth-switch a:hover { color: var(--ink); text-decoration: none; }
.auth-switch a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(59, 42, 26, 0.12); }
.auth-switch a:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }