* { box-sizing: border-box; }
html, #mainBody {
  margin: 0;
  padding: 0;
  font-family: 'Aleo', 'Segoe UI', sans-serif;
}
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: #fff;
  border-radius: 12px;
  padding: 2.2rem 2rem 1.8rem;
  width: 380px;
  height: 468px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  text-align: center;
  position: relative;
}
.logout-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.logout-content .card-logo { margin-bottom: 0; }
.lang-switcher {
  position: absolute;
  top: 0.9rem; right: 1rem;
  width: 36px; height: 24px; cursor: pointer;
}
.lang-active, .lang-other {
  position: absolute; top: 0; left: 0;
  width: 36px; height: 24px;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  border-radius: 3px;
  transition: opacity 0.25s, transform 0.25s;
  border: 1px solid rgba(0,0,0,0.15);
}
.lang-active { opacity: 1; transform: scale(1); z-index: 2; }
.lang-other  { opacity: 0; transform: scale(0.85); z-index: 3; cursor: pointer; }
.lang-switcher:hover .lang-other { opacity: 1; transform: scale(1); }
.card-logo { margin-bottom: 1rem; }
.card-logo img { height: 72px; width: auto; }
.card-title { font-size: 1.3rem; font-weight: 700; color: #2a2a2a; margin-bottom: 0.15rem; }
.card-sub { font-size: 0.85rem; color: #666; margin-bottom: 1.1rem; }
.setpw-email { font-size: 0.85rem; font-weight: 700; color: #2a2a2a; margin: -0.6rem 0 2rem; }
.form-group { margin-bottom: 0.9rem; text-align: left; }
.pw-requirements { font-size: 0.76rem; color: #777; line-height: 1.4; margin: 4px 0 0; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: #444; margin-bottom: 0.25rem;
}
.form-group input {
  width: 100%; border: 1.5px solid #ccc; border-radius: 4px;
  padding: 0.62rem 0.7rem; font-size: 0.9rem;
  font-family: 'Aleo', sans-serif; color: #2a2a2a;
  outline: none; transition: border-color 0.15s;
}
.form-group input:focus { border-color: #45C3D8; }
.form-group input::placeholder { color: #aaa; }
.form-group input:disabled { background: #f2f2f2; color: #888; cursor: not-allowed; }
.pw-field { position: relative; }
.pw-field input { padding-right: 38px; }
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #999;
}
.pw-toggle:hover { color: #666; }
.pw-toggle svg { width: 18px; height: 18px; }
.form-group input:disabled ~ .pw-toggle { display: none; }
.plane[hidden] { display: none; }
.server-message {
  display: none;
  background: #f2f2f2; border: 1.5px solid #ddd;
  color: #444; font-size: 0.82rem;
  border-radius: 6px; padding: 0.6rem 0.8rem;
  margin-bottom: 0.9rem; text-align: left;
}
.server-message.show { display: block; }
.server-message.is-error { background: #fdecea; border-color: #f3b4ac; color: #b3261e; }
.server-message.is-success { background: #edfbf4; border-color: #b6edd0; color: #2d6e1e; }
.identity-options {
  display: flex; flex-direction: column; gap: 0.6rem;
  margin-bottom: 1.1rem; text-align: left;
}
.identity-option {
  display: flex; align-items: center; gap: 0.7rem;
  border: 1.5px solid #ccc; border-radius: 6px;
  padding: 0.7rem 0.8rem; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.identity-option:hover { border-color: #45C3D8; }
.identity-option.selected { border-color: #45C3D8; background: #eefaff; }
.identity-option input[type="radio"] { width: 16px; height: 16px; accent-color: #45C3D8; flex-shrink: 0; }
.identity-option span { font-size: 0.9rem; font-weight: 600; color: #2a2a2a; }
.wait-spinner {
  width: 22px; height: 22px;
  margin: 0.9rem auto 0;
  border: 3px solid #ddd;
  border-top-color: #45C3D8;
  border-radius: 50%;
  animation: wait-spin 0.8s linear infinite;
}
.wait-spinner[hidden] { display: none; }
@keyframes wait-spin { to { transform: rotate(360deg); } }
.forgot-row { text-align: center; margin-bottom: 0.9rem; }
.forgot-row a { font-size: 0.82rem; color: #2d6e1e; text-decoration: underline; }
.btn-aanmaken {
  width: 100%;
  background: linear-gradient(to bottom, #777, #444);
  color: #fff; font-family: 'Aleo', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  padding: 0.8rem; border: none; border-radius: 6px;
  cursor: pointer; letter-spacing: 0.4px;
  box-shadow: 0 4px 6px -2px rgba(0,0,0,0.2);
  transition: background 0.15s, transform 0.1s;
}
.btn-aanmaken:hover { background: linear-gradient(to bottom, #555, #222); transform: translateY(-1px); }
.btn-aanmaken:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
a.btn-aanmaken { display: block; text-align: center; text-decoration: none; }
.login-footer-links { margin-top: 1.1rem; font-size: 0.82rem; }
.login-footer-links a { color: #2d6e1e; text-decoration: underline; }