/* Stipto-aanmeldpagina's. Zelfde tokens en font als de website. */
@font-face { font-family: 'Inter'; src: url('../fonts/InterVariable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #14332b; --ink-2: #2b4a41; --muted: #61796f; --faint: #8fa39a; --paper: #f6f7f2; --surface: #fff; --surface-2: #f0f3ec;
  --line: #e1e7df; --line-strong: #c9d3c6; --accent: #d4f26b; --accent-strong: #b9e04a; --accent-ink: #223d12; --accent-soft: #eef7d6;
  --green: #2e7d4f; --green-soft: #e3f3e8; --amber: #b7791f; --amber-soft: #fbf1dc; --red: #b42318; --red-soft: #fce8e6; --blue: #2f5e9e; --blue-soft: #e6eef9;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: Inter, "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.55; font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
a { color: var(--green); font-weight: 600; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(185, 224, 74, .55); }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 46%) 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 36px 44px; display: flex; flex-direction: column; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 21px; letter-spacing: -.03em; text-decoration: none; }
.brand:hover { text-decoration: none; }
.auth-side-copy { max-width: 420px; }
.auth-side-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 650; letter-spacing: -.03em; }
.auth-side-copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; color: rgba(255, 255, 255, .78); font-size: 15px; }
.auth-side-copy li { padding-left: 26px; position: relative; }
.auth-side-copy li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.auth-mock { margin-top: auto; width: min(300px, 100%); padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.auth-mock-time { font-size: 48px; font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.auth-mock-scan { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); }
.auth-mock-scan > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(34, 61, 18, .12); font-weight: 700; }
.auth-mock-scan strong { display: block; font-size: 14px; }
.auth-mock-scan small { font-size: 12px; opacity: .75; }

.auth-main { display: grid; grid-template-rows: 1fr auto; padding: 40px 32px 24px; }
.auth-card { width: min(440px, 100%); margin: auto; }
.auth-head h1 { font-size: 30px; font-weight: 650; letter-spacing: -.03em; }
.auth-intro { color: var(--muted); margin: 8px 0 26px; }
.attempted { display: flex; gap: 12px; align-items: center; margin-top: 10px; font-size: 14px; color: var(--muted); }
.form { display: grid; gap: 16px; }
.form-register { grid-template-columns: 1fr 1fr; }
.form-register > * { grid-column: 1 / -1; }
.form-register > .field:has(#firstName), .form-register > .field:has(#lastName) { grid-column: span 1; }
.field { display: grid; gap: 6px; }
.field-label { display: flex; gap: 4px; align-items: baseline; }
.label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.required { color: var(--faint); font-size: 12px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.small-link { font-size: 13px; }
.field-input { display: grid; gap: 6px; }
.input { width: 100%; min-width: 0; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: var(--faint); }
.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(46, 125, 79, .18); outline: none; }
.input[aria-invalid="true"] { border-color: var(--red); }
.input-group { position: relative; }
.input-group .input { padding-right: 48px; }
.toggle-password { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.toggle-password:hover { background: var(--surface-2); color: var(--ink); }
.icon-eye, .icon-eye-off { width: 18px; height: 18px; display: block; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.icon-eye { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.icon-eye-off { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 10.6a3 3 0 0 0 4.2 4.2M9.9 5.2A10 10 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6C3.7 8.6 2 12 2 12s3.5 7 10 7c1.5 0 2.9-.3 4.1-.9'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 10.6a3 3 0 0 0 4.2 4.2M9.9 5.2A10 10 0 0 1 12 5c6.5 0 10 7 10 7a17 17 0 0 1-3.2 4.1M6.6 6.6C3.7 8.6 2 12 2 12s3.5 7 10 7c1.5 0 2.9-.3 4.1-.9'/%3E%3C/svg%3E"); }
.hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 13px; font-weight: 500; color: var(--red); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check-input { width: 18px; height: 18px; accent-color: var(--green); margin: 0; }
.form-buttons { margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: var(--ink); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--ink-2); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.block { width: 100%; }
.btn.lg { min-height: 50px; font-size: 15px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-link { background: none; border: 0; color: var(--green); font-weight: 600; padding: 0; cursor: pointer; }
.auth-fine { font-size: 12px; color: var(--muted); }
.signup, #kc-info { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.form .signup { margin-top: 8px; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 500; background: var(--blue-soft); color: var(--blue); }
.alert-error { background: var(--red-soft); color: var(--red); }
.alert-warning { background: var(--amber-soft); color: var(--amber); }
.alert-success { background: var(--green-soft); color: var(--green); }
.alt-action { margin-top: 14px; font-size: 14px; }
.instruction { color: var(--muted); font-size: 15px; margin-top: 10px; }
.social { margin-top: 22px; }
.social-title { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.social-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.auth-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.auth-item { display: flex; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; }
.auth-item:hover { border-color: var(--faint); }
.auth-item-title { font-weight: 600; }
.auth-item-desc { font-size: 13px; color: var(--muted); }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.list { padding-left: 20px; }
.auth-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; font-size: 13px; color: var(--muted); width: min(440px, 100%); margin: 0 auto; }
.locale { display: flex; gap: 10px; }
.locale-current { font-weight: 600; color: var(--ink); }
.locale-item { color: var(--muted); font-weight: 500; }
#kc-registration-terms-text { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 20px 22px; gap: 18px; }
  .auth-side-copy h2 { font-size: 22px; }
  .auth-side-copy ul, .auth-mock { display: none; }
  .auth-main { padding: 28px 20px 20px; }
  .auth-head h1 { font-size: 26px; }
  .form-register { grid-template-columns: 1fr; }
}
