/* ===== 登录页 / 验证码弹窗 ===== */
.login-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; position: relative; overflow: hidden; z-index: 1; }
.login-card { position: relative; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-radius: 16px; padding: 40px 32px; width: 100%; max-width: 380px; box-shadow: 0 8px 32px rgba(0, 0, 0, .25); }
.login-card .logo { text-align: center; margin-bottom: 32px; }
.login-card .logo h1 { font-size: 24px; color: var(--primary); margin-top: 8px; }
.login-card .logo-img { width: 48px; height: 48px; border-radius: 8px; }

.login-tabs { display: flex; margin-bottom: 20px; border-bottom: 2px solid var(--border); }
.login-tab { flex: 1; text-align: center; padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--text3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.login-tab:hover { color: var(--primary); }
.login-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.login-field { margin-bottom: 16px; }
.login-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.login-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 15px; outline: none; transition: border-color .2s; }
.login-field input:focus { border-color: var(--primary); }

.code-field { position: relative; }
.code-field input { padding-right: 110px; }
.code-btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); padding: 6px 12px; border: none; border-radius: 8px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.code-btn:active { background: var(--primary-dark); }
.code-btn:disabled { opacity: .5; cursor: not-allowed; }

.login-options { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text2); cursor: pointer; user-select: none; }
.checkbox-label input { display: none; }
.checkbox-label .checkmark { width: 16px; height: 16px; border: 2px solid #d0d0d0; border-radius: 4px; position: relative; transition: all .15s; flex-shrink: 0; }
.checkbox-label input:checked + .checkmark { background: var(--primary); border-color: var(--primary); }
.checkbox-label input:checked + .checkmark::after { content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.login-btn { width: 100%; padding: 14px; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px; transition: opacity .15s; }
.login-btn:active { opacity: .8; }
.login-btn:disabled { opacity: .5; cursor: not-allowed; }
.login-error { color: var(--red); font-size: 13px; text-align: center; margin-top: 12px; min-height: 20px; }
.login-tip { font-size: 12px; color: var(--text3); text-align: center; margin-top: 16px; }

/* 验证码弹窗 */
.captcha-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 200; display: none; align-items: center; justify-content: center; }
.captcha-mask.show { display: flex; }
.captcha-dialog { background: var(--card); border-radius: 16px; width: 90%; max-width: 400px; box-shadow: 0 8px 32px rgba(0, 0, 0, .2); overflow: hidden; }
.captcha-hd { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; border-bottom: 1px solid var(--border); }
.captcha-close { width: 28px; height: 28px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: var(--text3); }
.captcha-bd { padding: 20px; min-height: 80px; }
.captcha-error { color: var(--red); font-size: 13px; text-align: center; padding: 0 20px 16px; min-height: 20px; }