:root {
  --brand: #2563eb;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #5f6b7a;
  --line: #d9dee5;
  --field: #ffffff;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(16, 24, 40, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { border: 0; }

/* ---------- Top strip ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.topbar .secure { display: inline-flex; align-items: center; gap: 6px; }
.topbar .secure svg { width: 14px; height: 14px; fill: #12805c; }

/* ---------- Shared bits ---------- */
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fff8e6;
  border: 1px solid #f4dfa8;
  color: #6b4e00;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 18px;
}
.notice svg { width: 18px; height: 18px; flex: 0 0 18px; fill: #b8860b; margin-top: 1px; }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #33404f;
}
.field input {
  width: 100%;
  padding: 12px 13px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--brand);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: filter .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .65; cursor: progress; }

.btn-spin { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.loading .btn-spin { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: #b42318; font-size: 13px; margin: -6px 0 12px; display: none; }
.err.show { display: block; }

.brand-logo img { height: 30px; display: block; }
.wordmark { font-weight: 800; font-size: 26px; letter-spacing: -.5px; color: var(--brand); line-height: 1; }
.wordmark.telenet { text-transform: lowercase; letter-spacing: -1px; }
.wordmark.yahoo { font-style: italic; }
.wordmark.hoster { font-size: 19px; font-weight: 700; letter-spacing: -.2px; text-transform: lowercase; }

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px 4px 5px;
  font-size: 13px;
  max-width: 100%;
}
.account-chip .avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: 0 0 22px;
}
.account-chip span.mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Landingspagina ---------- */
.landing {
  min-height: calc(100% - 49px);
  display: grid;
  place-items: center;
  padding: 28px 18px 48px;
}
.landing-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 32px 30px;
  text-align: center;
}
.landing-card .brand-logo img { height: 34px; margin: 0 auto 18px; }
.landing h1 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.2px; }
.landing p.lead { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.landing form { text-align: left; }
.provider-strip { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 20px 0 0; opacity: .8; flex-wrap: wrap; }
.provider-strip img { height: 20px; }
.provider-strip .wordmark { font-size: 17px; opacity: .75; }
.legal { margin-top: 18px; font-size: 12px; color: #8a94a2; text-align: center; }
.legal a { color: #8a94a2; text-decoration: underline; }

/* ---------- Centered layout (Google/Yahoo) ---------- */
.page-center {
  min-height: calc(100% - 49px);
  display: grid;
  place-items: center;
  padding: 30px 18px;
}
.card-center {
  width: 100%;
  max-width: 450px;
  background: transparent;
  padding: 10px 6px;
}
.card-center .brand-logo img { height: 34px; }
.card-center h1 { font-size: 24px; margin: 18px 0 6px; font-weight: 500; }
.card-center p.sub { color: var(--muted); margin: 0 0 22px; }

/* ---------- Card layout ---------- */
.page-card { min-height: calc(100% - 49px); display: grid; place-items: center; padding: 30px 18px; }
.card-region { width: 100%; max-width: 420px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border-top: 4px solid var(--brand);
}
.card .card-head { padding: 26px 28px 0; }
.card .card-body { padding: 18px 28px 28px; }
.card h1 { font-size: 20px; margin: 16px 0 4px; }
.card p.sub { color: var(--muted); margin: 0 0 18px; font-size: 13.5px; }
.card-foot { padding: 14px 28px; background: #fafbfc; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Split layout (Microsoft/Telenet) ---------- */
.page-split { min-height: calc(100% - 49px); display: flex; }
.split-left {
  flex: 1 1 46%;
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 88%, #000) 0%, var(--brand) 100%);
  color: #fff;
  padding: 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.split-left .wordmark, .split-left .brand-logo img { color: #fff; filter: brightness(0) invert(1); opacity: .95; }
.split-left h2 { font-size: 26px; line-height: 1.25; margin: 28px 0 0; max-width: 360px; }
.split-left .foot { font-size: 12px; opacity: .8; }
.split-right { flex: 1 1 54%; display: grid; place-items: center; padding: 40px 22px; background: #fff; }
.split-form { width: 100%; max-width: 380px; }
.split-form h1 { font-size: 22px; margin: 0 0 6px; }
.split-form p.sub { color: var(--muted); margin: 0 0 22px; }

/* Telenet: geel */
.theme-telenet .split-left { background: var(--brand); color: #17181a; }
.theme-telenet .split-left .wordmark, .theme-telenet .split-left .brand-logo img { color: #17181a; filter: none; }
.theme-telenet .btn { color: #17181a; }
.theme-telenet .btn-spin { border-color: rgba(0,0,0,.3); border-top-color: #000; }

/* ---------- Verificatie ---------- */
.code-input {
  letter-spacing: .5em;
  font-size: 22px !important;
  text-align: center;
  font-weight: 600;
  padding-left: .5em !important;
}
.code-wrap { max-width: 230px; margin: 0 auto 18px; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.overlay {
  position: fixed; inset: 0; background: #fff;
  display: grid; place-items: center; text-align: center;
  z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.overlay .spin-lg {
  width: 34px; height: 34px; border: 3px solid var(--line);
  border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 0 auto 16px;
}

.footer-note { margin-top: 26px; font-size: 12px; color: #98a1ad; text-align: center; }

@media (max-width: 760px) {
  .split-left { display: none; }
  .split-right { padding: 26px 18px; }
  .topbar { padding: 12px 16px; font-size: 12px; }
  .landing-card, .card .card-head, .card .card-body, .card-foot { padding-left: 20px; padding-right: 20px; }
}
