/* ═══════════════════════════════════════
    认证页面样式 · 登录/注册/发布/入驻
   ═══════════════════════════════════════ */

:root {
  --auth-surface: #ffffff;
  --auth-bg: #f5f0e8;
  --auth-rose: #fdf5f0;
  --auth-primary: #2c2c2c;
  --auth-secondary: #5a5a5a;
  --auth-faint: #8c8c8c;
  --auth-brand: #C23A2B;
  --auth-brand-warm: #B8352B;
  --auth-brand-glow: rgba(194, 58, 43, 0.1);
  --auth-border: #e0dcd5;
  --auth-border-light: #ebe6de;
}

/* ── 页面容器 ── */
.auth-container {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #f5f0e8 0%, #ede6d8 100%);
}

.auth-wrapper {
  width: 100%;
  max-width: 600px;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  width: 100%;
  border: 1px solid #e8e3db;
}

/* ── 头部区域 ── */
.auth-header {
  margin-bottom: 36px;
  text-align: center;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5a5a5a;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 20px;
  transition: color 0.3s;
}

.back-button:hover {
  color: #C23A2B;
}

.auth-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 10px;
}

.auth-subtitle {
  font-size: 16px;
  color: #5a5a5a;
  line-height: 1.6;
}

/* ── 表单基础样式 ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0dcd5;
  border-radius: 4px;
  font-size: 15px;
  color: #2c2c2c;
  background: #fafafa;
  transition: all 0.3s;
  outline: none;
}

.form-group input:focus {
  border-color: #C23A2B;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(194, 58, 43, 0.1);
}

.form-group input::placeholder {
  color: #8c8c8c;
}

.input-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  margin-top: 10px;
}

.input-icon svg {
  opacity: 0.5;
}

.required {
  color: #C23A2B;
  margin-left: 2px;
}

.input-hint {
  font-size: 12px;
  color: #8c8c8c;
  margin-top: 6px;
}

/* ── 表单选项 ── */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: #5a5a5a;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #C23A2B;
}

.checkbox-label a {
  color: #C23A2B;
  text-decoration: underline;
}

.forgot-link {
  color: #C23A2B;
  text-decoration: none;
}

.forgot-link:hover {
  text-decoration: underline;
}

.form-agreement {
  margin: 20px 0;
}

/* ── 按钮 ── */
.auth-button {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #C23A2B, #B8352B);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-button:hover {
  background: linear-gradient(135deg, #e84545, #C23A2B);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 58, 43, 0.3);
}

.auth-button:active {
  transform: translateY(0);
}

.btn-draft {
  width: 100%;
  padding: 16px 32px;
  background: #f5f0e8;
  color: #5a5a5a;
  border: 2px solid #e0dcd5;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-draft:hover {
  background: #ede6d8;
  border-color: #ccc;
}

.form-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  margin-top: 8px;
}

/* ── 页脚链接 ── */
.auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #e0dcd5;
}

.auth-footer p {
  color: #5a5a5a;
  font-size: 14px;
}

.auth-link {
  color: #C23A2B;
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

/* ── 装饰元素（登录/注册页用） ── */
.auth-decoration {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
}

.decoration-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: authPulse 4s ease-in-out infinite;
}

.circle-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #C23A2B, #B8352B);
  top: -50px;
  left: -100px;
}

.circle-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, #B8352B, #FFA07A);
  bottom: -30px;
  right: -70px;
  animation-delay: 1.5s;
}

.circle-3 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #FFA07A, #FFB399);
  top: 50%;
  right: -50px;
  animation-delay: 3s;
}

@keyframes authPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 0.4; }
}

/* ── 错误/成功提示 ── */
.form-error {
  color: #C23A2B;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.form-group.error input {
  border-color: #C23A2B;
}

.form-group.error .form-error {
  display: block;
}

.form-success {
  color: #4CAF50;
  font-size: 12px;
  margin-top: 5px;
  display: none;
}

.form-group.success input {
  border-color: #4CAF50;
}

.form-group.success .form-success {
  display: block;
}

/* ═══════════════════════════════════════
    发布作品 / 入驻页面 专用样式
   ═══════════════════════════════════════ */

/* ── 步骤指示器 ── */
.publish-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  padding: 0 10px;
  position: relative;
}

.publish-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 60px;
  right: 60px;
  height: 2px;
  background: #e0dcd5;
  z-index: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e0dcd5;
  color: #8c8c8c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
  transition: all 0.3s;
}

.step-item.active .step-num {
  background: linear-gradient(135deg, #C23A2B, #B8352B);
  color: #fff;
  box-shadow: 0 4px 12px rgba(194, 58, 43, 0.3);
}

.step-info {
  text-align: center;
}

.step-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 2px;
}

.step-desc {
  font-size: 11px;
  color: #8c8c8c;
}

/* ── 发布须知 ── */
.publish-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: #fdf5f0;
  border-radius: 8px;
  border-left: 4px solid #C23A2B;
  margin-bottom: 32px;
}

.notice-icon {
  color: #C23A2B;
  flex-shrink: 0;
  margin-top: 2px;
}

.notice-content {
  font-size: 14px;
  color: #5a5a5a;
  line-height: 1.7;
}

.notice-content strong {
  color: #2c2c2c;
}

/* ── 表单分区标题 ── */
.form-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  margin-top: 8px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f0e8e0;
}

.form-section-num {
  font-size: 28px;
  font-weight: 900;
  color: rgba(194, 58, 43, 0.15);
  line-height: 1;
}

.form-section-text {
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
}

/* ── 表单增强样式（发布/入驻页） ── */
.auth-form select,
.auth-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0dcd5;
  border-radius: 4px;
  font-size: 15px;
  color: #2c2c2c;
  background: #fafafa;
  transition: all 0.3s;
  outline: none;
  font-family: inherit;
}

.auth-form select:focus,
.auth-form textarea:focus {
  border-color: #C23A2B;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(194, 58, 43, 0.1);
}

.auth-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* ── 标签输入 ── */
.tags-input {
  border: 2px solid #e0dcd5;
  border-radius: 4px;
  padding: 12px;
  background: #fafafa;
}

.tag-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.tag-suggestion {
  padding: 6px 14px;
  background: #fdf5f0;
  color: #C23A2B;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.tag-suggestion:hover {
  background: #C23A2B;
  color: #fff;
}

/* ── 文件上传 ── */
.file-upload {
  border: 2px dashed #d4cfc7;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #fafafa;
  position: relative;
}

.file-upload:hover {
  border-color: #C23A2B;
  background: #fdf5f0;
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.upload-placeholder svg {
  color: #bbb;
}

.upload-placeholder span {
  font-size: 14px;
  color: #5a5a5a;
}

.upload-hint {
  font-size: 12px !important;
  color: #8c8c8c !important;
}

.cover-upload {
  width: 200px;
  margin: 0 auto;
  padding: 24px;
}

/* ── 入驻特权区域 ── */
.benefits-section {
  margin-bottom: 36px;
  padding: 28px;
  background: linear-gradient(135deg, #fdf9f6 0%, #f8f3ed 100%);
  border-radius: 12px;
  border: 1px solid #f0e8e0;
}

.benefits-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 20px;
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit-item {
  text-align: center;
  padding: 20px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e3db;
  transition: all 0.3s;
}

.benefit-item:hover {
  border-color: #C23A2B;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(194, 58, 43, 0.12);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, #fef6f4, #fdf0ed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-title {
  font-size: 14px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 6px;
}

.benefit-desc {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}

/* ── 入驻 hero ── */
.settle-hero {
  background: linear-gradient(135deg, #C23A2B 0%, #e84545 100%);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 36px;
  color: #fff;
}

.settle-hero h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.settle-hero p {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.7;
}

/* ── 入驻流程 ── */
.settle-flow {
  margin-bottom: 36px;
  padding: 24px;
  background: #fdf9f6;
  border-radius: 12px;
  border: 1px solid #f0e8e0;
}

.settle-flow h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 20px;
  text-align: center;
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #e8e3db;
}

.flow-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C23A2B, #B8352B);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.flow-step-content strong {
  display: block;
  font-size: 13px;
  color: #2c2c2c;
}

.flow-step-content span {
  font-size: 11px;
  color: #8c8c8c;
}

.flow-arrow {
  color: #d4cfc7;
  flex-shrink: 0;
}

/* ── FAQ 区域 ── */
.settle-faq {
  margin-top: 36px;
  padding: 28px;
  background: #fdf9f6;
  border-radius: 12px;
  border: 1px solid #f0e8e0;
}

.settle-faq h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 20px;
  text-align: center;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  padding: 16px 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e3db;
}

.faq-q {
  font-size: 14px;
  font-weight: 600;
  color: #2c2c2c;
  margin-bottom: 6px;
  padding-left: 20px;
  position: relative;
}

.faq-q::before {
  content: 'Q';
  position: absolute;
  left: 0;
  color: #C23A2B;
  font-weight: 700;
}

.faq-a {
  font-size: 13px;
  color: #5a5a5a;
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.faq-a::before {
  content: 'A';
  position: absolute;
  left: 0;
  color: #8c8c8c;
  font-weight: 700;
}

/* ── 创作指南 ── */
.publish-guide {
  margin-top: 36px;
  padding: 28px;
  background: #fdf9f6;
  border-radius: 12px;
  border: 1px solid #f0e8e0;
}

.publish-guide h3 {
  font-size: 16px;
  font-weight: 700;
  color: #2c2c2c;
  margin-bottom: 20px;
  text-align: center;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.guide-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e8e3db;
}

.guide-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #fef6f4, #fdf0ed);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-text strong {
  display: block;
  font-size: 14px;
  color: #2c2c2c;
  margin-bottom: 4px;
}

.guide-text span {
  font-size: 12px;
  color: #8c8c8c;
  line-height: 1.5;
}

/* ── 协议标签增强 ── */
.agreement-label {
  font-size: 13px;
  color: #5a5a5a;
  line-height: 1.6;
}

.agreement-link {
  color: #C23A2B;
  text-decoration: none;
  font-weight: 500;
}

.agreement-link:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════
    响应式
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .auth-card {
    padding: 30px 24px;
  }

  .auth-title {
    font-size: 26px;
  }

  .auth-subtitle {
    font-size: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .publish-steps {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
  }

  .publish-steps::before {
    display: none;
  }

  .step-item {
    flex: 0 0 auto;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow-steps {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .decoration-circle {
    display: none;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 20px 12px;
  }

  .auth-card {
    padding: 24px 18px;
  }

  .auth-title {
    font-size: 22px;
  }

  .form-group input {
    padding: 12px 14px;
    font-size: 14px;
  }

  .auth-button {
    padding: 14px;
    font-size: 15px;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .benefit-item {
    padding: 14px 10px;
  }

  .settle-hero {
    padding: 20px;
  }

  .settle-hero h2 {
    font-size: 18px;
  }

  .file-upload {
    padding: 28px 16px;
  }

  .cover-upload {
    width: 160px;
    padding: 16px;
  }
}
