/* ===== 全局重置和基础样式 ===== */
* {
  box-sizing: border-box;
}


/* 隐藏站点头/尾，保持全屏 */
.auth-page #header{
  display:none !important;
}
.auth-page .elementor-location-footer,
.auth-page [data-footer*="type-1"] .ct-footer{
  display:none !important;
}


/* ===== 主容器：完美垂直居中 ===== */
.auth-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  position: relative;

  /* 现代渐变背景 */
  background: #ffffff;

  /* 备选方案：简洁灰色背景 */
  /* background: #f8fafc; */

  /* 动画背景效果 */
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 左侧容器（现在是主体） */
.auth-left {
  width: 100%;
  max-width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== 表单卡片 ===== */
.auth-card {
  width: 100%;
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 36px 36px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.auth-card:hover {
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.18),
    0 0 1px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* ===== 品牌标题区域 ===== */
.auth-brand {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f3f5;
}

.auth-brand h1 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.auth-brand p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  font-weight: 400;
}

/* ===== Tab 切换按钮 ===== */
.auth-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  background: #f8f9fa;
  padding: 6px;
  border-radius: 14px;
}

.tab-btn {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #6b7280;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  color: #374151;
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tab-panel.hidden {
  display: none;
}

/* ===== 表单组 ===== */
.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  letter-spacing: 0.2px;
}

/* ===== 输入框样式 ===== */
input[type=text],
input[type=password],
input[type=email] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  background: #ffffff;
  font-size: 14px;
  color: #1a1a1a;
  transition: all 0.3s ease;
  font-family: inherit;
}

input[type=text]:hover,
input[type=password]:hover,
input[type=email]:hover {
  border-color: #d1d5db;
}

input[type=text]:focus,
input[type=password]:focus,
input[type=email]:focus {
  border-color: #667eea;
  background: #fafbff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input::placeholder {
  color: #9ca3af;
}

/* 内联布局（用于发送验证码） */
.inline {
  display: flex;
  gap: 10px;
}

.inline input {
  flex: 1;
}

/* ===== 按钮样式 ===== */
.btn-primary,
.btn-secondary,
.btn-ghost {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-primary {
  color: #ffffff;
  margin-top: 8px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  white-space: nowrap;
  border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.btn-ghost {
  background: transparent;
  border: 2px solid #e5e7eb;
  color: #6b7280;
}

.btn-ghost:hover {
  border-color: #667eea;
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

/* ===== 记住我复选框 ===== */
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
}

.remember input[type=checkbox] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

/* ===== 忘记密码链接 ===== */
.link-forgot {
  background: none;
  border: none;
  padding: 0;
  margin-top: 16px;
  font-size: 14px;
  color: #667eea;
  text-decoration: none;
  cursor: pointer;
  display: block;
  text-align: center;
  font-weight: 500;
  transition: all 0.2s ease;
}

.link-forgot:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ===== 重置密码面板 ===== */
.reset-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f3f5;
}

.reset-header h3 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.auth-helper {
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

.reset-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.reset-actions .btn-ghost {
  flex: 1;
}

.reset-actions .btn-primary {
  flex: 1.5;
  margin-top: 0;
}

/* ===== 消息提示 ===== */
.auth-msg {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  min-height: auto;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.auth-msg.show {
  opacity: 1;
  transform: translateY(0);
}

.auth-msg.success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.auth-msg.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ===== 响应式设计 ===== */
@media (max-width: 640px) {
  .auth-full {
    padding: 20px 16px;
  }

  .auth-card {
    padding: 32px 24px 28px;
    border-radius: 20px;
  }

  .auth-brand h1 {
    font-size: 24px;
  }

  .auth-brand p {
    font-size: 13px;
  }

  input[type=text],
  input[type=password],
  input[type=email] {
    padding: 11px 14px;
    font-size: 16px; /* 防止 iOS 自动缩放 */
  }

  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    padding: 11px 18px;
  }

  .reset-actions {
    flex-direction: column;
  }

  .inline {
    flex-direction: column;
  }

  .btn-secondary {
    white-space: normal;
  }
}

@media (max-width: 400px) {
  .auth-tabs {
    gap: 8px;
  }

  .tab-btn {
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ===== 添加加载状态动画（可选） ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.btn-primary.loading {
  pointer-events: none;
  animation: pulse 1.5s ease-in-out infinite;
}

.btn-send-code {
    padding: 0 10px;
    font-size: 12px;
}