/**
 * @license https://www.dgcms.cn
 * @author  Shu QQ:610712114
 * Date: 2026/5/21
 * 功能：
 */
body { background-color: #f8fafc; color: #1e293b; min-height: 100vh; display: flex; flex-direction: column; }

/* 头部导航：保持与 common.css 风格一致 */
.auth-header { padding: 12px 16px; background: #fff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; position: sticky; top: 0; z-index: 10; }
.back-btn { display: flex; align-items: center; color: #475569; padding: 4px; }
.auth-header-title { flex: 1; text-align: center; font-size: 17px; font-weight: 700; margin-right: 28px; }

.auth-container { flex: 1; padding: 24px 20px; max-width: 400px; margin: 0 auto; width: 100%; box-sizing: border-box; }

/* 卡片式设计：延续 index.html 弹窗的 16px 圆角和投影 */
.auth-card { background: #fff; border-radius: 16px; padding: 28px 24px; box-shadow: 0 10px 25px rgba(0,0,0,0.05); }

/* 选项卡样式 */
.auth-tabs { display: flex; margin-bottom: 24px; border-bottom: 1px solid #eee; }
.auth-tab { flex: 1; text-align: center; padding: 12px; font-size: 16px; color: #64748b; cursor: pointer; position: relative; font-weight: 500; }
.auth-tab.active { color: #007bff; font-weight: 700; }
.auth-tab.active::after { content: ''; position: absolute; bottom: -1px; left: 20%; width: 60%; height: 3px; background: #007bff; border-radius: 3px; }

/* 表单内容动画 */
.form-content { display: none; animation: fadeIn 0.3s ease; }
.form-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* 输入框样式：浅灰色背景，聚焦时变为蓝色边框 */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 14px; color: #475569; margin-bottom: 8px; font-weight: 500; }
.auth-input { width: 100%; padding: 12px 16px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 5px; font-size: 15px; box-sizing: border-box; outline: none; transition: all 0.3s; }
.auth-input:focus { border-color: #007bff; background: #fff; box-shadow: 0 0 0 3px rgba(0,123,255,0.1); }

/* 验证码布局 */
.verify-row { display: flex; gap: 8px; }
.get-code-btn { white-space: nowrap; padding: 0 12px; border: 1px solid #007bff; color: #007bff; background: #fff; border-radius: 5px; font-size: 13px; font-weight: 600; }
.get-code-btn:active { background: #f0f7ff; }

/* 主按钮：蓝色渐变与阴影 */
.auth-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #007bff, #0056b3); color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; margin-top: 10px; box-shadow: 0 4px 12px rgba(0,123,255,0.3); }
.auth-btn:active { transform: scale(0.98); opacity: 0.95; }

.auth-footer { margin-top: 20px; text-align: center; font-size: 13px; color: #94a3b8; }
.auth-footer a { color: #007bff; text-decoration: none; font-weight: 500; }

.agreement { margin-top: 16px; font-size: 12px; color: #94a3b8; display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.agreement input { margin-top: 2px; }

.forgot-title { font-size: 20px; font-weight: 700; text-align: center; margin-bottom: 24px; color: #1e293b; }
.hidden { display: none !important; }


.header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 1rem; position: sticky; top: 0; z-index: 50; background: #fbf9f8; border-bottom: 1px solid #c4c5d5; }
.header-left { display: flex; align-items: center; gap: 1rem; }
.header-left .iconfont, .header-right .iconfont{ font-size: 20px;  }
.page-title { font-size: 22px; line-height: 30px; font-weight: 700; color: #002068; margin: 0; }
.header-right { display: flex; align-items: center; gap: 1rem; position: relative; }

.user-menu { position: fixed; right:0; top: 48px; background: #ffffff; border-radius: 0.5rem; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); z-index: 70; overflow: hidden; border: 1px solid rgba(196,197,213,0.2); transform-origin: top right; transition: opacity 0.2s ease-out, transform 0.2s ease-out; }
.user-menu.menu-hidden { opacity: 0; pointer-events: none; transform: translateY(-10px) scale(0.95); }
.user-menu.menu-visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.cp-menu-header { padding: 10px; border-bottom: 1px solid rgba(196,197,213,0.1); }
.cp-menu-header-title { font-size: 20px; line-height: 28px; font-weight: 600; color: #002068; margin: 0; }
.menu-list {}
.menu-link { display: flex; align-items: center; padding: 12px 16px; color: #444653; text-decoration: none; transition: background-color 0.2s; font-size: 14px; }
.menu-link:hover { background-color: #f0eded; }
.menu-link .iconfont { margin-right: 5px;  }
.menu-link.active { background-color: rgba(0,51,153,0.1); color: #002068; border-left: 4px solid #002068; font-weight: 500; padding-left: 12px; }
.menu-link.logout { color: #ba1a1a; font-medium: 500; }
.menu-link.logout:hover { background-color: rgba(255,218,214,0.2); }