* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft Yahei", "PingFang SC", sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; }
.container { padding: 24px; }
.logo-section { text-align: center; padding: 48px 0; }
.logo { width: 80px; height: 80px; background: white; border-radius: 24px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 36px; box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.title { color: white; font-size: 20px; font-weight: 600; }
.subtitle { color: rgba(255,255,255,0.8); font-size: 14px; margin-top: 4px; }
.login-form { background: white; border-radius: 20px; padding: 32px 24px; box-shadow: 0 16px 48px rgba(0,0,0,0.15); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; color: #475569; margin-bottom: 8px; }
.form-group input { width: 100%; padding: 14px 16px; border: 1px solid #e2e8f0; border-radius: 12px; font-size: 16px; transition: all 0.2s ease; }
.form-group input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); }
.form-group input.error { border-color: #ef4444; background: #fef2f2; }
.form-group .error-message { color: #ef4444; font-size: 12px; margin-top: 4px; display: none; }
.password-container { position: relative; }
.password-container input { padding-right: 48px; }
.password-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); cursor: pointer; font-size: 18px; color: #94a3b8; }
.password-strength { display: flex; gap: 4px; margin-top: 8px; }
.password-strength span { flex: 1; height: 6px; border-radius: 3px; background: #e2e8f0; transition: all 0.3s ease; }
.password-strength span.weak { background: #ef4444; }
.password-strength span.medium { background: #f59e0b; }
.password-strength span.strong { background: #10b981; }
.password-strength-text { font-size: 12px; color: #64748b; margin-top: 4px; }
.btn-login { width: 100%; padding: 16px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; margin-top: 8px; transition: all 0.2s ease; }
.btn-login:active { transform: scale(0.98); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-login.loading { position: relative; }
.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.footer { text-align: center; padding: 32px 0; color: rgba(255,255,255,0.7); font-size: 12px; }
#errorMsg { background: #fee2e2; color: #dc2626; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; text-align: center; display: none; }
.captcha-group { display: none; }
.captcha-container { display: flex; gap: 10px; align-items: center; }
.captcha-container input { flex: 1; }
.captcha-container img { height: 48px; width: 120px; border-radius: 12px; cursor: pointer; border: 1px solid #e2e8f0; flex-shrink: 0; }
.form-options { display: flex; justify-content: flex-start; align-items: center; margin-bottom: 16px; font-size: 14px; color: #64748b; }
.checkbox-wrapper { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.checkbox-wrapper input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #667eea; }
/* 异地登录弹窗样式 */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 9999; justify-content: center; align-items: center; padding: 24px; }
.modal-overlay.active { display: flex; }
.modal-box { background: white; border-radius: 16px; padding: 28px 24px; width: 100%; max-width: 340px; box-shadow: 0 20px 60px rgba(0,0,0,0.2); animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity: 0; transform: translateY(-20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-icon { width: 56px; height: 56px; margin: 0 auto 16px; background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.modal-title { font-size: 18px; font-weight: 600; color: #1e293b; text-align: center; margin-bottom: 12px; }
.modal-content { font-size: 14px; color: #64748b; line-height: 1.8; margin-bottom: 20px; }
.modal-content .ip-info { background: #fef3c7; border-radius: 10px; padding: 12px 16px; margin: 12px 0; font-size: 13px; color: #92400e; }
.modal-content .ip-info .label { color: #b45309; font-weight: 500; }
.modal-content .ip-info .value { font-family: monospace; }
.modal-content .warning-text { color: #d97706; font-weight: 500; }
.modal-buttons { display: flex; gap: 12px; }
.modal-btn { flex: 1; padding: 12px 16px; border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.modal-btn-confirm { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; }
.modal-btn-confirm:active { transform: scale(0.97); }