/* ===== 发布前登录弹窗 ===== */
.post-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.post-auth-modal.open {
  display: flex;
}

.post-auth-mask {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.post-auth-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.post-auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
}

.post-auth-close:hover { color: #374151; }

.post-auth-title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.post-auth-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: #6b7280;
}

.post-auth-field {
  margin-bottom: 16px;
}

.post-auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.post-auth-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
}

.post-auth-input:focus {
  outline: none;
  border-color: #002b5c;
  box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.1);
}

.post-auth-sms-row {
  display: flex;
  gap: 10px;
}

.post-auth-sms-row .post-auth-input {
  flex: 1;
}

.post-auth-sms-btn {
  flex-shrink: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #002b5c;
  border-radius: 6px;
  background: #fff;
  color: #002b5c;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.post-auth-sms-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.post-auth-error {
  margin: 0 0 12px;
  font-size: 13px;
  color: #dc2626;
}

.post-auth-submit {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: #002b5c;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.post-auth-submit:hover { background: #004080; }

.post-auth-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
