/* Route beveiliging – login pages (from the NKC Routebeveiliging demo) */

:root {
  /* NKC colours */
  --blue: #1A4948;
  --blue-dark: #113332;
  --red: #FF6853;
  --white: #F6F1EF;

  --bg: var(--white);
  --panel: var(--blue);
  --panel-text: #FFFFFF;
  --panel-muted: #D3E2E1;
  --accent: var(--blue);
  --accent-hover: var(--blue-dark);
  --text: #182726;
  --muted: #4D5B5A;
  --line: #E6DDD9;
  --line-soft: #EFE8E5;
  --card: #FFFFFF;
  --soft: #E3EDEC;
  --red-soft: #FFE6E1;
  --red-text: #A3321F;
  --input-line: #8C8784;
  --error-bg: #FFF0ED;
  --error-line: #F5B8AE;
  --error-text: #8A2615;
  --info-line: #B9D2D0;
  --info-text: var(--blue);

  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1:focus { outline: none; }

p { margin: 0; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Two-column layout: blue panel + content ---------- */

.layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(340px, min(36vw, 560px)) 1fr;
}

.panel {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background: var(--panel);
  color: var(--panel-text);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
}

.logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: block;
}

.panel-body {
  margin-block: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.photo {
  width: 100%;
  height: 320px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
  background: #2A5C5B;
}

.panel-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.panel-title span { color: var(--red); }

.panel-text {
  font-size: 17px;
  color: var(--panel-muted);
}

.panel-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--panel-muted);
}

.main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 96px;
  container: main / inline-size;
}

.stack {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Login options: stacked by default, side by side when there is room */
.options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@container main (min-width: 720px) {
  .stack-wide { max-width: 820px; }

  .options {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
  }
  .options .section { height: 100%; }
  .options .section > .btn { margin-top: auto; }
  .options .form { margin-top: auto; }

  .options .divider { flex-direction: column; }
  .options .divider::before,
  .options .divider::after { width: 1px; height: auto; }
}

/* ---------- Card and content blocks ---------- */

.card {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.card h1 { font-size: 34px; }

.icon-tile {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--red-soft);
  color: var(--red-text);
}
.icon-tile.blue { background: var(--soft); color: var(--blue); }

.intro {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lead { color: var(--muted); }
.lead strong { color: var(--text); word-break: break-word; }

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.3;
}

.section-text { font-size: 15px; color: var(--muted); }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.rule { height: 1px; background: var(--line-soft); border: 0; margin: 0; }

.small {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.badge {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red-text);
  font-size: 13px;
  font-weight: 600;
}

.hostline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Buttons and links ---------- */

.btn {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #FFFFFF;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

.btn-secondary {
  background: #FFFFFF;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover { background: var(--soft); color: var(--accent-hover); }

.btn-red {
  background: var(--red);
  color: var(--blue-dark);
  font-weight: 700;
}
.btn-red:hover { background: #F2533D; color: var(--blue-dark); }

.linkbtn {
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.linkbtn:hover { color: var(--accent-hover); }
.linkbtn.muted { color: var(--muted); }

/* ---------- Form fields ---------- */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
}

.field input {
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--input-line);
  border-radius: 10px;
  background: #FFFFFF;
  color: var(--text);
  font: inherit;
}
.field input:focus-visible { outline-offset: 1px; border-radius: 10px; }
.field input[aria-invalid="true"] { border-color: #C2331C; border-width: 2px; }

.hint { font-size: 13px; color: var(--muted); }


/* ---------- Messages ---------- */

.alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--error-line);
  border-radius: 12px;
  background: var(--error-bg);
  color: var(--error-text);
  font-size: 15px;
  line-height: 1.45;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }
.alert.info {
  background: var(--soft);
  border-color: var(--info-line);
  color: var(--info-text);
}


/* ---------- Mobile ---------- */

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }

  .panel {
    position: static;
    height: auto;
    padding: 16px;
    gap: 14px;
  }
  .logo { width: 48px; height: 48px; }
  .brand { font-size: 14px; }
  .photo { height: 140px; }
  .panel-title, .panel-text, .panel-foot { display: none; }

  .main { padding: 20px 16px 88px; align-items: flex-start; }
  .card { padding: 28px 20px; gap: 20px; }
  .card h1 { font-size: 28px; }

}

/* Wide NKC club logo top left; the PNG is dark green, shown white on the green panel. */
.logo-club {
  display: block;
  width: 220px;
  max-width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}
@media (max-width: 860px) {
  .logo-club { width: 170px; }
}
