/* 照片访问密码遮罩 */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 35, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.auth-overlay[hidden] { display: none; }

.auth-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 30px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: auth-pop 0.35s ease;
}
/* 右上角关闭按钮：不输入密码也能退出弹窗，回到网页浏览留言板 */
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: #f2f2f4;
  color: #666;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-close:hover { background: #ffe3d6; color: #e07a3f; }
@keyframes auth-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

.auth-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: linear-gradient(135deg, #ffd6a5, #ffb4a2);
  border-radius: 50%;
}

.auth-title { margin: 0 0 8px; font-size: 22px; color: #333; }
.auth-desc { margin: 0 0 20px; font-size: 13px; color: #888; line-height: 1.6; }

.auth-form { display: flex; flex-direction: column; gap: 12px; }
.auth-form input {
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid #e3e3e3;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form input:focus { border-color: #ff9f68; }
.auth-submit { width: 100%; height: 46px; }
.auth-error { margin: 12px 0 0; font-size: 13px; color: #e5484d; }
