/*
 * HerdingModels: wachtpagina, loginscherm van de testversie en de footer "Herded by HerdingModels".
 * Huisstijl: palet Pasture (donker thema), Figtree van de eigen server. Geen externe verzoeken.
 * Animaties enkel in CSS; met prefers-reduced-motion staat alles stil.
 * Geleverd door het template van HerdingModels; pas dit bestand niet aan in een project.
 */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/figtree/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/figtree/figtree-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/figtree/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/figtree/figtree-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/figtree/figtree-latin-800-normal.woff2") format("woff2"); }

.hm-night {
    --bg: #141B17; --surface: #1C2520; --line: #2E3A33; --ink: #EEF0EA; --ink-muted: #A9B5AD; --ink-soft: #C9D2CC;
    --forest: #5DB58E; --forest-hover: #7BC6A2; --forest-light: #9ED8B6; --forest-tint: #1F3B2E;
    --clay: #DB7A58; --clay-tint: #2A211C; --wheat: #E9B949; --sage: #8FBF9F; --wool-shadow: #7E8C84; --field: #6B7A71;
    margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; position: relative; overflow-x: hidden;
    background: var(--bg); color: var(--ink); font-family: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.hm-night *, .hm-night *::before, .hm-night *::after { box-sizing: border-box; }
.hm-night a { color: var(--forest); }
.hm-night a:hover { color: var(--forest-light); }

/* Beeldmerk: de vier bolletjes lichten om de beurt op. */
@keyframes hm-pulse { 0%, 100% { transform: scale(1); opacity: .75; } 50% { transform: scale(1.22); opacity: 1; } }
.hm-p { transform-box: fill-box; transform-origin: center; animation: hm-pulse 2.8s ease-in-out infinite; }
.hm-p2 { animation-delay: .7s; } .hm-p3 { animation-delay: 1.4s; } .hm-p4 { animation-delay: 2.1s; }

/* Twinkelende lichtjes in de modelkleuren. */
@keyframes hm-twinkle { 0%, 100% { opacity: .08; } 50% { opacity: .55; } }
.hm-sky { position: absolute; inset: 0; pointer-events: none; }
.hm-t { position: absolute; border-radius: 50%; animation: hm-twinkle 4s ease-in-out infinite; }

/* Grazende schaapjes op een dunne graslijn. */
@keyframes hm-walk { 0% { left: -140px; } 100% { left: calc(100% + 40px); } }
@keyframes hm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes hm-graze { 0%, 55%, 100% { transform: rotate(0); } 65%, 88% { transform: rotate(32deg); } 72%, 80% { transform: rotate(26deg); } }
@keyframes hm-legs { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
.hm-meadow { position: relative; height: 72px; flex: none; overflow: hidden; pointer-events: none; }
.hm-meadow::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--line); }
.hm-sheep { position: absolute; bottom: 8px; animation: hm-walk linear infinite; }
.hm-sheep svg { display: block; overflow: visible; }
.hm-body { animation: hm-bob .9s ease-in-out infinite; }
.hm-head { transform-box: fill-box; transform-origin: 0% 30%; animation: hm-graze 6s ease-in-out infinite; }
.hm-leg { transform-box: fill-box; transform-origin: 50% 0%; animation: hm-legs .9s ease-in-out infinite; }
.hm-leg2 { animation-delay: -.45s; }

/* Wachtpagina */
.hm-wait { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 48px 24px 24px; text-align: center; position: relative; }
.hm-wait .hm-mark { width: 155px; height: 130px; overflow: visible; }
.hm-wait .hm-copy { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 540px; }
.hm-tagline { margin: 0; font-size: 16px; font-weight: 500; color: var(--forest); }
.hm-wait h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.hm-wait .hm-lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-muted); }

.hm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border: 0; border-radius: 999px;
    background: var(--forest); color: #0F1512 !important; font: 600 16px/1 Figtree, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.hm-btn:hover { background: var(--forest-hover); }
.hm-btn:focus-visible, .hm-link:focus-visible, .hm-ghost:focus-visible, .hm-footer a:focus-visible { outline: 3px solid var(--wheat); outline-offset: 3px; }
.hm-wait .hm-btn { margin-top: 14px; }

/* Loginscherm van de testversie */
.hm-login { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 32px 16px 16px; position: relative; }
.hm-login .hm-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hm-login .hm-mark { width: 67px; height: 56px; overflow: visible; }
.hm-login .hm-tagline { font-size: 15px; }
.hm-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 32px; display: flex; flex-direction: column; gap: 18px; }
.hm-eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.hm-card h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.hm-card .hm-intro { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.hm-head-group { display: flex; flex-direction: column; gap: 8px; }
.hm-field { display: flex; flex-direction: column; gap: 6px; }
.hm-field label { font-size: 14px; font-weight: 600; }
.hm-row { display: flex; gap: 8px; }
.hm-in { width: 100%; min-width: 0; min-height: 48px; padding: 0 14px; border: 1px solid var(--field); border-radius: 10px; background: var(--bg); color: var(--ink); font: 16px Figtree, system-ui, sans-serif; }
.hm-in:focus { outline: 3px solid var(--wheat); outline-offset: 1px; border-color: var(--forest); }
.hm-in[aria-invalid="true"] { border: 2px solid var(--clay); }
.hm-ghost { flex: none; min-height: 48px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--forest-tint); color: var(--forest-light); font: 600 14px Figtree, system-ui, sans-serif; cursor: pointer; }
.hm-card .hm-btn { width: 100%; margin-top: 4px; }
.hm-link { align-self: center; display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.hm-alert { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--clay); background: var(--clay-tint); border-radius: 14px; padding: 14px 16px; }
.hm-alert svg { flex: none; margin-top: 1px; }
.hm-alert p { margin: 0; }
.hm-alert .hm-alert-title { font-size: 15px; font-weight: 700; }
.hm-alert .hm-alert-text { font-size: 14px; line-height: 1.45; color: var(--ink-soft); margin-top: 2px; }

/* Footer "Herded by HerdingModels": op elk project van HerdingModels. */
.hm-footer { display: flex; justify-content: center; padding: 8px 24px 20px; position: relative; }
.hm-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 13px Figtree, system-ui, sans-serif; text-decoration: none; color: var(--hm-footer-ink, #5B655F); }
.hm-footer a:hover { color: var(--hm-footer-hover, #1F6F50); }
.hm-footer svg { width: 19px; height: 16px; }
.hm-footer .hm-brace { stroke: var(--hm-footer-mark, #1B2420); }
.hm-night .hm-footer { --hm-footer-ink: #A9B5AD; --hm-footer-hover: #5DB58E; --hm-footer-mark: #EEF0EA; }

@media (max-width: 480px) {
    .hm-wait { gap: 24px; padding-top: 40px; }
    .hm-wait .hm-mark { width: 124px; height: 104px; }
    .hm-wait h1 { font-size: 32px; }
    .hm-wait .hm-lead { font-size: 17px; }
    .hm-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .hm-p, .hm-t, .hm-body, .hm-head, .hm-leg, .hm-sheep { animation: none; }
    .hm-t { opacity: .3; }
    .hm-sheep { left: var(--rest, 12%); }
}
