:root {
  --bg-1: #f5f7ff;
  --bg-2: #f2fbf7;
  --brand: #4f46e5;
  --brand-700: #4338ca;
  --text: #0f172a;
  --muted: #6b7280;
  --ok-bg: #ecfdf5;
  --ok-bd: #a7f3d0;
  --err-bg: #fef2f2;
  --err-bd: #fecaca;
  --card-bg: rgba(255,255,255,0.85);
  --bd: #e5e7eb;
  --shadow: 0 10px 25px rgba(2,6,23,.08), 0 2px 8px rgba(2,6,23,.05);
  --radius: 22px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-1), #fff 40%, var(--bg-2));
  display: grid; place-items: center; padding: 24px;
}
.card { width: 100%; max-width: 420px; background: var(--card-bg); backdrop-filter: blur(6px); border: 1px solid var(--bd); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { padding: 24px 24px 8px; display:flex; gap:12px; align-items:center; }
.card-title { margin:0; font-size: 22px; font-weight: 600; }
.card-desc { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.icon { width: 22px; height: 22px; color: var(--text); opacity: .9; }
.card-content { padding: 8px 24px 0; }
.field { margin: 14px 0; }
label { display:block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: #374151; }
.input-wrap { position: relative; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%; border: 1px solid var(--bd); border-radius: 14px; padding: 12px 44px 12px 12px; outline: none; font-size: 15px;
}
input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.15); }
.affix { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); opacity: .6; }
.hint { margin-top: 6px; font-size: 12px; color: var(--muted); display:flex; align-items:center; gap:6px; }

.notice { display:none; margin: 14px 0; padding: 12px; border-radius: 12px; font-size: 14px; }
.notice.ok { display:flex; gap:8px; align-items:flex-start; background: var(--ok-bg); border:1px solid var(--ok-bd); }
.notice.err { display:flex; gap:8px; align-items:flex-start; background: var(--err-bg); border:1px solid var(--err-bd); }

.card-footer { padding: 16px 24px 24px; }
.btn { width: 100%; border: 0; background: var(--brand); color: #fff; border-radius: 14px; padding: 12px 14px; font-weight:600; cursor: pointer; transition: transform .06s ease, box-shadow .12s ease; }
.btn:hover { background: var(--brand-700); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor:not-allowed; }

.linkbar { display:flex; justify-content:center; align-items:center; gap:10px; margin-top: 12px; font-size: 14px; color: #4b5563; flex-wrap: wrap; }
.link { color: var(--brand); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* CTA “Maak een account met code” */
.switch-cta {
  display:inline-flex; align-items:center; gap:8px; padding:10px 14px;
  border:1px solid var(--brand); background: transparent; color: var(--brand);
  border-radius: 9999px; font-weight: 600; cursor: pointer; text-decoration:none;
  box-shadow: 0 1px 0 rgba(2,6,23,.04);
  transition: background .15s ease, color .15s ease, transform .06s ease, box-shadow .15s ease;
}
.switch-cta .chev { transition: transform .15s ease; }
.switch-cta:hover { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.25); }
.switch-cta:hover .chev { transform: translateX(2px); }
.switch-cta:active { transform: translateY(1px); }
.switch-cta:focus { outline: none; box-shadow: 0 0 0 3px rgba(79,70,229,.22); }

.fineprint { text-align:center; font-size: 12px; color: var(--muted); margin-top: 12px; }
.forgot { margin-top: 6px; font-size: 14px; color: var(--brand); background: none; border: none; padding:0; cursor:pointer; }

.tip { margin-top: 16px; text-align:center; font-size: 12px; color: #9ca3af; }
