/* ===================================================================
   Moby — Customer Signup
   Builds on customer/login.css tokens and .auth-* classes.
   Adds: password strength meter, confirm-password match feedback,
   membership agreement checkbox.
   .input-error is shared with login.css and lives in _layout.css.
   =================================================================== */

.password-field {
  margin-bottom: 22px; /* slightly more room than login — strength bar lives below */
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--mist);
  margin-top: 8px;
  overflow: hidden;
}

#strengthFill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  background: var(--amber);
  transition: width 200ms ease, background-color 200ms ease;
}

#strengthFill.weak    { width: 25%;  background: #D9534F; }
#strengthFill.fair    { width: 50%;  background: var(--amber); }
#strengthFill.good    { width: 75%;  background: #5BA3D9; }
#strengthFill.strong  { width: 100%; background: var(--green); }

#strengthText {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
}
#strengthText.weak   { color: #D9534F; }
#strengthText.fair   { color: var(--amber); }
#strengthText.good   { color: #4A90C2; }
#strengthText.strong { color: var(--green); }

#matchText {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
}
#matchText.match    { color: var(--green); }
#matchText.no-match  { color: #D9534F; }

/* ===================================================================
   Membership agreement checkbox
   =================================================================== */
.agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0 22px;
}

.agreement-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}

.agreement-row label {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.agreement-row a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
}
.agreement-row a:hover { text-decoration: underline; }

