/* Zelfde uitstraling als het Schapenbeheer-paneel in Home Assistant. */
:root {
  --sa-bg: #f5f6f4;
  --sa-card: #ffffff;
  --sa-text: #1c1f1b;
  --sa-muted: #5d6660;
  --sa-border: rgba(0, 0, 0, .12);
  --sa-accent: #3f8f57;
  --sa-accent-soft: rgba(63, 143, 87, .14);
  --sa-danger: #b3423b;
  --sa-danger-soft: rgba(179, 66, 59, .15);
  --sa-radius: 16px;
  --sa-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sa-bg: #111412;
    --sa-card: #1c201d;
    --sa-text: #e8ebe7;
    --sa-muted: #9aa39c;
    --sa-border: rgba(255, 255, 255, .12);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--sa-bg); color: var(--sa-text);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.app-root { height: 100dvh; padding-top: env(safe-area-inset-top); }
.app-root sheep-admin-panel { height: 100%; }

.login { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; background: var(--sa-card); border-radius: var(--sa-radius);
  box-shadow: var(--sa-shadow); border: 1px solid var(--sa-border); padding: 28px 22px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.4rem; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--sa-accent); }
.brand .mark { width: 34px; height: 29px; }
.brand .mark .wool { fill: var(--sa-accent); }
.brand .mark .head { fill: #23281f; }
.brand .mark .legs { stroke: #23281f; }
.hero .brand.light .mark .wool { fill: #fbfaf5; }

/* Inlogscherm: beeld links, formulier rechts; op de telefoon beeld als kop boven het formulier */
.login.split { padding: 0; align-items: stretch; justify-content: stretch; min-height: 100dvh; }
.login.split .hero { position: relative; flex: 1 1 55%; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #2f6e44 0%, #3f8f57 45%, #78b98a 100%);
  display: flex; flex-direction: column; padding: 40px 48px; }
.hero .brand.light { color: #fff; font-size: 1.5rem; }
.hero-text { position: relative; z-index: 1; margin-top: auto; margin-bottom: 30vh; max-width: 460px; }
.hero-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
.hero-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 1.02rem; opacity: .95; }
.hero-text li { padding-left: 28px; position: relative; }
.hero-text li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(255,255,255,.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.hero-art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34vh; }
.login.split .login-card { flex: 0 0 460px; max-width: none; border: 0; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column; justify-content: center; padding: 48px 56px; }
.login.split .login-card h1 { font-size: 1.7rem; margin: 0 0 6px; }
.login.split .sub { margin-bottom: 26px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.label-row label { font-size: .85rem; color: var(--sa-muted); font-weight: 600; }
.link.inline { display: inline; margin: 0; font-size: .85rem; }
.login.split .btn.primary { margin-top: 6px; box-shadow: 0 6px 16px rgba(63,143,87,.28); transition: transform .08s, filter .15s; }
.login.split .btn.primary:hover { filter: brightness(1.06); }
.login.split .btn.primary:active { transform: translateY(1px); }
.foot { margin: 28px 0 0; color: var(--sa-muted); font-size: .88rem; text-align: center; line-height: 1.5; }
.foot a { color: var(--sa-accent); font-weight: 600; text-decoration: none; }
.mobile-only { display: none; }
@media (max-width: 860px) {
  .login.split { flex-direction: column; }
  .login.split .hero { flex: 0 0 auto; min-height: 220px; padding: 22px 20px 0; }
  .hero-text { margin: 18px 0 120px; }
  .hero-text h2 { font-size: 1.5rem; margin-bottom: 0; }
  .hero-text ul { display: none; }
  .hero-art { height: 120px; }
  .login.split .login-card { flex: 1 1 auto; justify-content: flex-start; padding: 26px 22px 32px;
    border-radius: 22px 22px 0 0; margin-top: -22px; position: relative; z-index: 2; }
}
.sub { color: var(--sa-muted); margin: 6px 0 22px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: .85rem; color: var(--sa-muted); margin-bottom: 6px; font-weight: 600; }
.field input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--sa-border);
  background: var(--sa-bg); color: inherit; padding: 0 14px; font: inherit; font-size: 16px; outline: none; }
.field input:focus { border-color: var(--sa-accent); box-shadow: 0 0 0 3px var(--sa-accent-soft); }
.btn { width: 100%; height: 48px; border-radius: 999px; border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.btn.primary { background: var(--sa-accent); color: #fff; }
.btn:disabled { opacity: .6; }
.error { background: var(--sa-danger-soft); color: var(--sa-danger); border-radius: 10px; padding: 10px 12px;
  margin-bottom: 14px; font-size: .95rem; }
.link { display: block; margin: 16px auto 0; background: none; border: 0; color: var(--sa-accent); font: inherit;
  font-weight: 600; cursor: pointer; }
.okmsg { background: var(--sa-accent-soft); color: var(--sa-accent); border-radius: 10px; padding: 10px 12px;
  margin-bottom: 14px; font-size: .95rem; }
.field select { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--sa-border);
  background: var(--sa-card); color: var(--sa-text); font: inherit; padding: 0 12px; }
.login-card h1 { font-size: 1.3rem; margin: 18px 0 6px; }

/* Platformbeheer */
.page { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.page .card { background: var(--sa-card); border-radius: var(--sa-radius); box-shadow: var(--sa-shadow);
  border: 1px solid var(--sa-border); padding: 18px 16px; margin-bottom: 18px; }
.page h2 { font-size: 1.1rem; margin: 0 0 12px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.acc { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 0;
  border-top: 1px solid var(--sa-border); }
.acc:first-child { border-top: 0; }
.acc .meta { color: var(--sa-muted); font-size: .85rem; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px;
  background: var(--sa-accent-soft); color: var(--sa-accent); }
.badge.invited { background: rgba(214, 150, 30, .18); color: #a86d00; }
.badge.blocked { background: var(--sa-danger-soft); color: var(--sa-danger); }
.btn.small { width: auto; height: 36px; padding: 0 14px; font-size: .85rem; background: var(--sa-accent-soft);
  color: var(--sa-accent); }
.btn.small.danger { background: var(--sa-danger-soft); color: var(--sa-danger); }
.acc .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.copy { word-break: break-all; font-size: .85rem; }
