/* ==========================================================================
   Zeres Connect, design system
   Eenvoudige split-layout in de stijl van het Zeres-klantportaal (login).
   Tokens en componenten afgeleid van het portal-concept (zeres.nl huisstijl):
   groen #56CB5A / #2F773A, cream #F7F5F0, ink #232323.
   Fonts: Libre Baskerville (display), Hanken Grotesk (UI), JetBrains Mono (cijfers).
   ========================================================================== */

:root {
  --green: #56cb5a;
  --green-bright: #62d766;
  --green-600: #3fa84a;
  --green-700: #2f773a;
  --green-800: #245c2d;
  --forest: #14311d;
  --forest-2: #1b3e26;

  --ink: #232323;
  --ink-2: #4d4d47;
  --ink-3: #76766d;
  --cream: #f7f5f0;
  --cream-2: #f1eee6;
  --card: #ffffff;
  --line: #e9e4d9;

  --mint: #e7f4e8;
  --mint-2: #dcefdd;
  --amber: #b5791a;
  --amber-bg: #faf1dd;
  --red: #bf000f;
  --red-bg: #fdecec;

  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --pill: 999px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; border-radius: 6px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green-700);
  font-weight: 500;
}
.muted { color: var(--ink-3); }

/* ---------- Split layout (links beeld, rechts paneel) ---------- */
.auth {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  min-height: 100vh;
}
.auth__visual {
  position: relative;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  overflow: hidden;
  background-image: url("img/hero.jpg");
  background-size: cover;
  background-position: center;
}
.auth__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(195deg, rgba(20, 49, 29, .30) 0%, rgba(20, 49, 29, .52) 58%, rgba(20, 49, 29, .82) 100%);
  z-index: 1;
}
.auth__visual > * { position: relative; z-index: 2; }
.auth__visual .logo { height: 30px; width: auto; }
.auth__hero { max-width: 460px; }
.auth__hero .eyebrow { color: var(--green-bright); }
.auth__hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.08;
  margin: 14px 0;
}
.auth__hero p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.05rem;
  max-width: 42ch;
}
.auth__help { font-size: .85rem; color: rgba(255, 255, 255, .8); }
.auth__help a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.auth__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px;
  background: var(--cream);
}
.auth__form { width: 100%; max-width: 400px; }
.auth__form .brand-mark { text-align: center; margin-bottom: 26px; }
.auth__form .brand-mark img { height: 40px; width: auto; margin: 0 auto; }
.auth__form h2 { font-size: 1.7rem; text-align: center; }
.auth__form .sub { text-align: center; color: var(--ink-2); margin: 8px 0 26px; }
.auth__alt { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--ink-3); }

.btn-link { color: var(--green-700); font-weight: 600; }
.btn-link:hover { text-decoration: underline; }

/* ---------- Form velden ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field > label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.input {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: .92rem;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #b6b3a8; }
.input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(86, 203, 90, .16);
}

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .92rem;
  padding: 11px 18px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn--primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 16px rgba(47, 119, 58, .22); }
.btn--primary:hover { background: var(--green-800); box-shadow: 0 8px 22px rgba(47, 119, 58, .3); }
.btn--ghost { background: #fff; color: var(--green-700); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--green-700); background: var(--mint); }
.btn--soft { background: var(--mint); color: var(--green-700); }
.btn--soft:hover { background: var(--mint-2); }
.btn--block { width: 100%; }
.btn--lg { padding: 14px 24px; font-size: 1rem; }

/* ---------- Merk-tegels (stap: merk kiezen) ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 6px;
}
.brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 10px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .12s;
}
.brand-tile:hover {
  border-color: var(--green);
  box-shadow: 0 6px 18px rgba(47, 119, 58, .1);
  transform: translateY(-1px);
}
.brand-tile__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--mint);
  color: var(--green-700);
}
.brand-tile__icon svg { width: 24px; height: 24px; }
.brand-tile__name { font-weight: 600; font-size: .95rem; }
.brand-tile--soon {
  cursor: default;
  opacity: .6;
}
.brand-tile--soon:hover { border-color: var(--line); box-shadow: none; transform: none; }
.brand-tile__soon {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Status (na opzoeken) ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--pill);
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status--ok { background: var(--mint); color: var(--green-700); }
.status--alert { background: var(--red-bg); color: var(--red); }
.status--pending { background: var(--amber-bg); color: var(--amber); }

.connect-line { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: .92rem; color: var(--ink-2); }
.field-row { display: flex; gap: 10px; align-items: flex-end; }
.field-row .field { flex: 1; margin-bottom: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }

/* ---------- Responsive: stapelt op smal scherm ---------- */
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth__visual { min-height: 220px; padding: 28px; }
  .auth__hero p, .auth__help { display: none; }
  .auth__hero h1 { font-size: 1.6rem; }
  .auth__panel { padding: 32px 22px; }
  .brand-grid { grid-template-columns: 1fr; }
  .brand-tile { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 16px; }
}
