/**
 * 红海车域 - 找回密码页样式表
 *
 * 设计依据：旧系统 D:\hhcyCar\oldCode\hhcy-car-mall\src\main\resources\templates\web\forgot.html
 * 布局：顶部导航（logo + 返回登录） + 居中卡片式重置密码表单
 * 品牌色：#24549B (商务蓝，主按钮) / #FB331F (红，错误提示)
 *
 * 说明：
 * - 仅作用于找回密码页（forgot.html），不影响其他页面
 * - 复刻旧系统样式：max-width:480px 居中卡片、圆角 16px、蓝色提交按钮
 */

/* ========== 页面基础 ========== */
.forgot-page body,
.forgot-page {
  background: #f5f7fa;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

/* ========== 顶部导航 ========== */
.forgot-page .top-nav {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.forgot-page .top-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 70px;
}

.forgot-page .logo-wrap img {
  height: 40px;
}

.forgot-page .back-login-link {
  color: #24549B;
  text-decoration: none;
  font-size: 14px;
}

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

/* ========== 卡片容器 ========== */
.forgot-page .container {
  max-width: 480px;
  margin: 40px auto;
  padding: 0 20px;
}

.forgot-page .forgot-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.forgot-page .forgot-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-align: center;
  margin-bottom: 8px;
}

.forgot-page .forgot-sub {
  font-size: 14px;
  color: #8896a6;
  text-align: center;
  margin-bottom: 30px;
}

/* ========== 表单 ========== */
.forgot-page .form-group {
  margin-bottom: 18px;
}

.forgot-page .form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

.forgot-page .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

.forgot-page .form-group input:focus {
  outline: none;
  border-color: #24549B;
}

/* 验证码行：输入框 + 获取验证码按钮并排 */
.forgot-page .code-row {
  display: flex;
  gap: 10px;
}

.forgot-page .code-row input {
  flex: 1;
}

.forgot-page .btn-code {
  padding: 12px 16px;
  background: #f0f2f5;
  color: #555;
  border: 1px solid #e4e7eb;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 110px;
}

.forgot-page .btn-code:hover {
  background: #e4e7eb;
}

.forgot-page .btn-code:disabled {
  background: #f5f7fa;
  color: #aaa;
  cursor: not-allowed;
}

/* 提交按钮 */
.forgot-page .btn-submit {
  width: 100%;
  padding: 14px;
  background: #24549B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 8px;
}

.forgot-page .btn-submit:hover {
  background: #1a3d6e;
}

.forgot-page .btn-submit:disabled {
  background: #aabbcc;
  cursor: not-allowed;
}

/* 错误提示 */
.forgot-page .form-error {
  color: #FB331F;
  font-size: 13px;
  margin-bottom: 10px;
  min-height: 18px;
}

/* 返回登录链接 */
.forgot-page .back-login {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #8896a6;
}

.forgot-page .back-login a {
  color: #24549B;
  text-decoration: none;
}

.forgot-page .back-login a:hover {
  text-decoration: underline;
}

/* ========== 成功提示 ========== */
.forgot-page .success-msg {
  text-align: center;
  padding: 40px 0;
}

.forgot-page .success-msg i {
  font-size: 60px;
  color: #52c41a;
  margin-bottom: 16px;
}

.forgot-page .success-msg p {
  font-size: 16px;
  color: #333;
  margin-bottom: 8px;
}

.forgot-page .success-msg a {
  color: #24549B;
  text-decoration: none;
}

.forgot-page .success-msg a:hover {
  text-decoration: underline;
}

/* ========== 响应式 ========== */
@media (max-width: 480px) {
  .forgot-page .forgot-card {
    padding: 24px 20px;
  }
}
