/* Klantportal — Inlogpagina stijlen (geëxtraheerd uit login.php voor strikte CSP) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  min-height: 100%;
  font-family: 'Segoe UI Variable Text', 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #f4f7fb;
  color: #132238;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.login-card {
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  padding: 36px 32px 28px;
  width: min(420px, 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}
.login-logo-wrap {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.login-brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: #2563eb;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
}
#brandLogoImg {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: contain;
  background: #f8fafc;
  border: 1px solid #dbe4ef;
}
.login-brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #132238;
  letter-spacing: -0.3px;
}
.login-brand-sub {
  font-size: 0.84rem;
  color: #5e6b7c;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.login-divider {
  height: 1px;
  background: #dbe4ef;
  margin-bottom: 24px;
}
.login-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #dc2626;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 18px;
}
.hidden { display: none !important; }
.form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.84rem;
  color: #5e6b7c;
  font-weight: 500;
}
.form-group input {
  background: #fff;
  border: 1px solid #dbe4ef;
  border-radius: 10px;
  padding: 11px 14px;
  color: #132238;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.form-group input:focus {
  outline: none;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}
.form-group input::placeholder { color: #94a3b8; }
.checkline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #5e6b7c;
  margin-bottom: 20px;
  cursor: pointer;
}
.checkline input[type=checkbox] { width: auto; }
#captchaBlock {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 16px;
}
#captchaLabel {
  font-size: 0.9rem;
  font-weight: 600;
  color: #d97706;
  display: block;
  margin-bottom: 8px;
}
#captchaBlock input {
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 9px 12px;
  color: #132238;
  font-size: 0.95rem;
  width: 100%;
}
.login-submit-btn {
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
}
.login-submit-btn:hover:not(:disabled) { background: #1d4ed8; }
.login-submit-btn:active:not(:disabled) { transform: scale(0.99); }
.login-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
}
/* MFA stappen */
.mfa-prompt { font-size: 1rem; font-weight: 700; color: #132238; margin-bottom: 6px; }
.mfa-desc { font-size: 0.88rem; color: #5e6b7c; margin-bottom: 16px; line-height: 1.5; }
.mfa-secret-box {
  background: #f8fafc;
  border: 1.5px dashed #93c5fd;
  border-radius: 10px;
  padding: 14px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: #132238;
  word-break: break-all;
  text-align: center;
  margin-bottom: 10px;
  user-select: all;
}
.mfa-link {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  color: #2563eb;
  margin-bottom: 18px;
  text-decoration: none;
}
.mfa-link:hover { text-decoration: underline; }
.mfa-back-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin-top: 12px;
  display: block;
  width: 100%;
  text-align: center;
}
.mfa-back-btn:hover { text-decoration: underline; }
.mfa-qr-box {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.mfa-qr-box svg { width: 180px; height: 180px; border-radius: 10px; }
.mfa-secret-label {
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: center;
  margin-bottom: 6px;
}
