body { display: flex; flex-direction: column; min-height: 100vh; background: var(--gray-50); }
.login-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 32px 16px;
}
.login-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r3);
  padding: 36px 40px;
  width: 100%; max-width: 420px;
  box-shadow: 0 4px 32px rgba(0,0,0,.07);
}
.login-header { text-align: center; margin-bottom: 28px; }
.login-logo {
  width: 52px; height: 52px; background: var(--purple-800);
  border-radius: var(--r2); margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.login-header h1 { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-header p  { font-size: 13px; color: var(--text3); }
.login-header .area-badge {
  display: inline-block; margin-top: 8px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px;
}
.area-badge.board { background: var(--purple-50); color: var(--purple-800); }
.area-badge.homeowners { background: var(--purple-50); color: var(--purple-600); }

.divider-line {
  border: none; border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* Password show/hide */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 16px; color: var(--text3);
  padding: 0; line-height: 1;
}
.pw-toggle:hover { color: var(--text); }

/* Submit button loading state */
.login-btn {
  width: 100%; padding: 12px;
  background: var(--purple-600); color: #fff;
  border: none; border-radius: var(--r);
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .13s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.login-btn:hover:not(:disabled) { background: var(--purple-800); }
.login-btn:disabled { opacity: .65; cursor: not-allowed; }
.login-btn .spinner {
  display: none; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite;
}
.login-btn.loading .spinner { display: block; }
.login-btn.loading .btn-text { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.forgot-link { text-align: right; margin-top: 6px; }
.forgot-link a { font-size: 12.5px; color: var(--purple-600); text-decoration: none; }
.forgot-link a:hover { text-decoration: underline; }

.back-link { text-align: center; margin-top: 18px; }
.back-link a { font-size: 13px; color: var(--text3); text-decoration: none; }
.back-link a:hover { color: var(--purple-600); }

/* Views */
.view { display: none; }
.view.active { display: block; }

/* New password checklist */
.pw-rules { margin-top: 8px; }
.pw-rules li {
  font-size: 12px; color: var(--text3); list-style: none;
  margin-bottom: 2px; display: flex; align-items: center; gap: 5px;
}
.pw-rules li.met { color: var(--green-600); }
.pw-rules li::before { content: '○'; font-size: 10px; }
.pw-rules li.met::before { content: '✓'; }
