/* Stijlen voor inloggen, registreren, account en beheer (zie SPEC.md 0.2). */

/* ---------- Gesplitst inlogscherm ---------- */

/* De kale schil (layout.js) krijgt bij deze pagina's geen eigen opvulling of logo: dat doet .auth zelf. */
.bare-main:has(> .auth) { display: block; justify-items: stretch; padding: 0; gap: 0; }
.bare-main:has(> .auth) > .brand-bare { display: none; }

.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--surface); }
.auth-main { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 20px var(--gutter) 20px; }
.auth-brand { align-self: flex-start; height: 40px; }
.auth-box { width: min(100%, 400px); margin: auto; padding: 36px 0 40px; }
.auth-box > .flash { margin-bottom: 20px; overflow-wrap: anywhere; }
.auth-box h1 { font-size: clamp(28px, 4vw, 34px); line-height: 1.1; letter-spacing: -0.045em; font-weight: 800; }
.auth-box .lede { margin-top: 8px; }
.auth-form { display: grid; gap: 20px; margin-top: 32px; }
.auth-form .inline-alert { margin: 0; }
.auth-form .inline-alert p { flex: 1; }
.auth-form .btn-block { margin-top: 4px; }
.auth-checks { display: grid; gap: 12px; }
.auth-switch { margin-top: 24px; text-align: center; color: var(--muted); }
.auth-switch a { font-weight: 600; }
.auth-admin { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: var(--muted); }
.auth-admin a { font-weight: 600; color: var(--ink-2); }
.auth-admin a:hover { color: var(--accent); }
.auth-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-size: 12.5px; color: var(--faint); }
.auth-legal a { color: var(--muted); }
.auth-legal a:hover { color: var(--heading); }
.auth-box .dev-login { margin-top: 28px; }

/* Het merkvlak rechts: licht, met het merkteken groot, fijne lijnen en drie voordelen. */
.auth-side { display: none; }
.auth-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-lines line { stroke: rgba(11, 36, 84, 0.06); stroke-width: 1; }
.auth-lines .auth-line-accent { stroke: rgba(0, 169, 157, 0.45); stroke-width: 1.5; }
.auth-side-inner { position: relative; max-width: 440px; padding: 40px; border-radius: 20px; background: rgba(255, 255, 255, 0.82); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: var(--shadow-float); }
.auth-mark { width: 64px; height: auto; margin-bottom: 32px; }
.auth-side-label { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 11px; line-height: 16px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.auth-side-label::before { content: ''; width: 16px; height: 2px; border-radius: 2px; background: var(--accent-bright); }
.auth-side-title { color: var(--heading); font-size: 34px; font-weight: 800; letter-spacing: -0.045em; line-height: 1.08; }
.auth-side-title span { display: block; color: var(--brand-teal); }
.auth-points { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 14.5px; }
.auth-points .icon { width: 18px; height: 18px; color: var(--brand-teal); margin-top: 2px; }
.auth-side-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--i-teal); font-size: 12.5px; font-weight: 650; }
.auth-side-note::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-bright); }

@media (min-width: 1024px) {
  .auth { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); }
  .auth-main { padding: 28px 48px 24px; }
  .auth-side {
    display: flex; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden;
    align-items: center; justify-content: center; padding: 64px; background: var(--bg); border-left: 1px solid var(--line);
  }
}

/* ---------- Velden ----------
   .label-row, .label-link, .optional, .field-error, .has-error en .check staan in app.css (v0.4). */

.pw { position: relative; }
.pw input { padding-right: 84px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 36px; padding: 0 12px;
  border: 0; border-radius: 6px; background: transparent; color: var(--accent); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pw-toggle:hover { background: var(--panel); }
.pw-toggle:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 0; }

.pw-meter { display: flex; align-items: center; gap: 12px; }
.pw-meter[hidden] { display: none; }
.pw-bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-bars span { height: 4px; border-radius: 999px; background: var(--line); transition: background var(--t); }
.pw-label { min-width: 72px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pw-meter[data-sterkte='1'] .pw-bars span:nth-child(-n+1) { background: var(--bad-dot); }
.pw-meter[data-sterkte='2'] .pw-bars span:nth-child(-n+2) { background: var(--warn-dot); }
.pw-meter[data-sterkte='3'] .pw-bars span:nth-child(-n+3) { background: var(--brand-teal); }
.pw-meter[data-sterkte='4'] .pw-bars span { background: var(--ok-dot); }
.pw-meter[data-sterkte='1'] .pw-label { color: var(--bad); }
.pw-meter[data-sterkte='2'] .pw-label { color: var(--warn); }
.pw-meter[data-sterkte='3'] .pw-label, .pw-meter[data-sterkte='4'] .pw-label { color: var(--ok); }

/* ---------- Kaarten op de kale pagina (bevestigd, mail verstuurd) en voorwaarden ---------- */

.account-note { width: min(100%, 520px); padding: 36px 28px 28px; text-align: center; display: grid; justify-items: center; }
.account-note .icon-round { margin-bottom: 16px; }
.account-note .lede { margin: 8px auto 0; }
.account-note-actions { margin-top: 24px; display: grid; justify-items: center; gap: 4px; }

.legal { width: min(100%, 760px); padding: 32px 24px; }
.main .legal { width: auto; }
.legal h1 { font-size: clamp(28px, 4vw, 34px); letter-spacing: -0.04em; }
.legal h2 { font-size: 16px; margin-top: 28px; }
.legal p { margin-top: 8px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }
.legal .lede { color: var(--muted); }

/* ---------- Accountpagina ---------- */

.notice-verify { border-color: var(--p-blauw); }
.account-email { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; overflow-wrap: anywhere; }
.account-resend { margin-top: 12px; }
.sessions .list-main strong { display: block; }
.danger-card .card-head h2 { color: var(--bad); }
.danger-card .settings-form > .field { max-width: 440px; }
.danger-card .form-foot { border-top-color: var(--bad-soft); }
.btn-danger { background: #D92D20; border-color: #D92D20; color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(16, 24, 40, 0.10); }
.btn-danger:hover { background: var(--bad); border-color: var(--bad); color: #fff; }
.settings-form .switch-row { align-items: center; }

/* ---------- Beheeromgeving (eigen schil: beheerLayout) ----------
   Zelfde premium stijl, maar herkenbaar anders: een koele paarse tint in de zijbalk, het label
   "Beheer" naast het logo en een pil "Beheeromgeving" in de kopbalk. */

.beheer-app { --beheer: #5925DC; --beheer-soft: #F4F3FF; --beheer-line: #D9D6FE; }
.brand-beheer { gap: 10px; }
.beheer-label {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; margin-left: 2px; border-radius: 6px;
  background: var(--beheer-soft); color: var(--beheer); box-shadow: inset 0 0 0 1px var(--beheer-line);
  font-size: 10.5px; line-height: 1; font-weight: 750; letter-spacing: 0.08em; text-transform: uppercase;
}
.sidebar-beheer { background: linear-gradient(180deg, #F8F8FE 0%, #F5F5FC 100%); overflow-x: hidden; }
.sidebar-beheer .brand-beheer { gap: 8px; padding: 0 6px; }
.sidebar-beheer .brand-name { font-size: 15px; }
.sidebar-beheer .beheer-label { height: 20px; padding: 0 6px; font-size: 10px; }
.sidebar-beheer .side-nav a:hover { background: rgba(255, 255, 255, 0.8); }
.sidebar-beheer .side-nav a[aria-current='page'] { background: var(--surface); color: var(--heading); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 0 0 1px rgba(89, 37, 220, 0.08); }
.sidebar-beheer .side-nav a[aria-current='page'] .icon { color: var(--beheer); }
.sidebar-beheer .side-nav a[aria-current='page']::before { background: var(--beheer); }
.side-exit .side-shop-icon { background: var(--beheer-soft); color: var(--beheer); }
.side-exit .side-shop-text span { color: var(--muted); font-weight: 500; }
.avatar-beheer { background: var(--beheer-soft); color: var(--beheer); box-shadow: inset 0 0 0 1px var(--beheer-line); }
.beheer-env {
  display: none; align-items: center; gap: 8px; height: 30px; padding: 0 12px; margin-right: 6px; border-radius: 999px;
  background: var(--beheer-soft); color: var(--beheer); font-size: 12.5px; font-weight: 650; box-shadow: inset 0 0 0 1px var(--beheer-line);
}
.beheer-env .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--beheer); box-shadow: 0 0 0 3px rgba(89, 37, 220, 0.14); }
.beheer-mobiel {
  position: sticky; top: calc(var(--topbar) + env(safe-area-inset-top)); z-index: 20; display: flex; gap: 4px; overflow-x: auto;
  padding: 8px var(--gutter); background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line); scrollbar-width: none;
}
.beheer-mobiel::-webkit-scrollbar { display: none; }
.beheer-mobiel a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 8px; color: var(--ink-2); font-size: 13.5px; font-weight: 600; white-space: nowrap; transition: background var(--t), color var(--t); }
.beheer-mobiel a .icon { width: 16px; height: 16px; color: var(--faint); }
.beheer-mobiel a[aria-current='page'] { background: var(--beheer-soft); color: var(--beheer); }
.beheer-mobiel a[aria-current='page'] .icon { color: var(--beheer); }
.beheer-app .main { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .beheer-env { display: inline-flex; } }
@media (min-width: 1024px) {
  .topbar-beheer .brand-beheer, .beheer-mobiel { display: none; }
}

.beheer-body { display: grid; gap: 16px; }
.beheer-body > .kpis-static { margin-bottom: 0; }
.beheer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1100px) { .beheer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.beheer-staat-balk { display: block; width: 100%; height: 10px; border-radius: 999px; overflow: hidden; }
.beheer-staat-balk .is-leeg, .beheer-staat-dot.is-leeg, .beheer-staat-balk .is-leeg-balk { fill: #D0D5DD; background: #D0D5DD; }
.beheer-staat-balk .is-voorbeeld, .beheer-staat-dot.is-voorbeeld { fill: #A6E1DC; background: #A6E1DC; }
.beheer-staat-balk .is-demo, .beheer-staat-dot.is-demo { fill: #4F6FB0; background: #4F6FB0; }
.beheer-staat-balk .is-live, .beheer-staat-dot.is-live { fill: #00A99D; background: #00A99D; }
.beheer-staat-lijst { list-style: none; display: grid; margin-top: 16px; }
.beheer-staat-lijst li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.beheer-staat-lijst li:first-child { border-top: 0; }
.beheer-staat-dot { width: 10px; height: 10px; border-radius: 3px; }
.beheer-staat-tekst { display: grid; line-height: 19px; }
.beheer-staat-tekst span { color: var(--muted); font-size: 13px; }
.beheer-staat-n { color: var(--heading); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .js .beheer-staat-balk { animation: nxt-onthul 800ms var(--ease-in-out) 200ms both; }
}

.beheer-ai-cijfers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 14px; }
.beheer-ai-cijfers dt { font-size: 11px; line-height: 16px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.beheer-ai-cijfers dd { margin: 0; }
.beheer-ai-cijfers .big-number { margin-top: 4px; }
.beheer-ai-cijfers .muted { font-size: 13px; }
.beheer-people .avatar { width: 32px; height: 32px; font-size: 12.5px; }
.beheer-people .list-main { flex: 1 1 160px; }
.beheer-people .list-end { gap: 10px; }
.beheer-body .kpis-static { margin-bottom: 0; }
.beheer-table td { vertical-align: top; }
.beheer-who { display: block; max-width: 260px; overflow-wrap: anywhere; }
.beheer-badges { display: flex; flex-wrap: wrap; gap: 4px 12px; max-width: 260px; }
.beheer-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.beheer-message { max-width: 320px; overflow-wrap: anywhere; }
.beheer-owner { max-width: 240px; overflow-wrap: anywhere; }
.beheer-plan { display: flex; gap: 6px; align-items: center; }
.beheer-plan select { min-height: 32px; height: 32px; width: auto; padding: 0 34px 0 10px; font-size: 13px; }

@media (min-width: 640px) {
  .legal { padding: 44px 48px; }
}
.beheer-date { white-space: nowrap; }
.beheer-table td:first-child { min-width: 180px; }
