/* ========== Gindim 数据服务平台 - 登录/注册页样式 ========== */
/* 对标聚合数据 juhe.cn 风格 - 蓝色科技感专业设计 */

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%; height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    background: #f0f5ff;
    overflow: hidden;
}

/* 背景 */
.login-bg {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0d1f4a 0%, #132c5e 30%, #1a3f7a 60%, #1a56b8 100%);
    overflow: hidden;
}
.login-bg::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(24,144,255,0.15) 0%, transparent 70%);
    top: -200px; right: -150px;
    border-radius: 50%;
}
.login-bg::after {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(24,144,255,0.1) 0%, transparent 70%);
    bottom: -180px; left: -120px;
    border-radius: 50%;
}

/* 顶部导航条 */
.login-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: 64px; line-height: 64px;
    padding: 0 60px;
    display: flex; justify-content: space-between; align-items: center;
}
.login-header .logo-area { display: flex; align-items: center; gap: 12px; }
.login-header .logo-area img { height: 36px; }
.login-header .logo-area span { font-size: 20px; color: #fff; font-weight: 600; letter-spacing: 1px; }
.login-header .nav-links { display: flex; gap: 32px; align-items: center; }
.login-header .nav-links a { color: rgba(255,255,255,0.8); font-size: 14px; text-decoration: none; transition: color 0.3s; }
.login-header .nav-links a:hover { color: #fff; }
.login-header .nav-links .btn-goback {
    padding: 8px 20px; border: none; border-radius: 6px;
    color: #fff; font-size: 13px; font-weight: 500;
    background: rgba(255,255,255,0.15);
    transition: all 0.2s;
}
.login-header .nav-links .btn-goback:hover { background: rgba(255,255,255,0.28); color: #fff; }

/* 主卡片容器 */
.login-wrapper {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px; min-height: 620px;
    max-height: calc(100vh - 80px);
    display: flex;
    background: #fff; border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    overflow: hidden;
}

/* 左侧品牌面板 */
.login-brand {
    width: 430px; min-height: 620px;
    background: linear-gradient(160deg, #1677ff 0%, #0958d9 40%, #003eb3 100%);
    padding: 80px 56px;
    display: flex; flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-brand::before {
    content: '';
    position: absolute; top: -80px; right: -80px;
    width: 280px; height: 280px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.login-brand::after {
    content: '';
    position: absolute; bottom: -50px; left: -50px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.login-brand .brand-title {
    font-size: 28px; font-weight: 700; color: #fff; margin-bottom: 16px;
    position: relative; z-index: 1; letter-spacing: 2px;
}
.login-brand .brand-subtitle {
    font-size: 15px; color: rgba(255,255,255,0.8); line-height: 1.8;
    position: relative; z-index: 1; margin-bottom: 40px;
}
.login-brand .feature-list {
    list-style: none; position: relative; z-index: 1;
}
.login-brand .feature-list li {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 20px;
}
.login-brand .feature-list li .dot {
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #fff; flex-shrink: 0;
}

/* 右侧表单面板 */
.login-form-panel {
    flex: 1; min-height: 0; padding: 40px 56px;
    display: flex; flex-direction: column; justify-content: safe center;
    overflow-y: auto;
}

/* Tab 切换 */
.login-form-panel .form-tabs {
    display: flex; gap: 8px; margin-bottom: 36px;
    border-bottom: 2px solid #f0f0f0;
}
.login-form-panel .form-tabs .tab-item {
    padding: 12px 28px; font-size: 18px; font-weight: 500;
    color: #999; cursor: pointer; position: relative;
    transition: color 0.3s;
}
.login-form-panel .form-tabs .tab-item.active { color: #1677ff; }
.login-form-panel .form-tabs .tab-item.active::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: #1677ff;
    border-radius: 1px;
}
.login-form-panel .form-tabs .tab-item:hover { color: #1677ff; }

/* 表单样式 */
.form-group { margin-bottom: 26px; position: relative; }
.form-group label { display: block; font-size: 13px; color: #666; margin-bottom: 8px; font-weight: 500; }
.form-group .input-wrapper { position: relative; display: flex; align-items: center; }
.form-group .input-wrapper .input-icon { position: absolute; left: 14px; font-size: 16px; color: #aaa; z-index: 1; pointer-events: none; }
.form-group .form-input {
    width: 100%; height: 44px;
    padding: 0 14px 0 42px;
    font-size: 14px; color: #333;
    border: 1px solid #e0e0e0; border-radius: 8px;
    outline: none; transition: all 0.3s;
    background: #fafbfc;
}
.form-group .form-input:focus {
    border-color: #1677ff; background: #fff;
    box-shadow: 0 0 0 3px rgba(22,119,255,0.1);
}
.form-group .form-input:hover { border-color: #b0c8e8; }
.form-group .form-input.no-icon { padding-left: 14px; }
#regForm .form-group { margin-bottom: 14px; }
.code-row { display: flex; align-items: center; gap: 10px; }
.code-row .input-wrapper { flex: 1; min-width: 0; }
.btn-code {
    flex-shrink: 0; height: 44px; padding: 0 14px;
    border: 1px solid #1677ff; background: #fff; color: #1677ff;
    border-radius: 8px; cursor: pointer; font-size: 13px; white-space: nowrap;
}
.btn-code:hover { background: #f0f7ff; }
.btn-code:disabled { color: #999; border-color: #e0e0e0; background: #fafbfc; cursor: not-allowed; }

/* 验证码触发容器 */
.captcha-container {
    width: 100%; height: 44px;
    border: 1px solid #e0e0e0; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: #fafbfc; cursor: pointer;
    transition: all 0.3s; position: relative; overflow: hidden;
}
.captcha-container:hover { border-color: #1677ff; }
.captcha-container .captcha-text { color: #999; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.captcha-container .captcha-text .captcha-icon { font-size: 18px; }
.captcha-container.captcha-verified { border-color: #52c41a; background: #f6ffed; }
.captcha-container.captcha-verified .captcha-text { color: #52c41a; }

/* ===== 滑块验证弹层 ===== */
.captcha-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55); z-index: 9999;
    align-items: center; justify-content: center;
}
.captcha-modal-overlay.show { display: flex; }

.captcha-modal {
    background: #fff; border-radius: 14px; padding: 24px 28px 28px;
    width: 390px; box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}
.captcha-modal .modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.captcha-modal .modal-header .modal-title { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.captcha-modal .modal-header .modal-close {
    font-size: 22px; color: #bbb; cursor: pointer; border: none; background: none;
    width: 28px; height: 28px; line-height: 28px; text-align: center; border-radius: 50%;
    transition: all 0.2s;
}
.captcha-modal .modal-header .modal-close:hover { color: #333; background: #f5f5f5; }

/* 拼图区域（上方图片展示区） */
.puzzle-area {
    width: 100%; height: 180px;
    border-radius: 8px; position: relative; overflow: hidden;
    margin-bottom: 10px;
    background: #f8f9fb;
    border: 1px solid #edf0f5;
    display: flex; align-items: center; justify-content: center;
}
.puzzle-area canvas { width: 100%; height: 100%; border-radius: 6px; }
.puzzle-area .puzzle-loading { color: #bbb; font-size: 13px; }

/* 滑块轨道 */
.slider-track {
    width: 100%; height: 52px;
    background: #f5f6f8;
    border: 1px solid #e4e7ed;
    border-radius: 26px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

/* 已滑动进度条 */
.slider-track .slider-fill {
    position: absolute; left: 0; top: 0; height: 100%;
    background: linear-gradient(90deg, #d6e8ff, #91caff);
    border-radius: 26px 0 0 26px;
    transition: width 0.08s linear;
    z-index: 1; width: 52px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
}

/* 提示文字 */
.slider-track .slider-tip {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    text-align: center;
    color: #b0b5c0; font-size: 13px; letter-spacing: 0.5px;
    z-index: 0; pointer-events: none;
    transition: opacity 0.15s;
}

/* 拖拽按钮 */
.slider-btn {
    position: absolute; left: 3px; top: 3px; z-index: 3;
    width: 46px; height: 46px;
    background: #fff;
    border: 2px solid #dde1e8;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.03);
    cursor: grab;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #1677ff; user-select: none;
    transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.slider-btn:hover {
    border-color: #91caff;
    box-shadow: 0 2px 12px rgba(22,119,255,0.20), 0 0 0 1px rgba(22,119,255,0.05);
}
.slider-btn:active {
    cursor: grabbing;
    background: #f0f7ff;
    border-color: #1677ff;
    box-shadow: 0 0 0 5px rgba(22,119,255,0.14), 0 2px 12px rgba(22,119,255,0.25);
}

/* 按钮样式 */
.btn-primary {
    width: 100%; height: 44px;
    background: #1677ff; color: #fff; font-size: 16px;
    border: none; border-radius: 8px; cursor: pointer;
    font-weight: 500; transition: all 0.3s;
    letter-spacing: 1px;
}
.btn-primary:hover { background: #4096ff; box-shadow: 0 4px 16px rgba(22,119,255,0.35); }
.btn-primary:active { background: #0958d9; }
.btn-primary:disabled { background: #b0c8e8; cursor: not-allowed; box-shadow: none; }

/* 底部链接 */
.form-footer { text-align: center; margin-top: 16px; font-size: 13px; color: #999; }
.form-footer a { color: #1677ff; text-decoration: none; margin: 0 4px; }
.form-footer a:hover { color: #4096ff; text-decoration: underline; }

/* 错误提示 */
.field-tip { margin-top: 6px; font-size: 12px; color: #999; line-height: 1.4; }
.form-error { color: #ff4d4f; font-size: 12px; min-height: 20px; padding-top: 4px; display: none; }
.form-error.show { display: block; }

/* 页脚 */
.login-footer {
    position: fixed; bottom: 20px; left: 0; right: 0;
    text-align: center; font-size: 12px; color: rgba(255,255,255,0.5);
    z-index: 10;
}
.login-footer a { color: rgba(255,255,255,0.6); text-decoration: none; }
.login-footer a:hover { color: rgba(255,255,255,0.9); }

/* 响应式 */
@media (max-width: 1000px) {
    .login-wrapper { width: 92%; min-height: auto; flex-direction: column; }
    .login-brand { width: 100%; min-height: auto; padding: 48px 40px; text-align: center; }
    .login-brand .feature-list { display: none; }
    .login-brand .brand-title { font-size: 22px; }
    .login-brand .brand-subtitle { font-size: 13px; margin-bottom: 0; }
    .login-form-panel { padding: 48px 40px; }
    .login-header { padding: 0 20px; }
}
@media (max-width: 640px) {
    .login-wrapper { width: 96%; border-radius: 12px; margin-top: 20px; }
    .login-brand { padding: 24px 20px; border-radius: 12px 12px 0 0; }
    .login-form-panel { padding: 24px 20px; }
    .login-header .nav-links { display: none; }
}
