* { box-sizing: border-box; }

body.password-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #f3efe5;
  color: #263126;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.password-card {
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  border: 1px solid #d8ceb6;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(31, 58, 20, .13);
}

.password-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 28px;
  background: #1e3d10;
  color: #fff;
}

.password-brand img { width: 52px; height: 52px; object-fit: contain; }
.password-brand strong { display: block; font-family: "Noto Serif TC", serif; font-size: 20px; }
.password-brand span { display: block; margin-top: 3px; color: rgba(255,255,255,.68); font-size: 11px; letter-spacing: .08em; }

.password-content { padding: 30px 32px 28px; }
.password-content h1 { margin: 0 0 10px; color: #806820; font-family: "Noto Serif TC", serif; font-size: 25px; }
.password-content .intro { margin: 0 0 22px; color: #637064; font-size: 14px; line-height: 1.75; }
.password-content label { display: block; margin: 15px 0 6px; color: #4b594c; font-size: 13px; font-weight: 600; }
.password-content input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbc4b5;
  border-radius: 4px;
  background: #fcfbf7;
  color: #263126;
  font: inherit;
}
.password-content input:focus { outline: 3px solid rgba(45, 92, 26, .14); border-color: #2d5c1a; }
.password-hint { margin: 9px 0 0; color: #737b72; font-size: 12px; line-height: 1.6; }
.password-actions { display: flex; gap: 10px; margin-top: 22px; }
.password-button, .password-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 10px 18px;
  border-radius: 4px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.password-button { flex: 1; border: 1px solid #2d5c1a; background: #2d5c1a; color: #fff; }
.password-button:hover { background: #1e3d10; }
.password-button:disabled { cursor: wait; opacity: .65; }
.password-link { border: 1px solid #9b8a52; background: #fff; color: #6f5b1f; }
.password-message { display: none; margin: 18px 0 0; padding: 11px 13px; border-radius: 4px; font-size: 13px; line-height: 1.55; }
.password-message.show { display: block; }
.password-message.success { border: 1px solid #b9d2ae; background: #eef7e9; color: #245617; }
.password-message.error { border: 1px solid #e0b7b7; background: #fdf0ef; color: #8b2525; }
.password-footer { padding: 13px; border-top: 1px solid #e6e0d2; background: #f8f5ed; color: #85784e; text-align: center; font-size: 11px; }

@media (max-width: 520px) {
  .password-content { padding: 25px 20px; }
  .password-actions { flex-direction: column; }
}
