@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

/* Honeypot: volledig verborgen voor echte gebruikers */
.auth-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

:root {
  color-scheme: light;

  /* Brand */
  --brand-navy:       #3F497F;
  --brand-navy-600:   #384171;
  --brand-navy-700:   #2F375E;
  --brand-navy-800:   #252B48;
  --brand-navy-200:   #C7CBDD;
  --brand-navy-100:   #E7E9F1;
  --brand-navy-50:    #F3F4F9;
  --brand-orange:     #EB780E;
  --brand-orange-600: #D26A07;
  --brand-orange-50:  #FFF7EF;

  /* Surfaces */
  --bg:             #FBFBFD;
  --surface:        #FFFFFF;
  --card:           #FFFFFF;

  /* Foreground */
  --text:           #22263C;
  --muted:          #6B7088;

  /* Borders */
  --border:         #E2E4EC;
  --border-strong:  #CBCED9;

  /* Shadows */
  --shadow-soft: 0 12px 24px -8px rgba(37, 43, 72, 0.14), 0 4px 8px -2px rgba(37, 43, 72, 0.06);
  --shadow-mid:  0 4px 10px -2px rgba(37, 43, 72, 0.08), 0 2px 4px -2px rgba(37, 43, 72, 0.06);

  /* CTA button — orange */
  --btn:      #EB780E;
  --btn-strong: #D26A07;
  --btn-glow: rgba(235, 120, 14, 0.25);

  /* Focus / active accent — navy */
  --accent:        #3F497F;
  --accent-soft:   rgba(63, 73, 127, 0.12);
  --accent-strong: rgba(63, 73, 127, 0.22);
  --accent-ghost:  rgba(63, 73, 127, 0.08);

  /* Status */
  --success:    #1F9D6A;
  --success-bg: #E4F5ED;
  --success-fg: #0F6B47;
  --danger:     #D64545;
  --danger-soft:   rgba(214, 69, 69, 0.10);
  --danger-border: rgba(214, 69, 69, 0.32);

  /* Radii — matches Sarrai tokens */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  background:
    radial-gradient(ellipse 50% 60% at 15% 10%, color-mix(in oklch, var(--brand-navy) 9%, transparent), transparent 60%),
    radial-gradient(ellipse 45% 55% at 88% 5%,  color-mix(in oklch, var(--brand-orange) 9%, transparent), transparent 55%),
    linear-gradient(160deg, #F6F7FA 0%, #F0F1F7 55%, #FBF8F5 100%);
  color: var(--text);
  min-height: 100vh;
  position: relative;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(140deg, rgba(63, 73, 127, 0.04) 0%, rgba(63, 73, 127, 0) 40%);
  opacity: 0.7;
  pointer-events: none;
  z-index: -1;
}

/* ---- Top bar ---- */
.auth-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(226, 228, 236, 0.85);
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 20;
}

.auth-topbar-brand {
  display: inline-flex;
  align-items: center;
  border-bottom: none !important;
}

.auth-topbar-brand img {
  width: auto;
  height: 20px;
}

.auth-topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.auth-topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
  transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease;
}

.auth-topbar-link:hover {
  border-color: var(--border);
  background: var(--brand-navy-50);
  color: var(--brand-navy);
  border-bottom: none;
}

/* ---- Shell ---- */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 78px 16px 24px;
}

/* ---- Card ---- */
.card {
  width: 100%;
  max-width: 430px;
  background: var(--card);
  border-radius: var(--radius-xl);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.card.compact {
  max-width: 400px;
}

/* ---- Logo inside card ---- */
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.auth-logo img {
  max-width: 160px;
  height: auto;
}

/* ---- Language switcher ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(37, 43, 72, 0.06);
  float: right;
}

.lang-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  border-bottom: none;
}

.lang-link:hover {
  color: var(--brand-navy);
  border-bottom: none;
}

.lang-divider {
  color: var(--border-strong);
}

/* ---- Card headings ---- */
h1 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--brand-navy-800);
  line-height: 1.15;
}

p.subtitle {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ---- Context / feature pills ---- */
.auth-context-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 14px;
}

.auth-context-strip span {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--brand-navy-100);
  background: var(--brand-navy-50);
  color: var(--brand-navy);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
}

/* ---- Plan teaser (register) ---- */
.register-plan-teaser {
  margin: -2px 0 16px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-navy-100);
  background: linear-gradient(180deg, rgba(63, 73, 127, 0.06) 0%, rgba(63, 73, 127, 0.02) 100%);
  display: grid;
  gap: 4px;
}

.register-plan-eyebrow {
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-navy);
  font-weight: 700;
}

.register-plan-name {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.register-plan-body {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ---- Form fields ---- */
label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

input {
  width: 100%;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input::placeholder { color: #9A9FB0; }

input:focus {
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px var(--accent-ghost);
}

input:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

label {
  transition: color 160ms ease;
}

input:focus + .validation,
input:focus-visible + .validation,
input:focus ~ .validation,
input:focus-visible ~ .validation {
  border-color: var(--accent-strong);
}

.field {
  margin-bottom: 13px;
}

.field-check {
  margin-top: -2px;
}

.check-label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.check-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--brand-navy);
}

/* ---- Inline links ---- */
.link-inline {
  color: var(--brand-navy);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

.link-inline:hover {
  border-bottom-color: var(--brand-navy);
}

/* ---- Remember me / forgot row ---- */
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 14px;
}

.remember {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 12.5px;
}

.remember input {
  width: 14px;
  height: 14px;
  accent-color: var(--brand-navy);
}

/* ---- Submit button ---- */
.btn {
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--btn);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--btn-glow);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.btn:hover {
  background: var(--btn-strong);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--btn-glow);
}

.btn:active {
  transform: translateY(0);
}

/* ---- Secondary link below form ---- */
.secondary {
  display: block;
  text-align: center;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}

/* ---- Register card ---- */
.register-card {
  max-width: 470px;
}

.register-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 12px;
}

.register-meta-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--brand-navy-50);
  font-size: 10.5px;
  color: var(--brand-navy);
  font-weight: 600;
}

/* ---- Multi-step stepper ---- */
.register-stepper {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin: 0 0 16px;
}

.register-step-divider {
  align-self: center;
  width: 14px;
  height: 1px;
  background: var(--border-strong);
}

.register-step-indicator {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
}

.register-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  flex: none;
}

.register-step-copy {
  display: grid;
  gap: 1px;
}

.register-step-copy strong {
  font-size: 11px;
  color: var(--text);
  line-height: 1.2;
}

.register-step-copy small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.2;
}

.register-step-indicator.is-active {
  border-color: var(--brand-navy-200);
  background: var(--brand-navy-50);
}

.register-step-indicator.is-active .register-step-index {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  background: var(--brand-navy-50);
}

.register-step-indicator.is-complete .register-step-index {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

/* ---- Register step groups ---- */
.register-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--brand-navy-50);
  padding: 14px;
}

.register-group h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-navy-800);
  letter-spacing: -0.01em;
}

.register-group-subtitle {
  margin: 2px 0 12px;
  color: var(--muted);
  font-size: 11.5px;
}

.register-step-panel {
  margin-bottom: 10px;
}

.js-enabled .register-actions .step-action {
  display: inline-flex;
}

.register-actions .step-action {
  display: none;
}

form.js-enhanced .register-step-panel {
  display: none;
}

form.js-enhanced .register-step-panel.is-active {
  display: block;
}

.register-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.register-actions .btn {
  width: auto;
  flex: 1 1 auto;
}

.btn.btn-muted {
  background: var(--border);
  color: var(--brand-navy-800);
  box-shadow: none;
}

.btn.btn-muted:hover {
  background: var(--border-strong);
  box-shadow: none;
}

/* ---- Field hints & feedback ---- */
.field-hint {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.field-feedback {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
  display: none;
}

.field-feedback.is-visible {
  display: block;
}

.field-feedback.is-error {
  color: var(--danger);
}

.field-feedback.is-success {
  color: var(--success-fg);
}

.field-feedback.is-info {
  color: var(--brand-navy);
}

.field.is-valid input {
  border-color: rgba(31, 157, 106, 0.55);
}

.field.is-invalid input {
  border-color: var(--danger);
}

.field.is-invalid .check-label {
  color: var(--danger);
}

/* ---- Password field shell (show/hide toggle) ---- */
.input-shell {
  position: relative;
}

.input-shell input {
  padding-right: 74px;
}

.input-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 7px;
  background: var(--brand-navy-50);
  color: var(--brand-navy);
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 9px;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.input-toggle:hover {
  background: var(--brand-navy-100);
}

/* ---- Password strength ---- */
.password-panel {
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 9px;
}

.password-meter {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.password-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--border-strong);
  transition: width 180ms ease, background-color 180ms ease;
}

.password-meter.is-weak .password-meter-fill {
  background: #D98A0A; /* warning */
}

.password-meter.is-medium .password-meter-fill {
  background: var(--brand-navy);
}

.password-meter.is-strong .password-meter-fill {
  background: var(--success);
}

.password-strength {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.password-rules {
  margin: 6px 0 0;
  padding-left: 16px;
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 10.5px;
}

.password-rules li.is-met {
  color: var(--success-fg);
}

.password-caps {
  margin: 6px 0 0;
  font-size: 10.5px;
  color: #D98A0A; /* warning */
}

/* ---- Legal consent ---- */
.register-legal {
  margin-top: 8px;
}

.register-legal-links {
  margin: 6px 0 0 22px;
  font-size: 11px;
  color: var(--muted);
}

.register-legal-sep {
  color: var(--border-strong);
  margin: 0 5px;
}

/* ---- Confirm email card ---- */
.confirm-email-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 26px 22px;
  max-width: 660px;
  width: min(92vw, 660px);
}

.confirm-email-top {
  display: flex;
  justify-content: center;
}

.confirm-email-top .auth-logo {
  margin-bottom: 0;
}

.confirm-email-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(63, 73, 127, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  padding: 18px 18px 16px;
}

.confirm-email-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.confirm-email-card .lang-switch {
  float: none;
  margin: 0;
}

.confirm-email-copy h1 {
  margin: 0 0 8px;
}

.confirm-email-copy .subtitle {
  margin: 0;
  max-width: 52ch;
}

.confirm-email-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
}

.confirm-email-status i {
  font-size: 12px;
  line-height: 1;
}

.confirm-email-status.is-success {
  color: var(--success-fg);
  border-color: rgba(31, 157, 106, 0.30);
  background: var(--success-bg);
}

.confirm-email-status.is-error {
  color: var(--danger);
  border-color: var(--danger-border);
  background: var(--danger-soft);
}

.confirm-email-actions {
  margin-top: 16px;
}

.confirm-email-cta {
  width: 100%;
  text-align: center;
  text-decoration: none;
}

/* ---- Small link ---- */
.link {
  font-size: 12px;
  color: var(--brand-navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}

.link:hover {
  border-bottom-color: var(--brand-navy);
}

/* ---- Validation ---- */
.validation {
  color: var(--danger);
  font-size: 11px;
  margin-top: 4px;
  padding: 0;
  background: transparent;
  border: 0;
  display: block;
}

.validation:empty {
  display: none;
}

.validation-summary {
  width: 100%;
  margin: 0 0 12px;
}

.validation-summary:not(:empty) {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--danger-border);
  background: var(--danger-soft);
}

.validation-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 3px;
}

.validation-summary li {
  margin: 0;
  font-size: 11.5px;
  color: var(--danger);
  line-height: 1.35;
}

.input-validation-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.08);
}

.input-validation-error:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.16);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 560px) {
  body {
    padding: 0;
  }

  .auth-topbar {
    height: 52px;
    padding: 7px 12px;
  }

  .auth-topbar-brand img {
    height: 18px;
  }

  .auth-topbar-link {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 11px;
  }

  .auth-shell {
    padding: 64px 12px 16px;
  }

  .card {
    max-width: 100%;
    padding: 18px 16px;
    border-radius: var(--radius-lg);
  }

  .card.compact {
    max-width: 100%;
  }

  h1 {
    font-size: 19px;
  }

  /* Prevent iOS Safari auto-zoom on inputs */
  input:not([type="checkbox"]):not([type="radio"]) {
    font-size: 16px;
    min-height: 44px;
  }

  .btn {
    font-size: 13.5px;
    padding: 11px 12px;
    min-height: 44px;
  }

  .lang-switch {
    float: none;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
  }

  .row {
    gap: 10px;
  }

  .register-card {
    max-width: 100%;
  }

  .register-stepper {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .register-step-divider {
    display: none;
  }

  .register-step-indicator {
    padding: 7px 9px;
  }

  .register-actions {
    gap: 6px;
  }

  .register-actions .btn {
    font-size: 12.5px;
    padding: 10px 9px;
    min-height: 44px;
  }

  .register-group {
    padding: 12px;
  }

  .register-legal-links {
    margin-left: 20px;
    font-size: 10.5px;
  }

  .auth-context-strip {
    gap: 5px;
    margin: -6px 0 10px;
  }

  .auth-context-strip span {
    font-size: 10px;
    padding: 2px 8px;
  }

  .confirm-email-card {
    padding: 18px 14px 16px;
    gap: 10px;
    width: 100%;
  }

  .confirm-email-shell {
    padding: 12px 12px 10px;
  }

  .confirm-email-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .confirm-email-card .lang-switch {
    align-self: flex-end;
  }

  .input-toggle {
    min-height: 32px;
    padding: 8px 10px;
  }
}

/* ============================================================
   Login redesign — nieuwe lay-out boven de card
   ============================================================ */

.lg-page {
  min-height: calc(100vh - 58px);
  padding-block: clamp(40px, 5vw, 80px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.lg-page::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto auto;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side,
    color-mix(in oklch, var(--brand-orange) 12%, transparent) 0%,
    transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}
.lg-page::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 480px; height: 480px;
  background: radial-gradient(closest-side,
    color-mix(in oklch, var(--brand-navy) 10%, transparent) 0%,
    transparent 70%);
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
}

.lg-shell {
  width: min(100%, 440px);
  margin-inline: auto;
  padding-inline: 20px;
}

.lg-intro {
  text-align: center;
  margin-bottom: 24px;
}
.lg-intro__mark {
  display: inline-flex;
  margin-bottom: 14px;
}
.lg-intro__mark img {
  height: 36px;
  display: block;
}
.lg-intro h1 {
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--brand-navy-800);
  margin: 0 0 8px;
}
.lg-intro p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* Card */
.lg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow-soft);
}

/* Formulier */
.lg-card form {
  display: grid;
  gap: 14px;
}

.lg-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.lg-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0;
}
.lg-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.lg-field__forgot {
  font-size: 12.5px;
  color: var(--brand-navy);
  font-weight: 500;
  text-decoration: none;
  border: none;
}
.lg-field__forgot:hover { color: var(--brand-navy-700); }

.lg-input-wrap {
  position: relative;
  display: flex;
}
.lg-field input {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  padding: 11px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 100%;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.lg-field input::placeholder { color: #9A9FB0; }
.lg-field input:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px var(--accent-ghost);
}
.lg-field input.has-toggle { padding-right: 44px; }

.lg-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 120ms ease, background 120ms ease;
}
.lg-toggle:hover {
  color: var(--brand-navy);
  background: var(--brand-navy-50);
}

/* Remember me */
.lg-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.lg-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.lg-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: none;
  cursor: pointer;
  accent-color: var(--brand-navy);
}

/* Submit knop */
.lg-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 15px;
  margin-top: 6px;
}

/* "of"-scheidingslijn */
.lg-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: 22px 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lg-divider::before,
.lg-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* SSO-knoppen */
.lg-sso { display: grid; gap: 10px; }
.lg-sso__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.lg-sso__btn:not(:disabled):hover {
  background: var(--brand-navy-50);
  border-color: var(--brand-navy-200);
}
.lg-sso__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.lg-sso__icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: none;
}

/* Tekst onder de card */
.lg-aftercard {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.lg-aftercard a {
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: none;
}
.lg-aftercard a:hover { color: var(--brand-navy-700); }

.lg-fineprint {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: #9A9FB0;
  line-height: 1.5;
  max-width: 38ch;
  margin-inline: auto;
}
.lg-fineprint a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  text-decoration: none;
}
.lg-fineprint a:hover {
  color: var(--brand-navy);
  border-bottom-color: currentColor;
}

/* Taalschakelaar in de topbar — geen float, geen bottom margin */
.auth-topbar .lang-switch {
  float: none;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 560px) {
  .lg-page { padding-block: 24px; }
  .lg-shell { padding-inline: 12px; }
  .lg-card {
    border-radius: var(--radius-lg);
    padding: 20px 16px;
  }
  .lg-intro h1 { font-size: 1.5rem; }
  .lg-field input {
    font-size: 16px;
    min-height: 44px;
  }
  .lg-submit { min-height: 44px; }
  .lg-sso__btn { min-height: 44px; }
}
